Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

Problema al borra un temaTema Solucionado

Foros donde podréis dejar vuestras dudas sobre phpBB 3.0.x
Cerrado
Lopezito
Observador/a
Mensajes: 33
Registrado: 24 Ago 2010, 02:26
Edad: 29

Problema al borra un tema

#1

Mensaje por Lopezito »

URL: http://topweb.zobyhost.com/foro.php
Versión phpBB: phpBB3 (3.0.7)
MODs Instalados: Ultimate points, blog-blog list user-blogs tags
Plantilla(s) usada(s): 1 thank green
Servidor: gratuito
Actualización desde otra versión: no
Conversión desde otro sistema de foros: no

Holas tengo un nuevo problema, al borra un opst o tema me aparece:
"Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in /home/vol1/zobyhost.com/zoby_6564068/htdocs/posting.php on line 1692"
Aqui dejo la linea 1692 del archivo posting.php:

Código: Seleccionar todo

			$sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - (" . $post_data['points_received'] . ' + ' . $post_data['points_attachment_received'] . ' + ' . $post_data['points_poll_received'] . ' + ' . $post_data['points_post_received'] . ' + ' . $post_data['points_topic_received'] . ") WHERE user_id = '" . $post_data['poster_id'] . "'";
Espero respuestas, adios...

Avatar de Usuario
leviatan21
Ex Staff
Mensajes: 8279
Registrado: 26 Mar 2008, 20:06
Género:
Edad: 55

Re: Problema al borra un tema

#2

Mensaje por leviatan21 »

En esa linea no hay problema, por favor adjunta tu archivo completo
Normas de phpBB España | Normas de Soporte
No doy soporte por privado : tenga en cuenta que su problema, también puede ser el problema de otro usuario.
Cualquier mensaje privado no solicitado será ignorado :twisted:

"Education is what remains after one has forgotten everything he learned in school" - Albert Einstein

Lopezito
Observador/a
Mensajes: 33
Registrado: 24 Ago 2010, 02:26
Edad: 29

Re: Problema al borra un tema

#3

Mensaje por Lopezito »

leviatan21 escribió:En esa linea no hay problema, por favor adjunta tu archivo completo
Ok ahi te lo dejo
Espero mas respuestas. :ok:
Espero que encuentres el error mucha suerte :ok:
Adios
Adjuntos
posting.zip
(14.12 KiB) Descargado 71 veces

Avatar de Usuario
leviatan21
Ex Staff
Mensajes: 8279
Registrado: 26 Mar 2008, 20:06
Género:
Edad: 55

Re: Problema al borra un tema  Tema Solucionado

#4

Mensaje por leviatan21 »

Las lineas 1691 a 1694 están mal ubicadas, deben ir mas abajo, debes prestar mas atención a las instrucciones antes y despúes cuando instalas,

Aquí te dejo un extracto para que tengas una idea :

El código que está mal es este :

Código: Seleccionar todo

            // Start Ultimate Points
            $sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - (" . $post_data['points_received'] . ' + ' . $post_data['points_attachment_received'] . ' + ' . $post_data['points_poll_received'] . ' + ' . $post_data['points_post_received'] . ' + ' . $post_data['points_topic_received'] . ") WHERE user_id = '" . $post_data['poster_id'] . "'";
            $db->sql_query($sql);
            // End Ultimate Points 
está en este entorno :

Código: Seleccionar todo

            $data = array(
                'topic_first_post_id'    => $post_data['topic_first_post_id'],
                'topic_last_post_id'    => $post_data['topic_last_post_id'],
                'topic_replies_real'    => $post_data['topic_replies_real'],
                'topic_approved'        => $post_data['topic_approved'],
                'topic_type'            => $post_data['topic_type'],
                'post_approved'            => $post_data['post_approved'],
                'post_reported'            => $post_data['post_reported'],
                'post_time'                => $post_data['post_time'],
                'poster_id'                => $post_data['poster_id'],
                // Start Ultimate Points
                'points_attachment_received'    => $post_data['points_attachment_received'],
                'points_poll_received'            => $post_data['points_poll_received'],
                'points_post_received'            => $post_data['points_post_received'],
                'points_topic_received'            => $post_data['points_topic_received'],
                'points_received'                => $post_data['points_received'],                
                //End Ultimate Points
                'post_postcount'        => $post_data['post_postcount']            
            // Start Ultimate Points
            $sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - (" . $post_data['points_received'] . ' + ' . $post_data['points_attachment_received'] . ' + ' . $post_data['points_poll_received'] . ' + ' . $post_data['points_post_received'] . ' + ' . $post_data['points_topic_received'] . ") WHERE user_id = '" . $post_data['poster_id'] . "'";
            $db->sql_query($sql);
            // End Ultimate Points
            ); 
y debe ser :

Código: Seleccionar todo

            $data = array(
                'topic_first_post_id'    => $post_data['topic_first_post_id'],
                'topic_last_post_id'    => $post_data['topic_last_post_id'],
                'topic_replies_real'    => $post_data['topic_replies_real'],
                'topic_approved'        => $post_data['topic_approved'],
                'topic_type'            => $post_data['topic_type'],
                'post_approved'            => $post_data['post_approved'],
                'post_reported'            => $post_data['post_reported'],
                'post_time'                => $post_data['post_time'],
                'poster_id'                => $post_data['poster_id'],
                // Start Ultimate Points
                'points_attachment_received'    => $post_data['points_attachment_received'],
                'points_poll_received'            => $post_data['points_poll_received'],
                'points_post_received'            => $post_data['points_post_received'],
                'points_topic_received'            => $post_data['points_topic_received'],
                'points_received'                => $post_data['points_received'],                
                //End Ultimate Points
                'post_postcount'        => $post_data['post_postcount']            
            );

            // Start Ultimate Points
            $sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - (" . $post_data['points_received'] . ' + ' . $post_data['points_attachment_received'] . ' + ' . $post_data['points_poll_received'] . ' + ' . $post_data['points_post_received'] . ' + ' . $post_data['points_topic_received'] . ") WHERE user_id = '" . $post_data['poster_id'] . "'";
            $db->sql_query($sql);
            // End Ultimate Points
 
Normas de phpBB España | Normas de Soporte
No doy soporte por privado : tenga en cuenta que su problema, también puede ser el problema de otro usuario.
Cualquier mensaje privado no solicitado será ignorado :twisted:

"Education is what remains after one has forgotten everything he learned in school" - Albert Einstein

Lopezito
Observador/a
Mensajes: 33
Registrado: 24 Ago 2010, 02:26
Edad: 29

Re: Problema al borra un tema

#5

Mensaje por Lopezito »

Gracias por tu ayuda.
Perdon por no prestar atencion :ops
Perdon por las molestias, y nuevamente gracias.

Avatar de Usuario
leviatan21
Ex Staff
Mensajes: 8279
Registrado: 26 Mar 2008, 20:06
Género:
Edad: 55

Re: Problema al borra un tema

#6

Mensaje por leviatan21 »

Lopezito escribió:Gracias por tu ayuda.
Perdon por no prestar atencion :ops
Perdon por las molestias, y nuevamente gracias.
No es una molestia, tómalo como una sugerencia a futuro, en la mayoría de los casos de solicitud de soporte los errores suelen suceder por no seguir al pie de la letra las instrucciones.
Para nosotros no es más que otra ayuda, pero para quien instala ( y rompe el foro ) significa varias horas de problemas, usuarios enojados y nervios que pueden evitarse :cachas:
Normas de phpBB España | Normas de Soporte
No doy soporte por privado : tenga en cuenta que su problema, también puede ser el problema de otro usuario.
Cualquier mensaje privado no solicitado será ignorado :twisted:

"Education is what remains after one has forgotten everything he learned in school" - Albert Einstein

Cerrado

Volver a “Foros de Soporte 3.0.x”