Página 1 de 1

Problema al borra un tema

Publicado: 26 Oct 2010, 22:38
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...

Re: Problema al borra un tema

Publicado: 26 Oct 2010, 22:56
por leviatan21
En esa linea no hay problema, por favor adjunta tu archivo completo

Re: Problema al borra un tema

Publicado: 26 Oct 2010, 23:14
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

Re: Problema al borra un tema  Tema Solucionado

Publicado: 26 Oct 2010, 23:23
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
 

Re: Problema al borra un tema

Publicado: 26 Oct 2010, 23:58
por Lopezito
Gracias por tu ayuda.
Perdon por no prestar atencion :ops
Perdon por las molestias, y nuevamente gracias.

Re: Problema al borra un tema

Publicado: 27 Oct 2010, 04:38
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: