Página 1 de 1

Ayuda inmediata!

Publicado: 24 May 2010, 20:50
por Nyna
Buenas Tardes, el dia de ayer estube tratando de agregar el Tinypic Plugin Mod en mi foro, usando el auto mod.
despues de subirlo y hacer las instalacionesme dio este error,
obviamente antes de meter mano en las plantillas habia hecho un back up,por si la embarraba(que fue inevitable)
Resulta que aunque utilese el back up siempre me quedoeste error a la hora de querer contestar los temas,
Cabe aclarar que los otros mods que estan instalados,ninguno funciona debeidamente...



Código: Seleccionar todo

Parse error: syntax error, unexpected '}' in /home/lecaffen/public_html/posting.php on line 635[b]URL[/b]: LeCaffe.net
Que puedo  Hacer  para  quitar  este  error?
Gracias por su Tiempo!


Versión phpBB: phpBB3 (3.0.7.PL)
MODs Instalados: Advanced PayPal Donation MOD
NV "Wer war da?"
Static Pages
Thanks for posts
Tinypic Plugin MOD
Plantilla(s) usada(s): Coffe_time
Servidor: pago
Actualización desde otra versión: no
Conversión desde otro sistema de foros: no

Re: Ayuda inmediata!

Publicado: 24 May 2010, 21:45
por HuanManwe
Intenta ponernos lo que hay en el archivo posting.php entre las líneas 625 y 645

Re: Ayuda inmediata!

Publicado: 24 May 2010, 22:51
por Nyna
Aqui esta lo que me pedistes..

Código: Seleccionar todo

'poll_max_options'	=> 0,
				'poll_vote_change'	=> 0      
			);

			$sql = 'UPDATE ' . TOPICS_TABLE . '
				SET ' . $db->sql_build_array('UPDATE', $topic_sql) . "
				WHERE topic_id = $topic_id";
			$db->sql_query($sql);
		}

		$post_data['poll_title'] = $post_data['poll_option_text'] = '';
		$post_data['poll_vote_change'] = $post_data['poll_max_options'] = $post_data['poll_length'] = 0;
	}
	else
	{
		$post_data['poll_title']		= utf8_normalize_nfc(request_var('poll_title', '', true));
		$post_data['poll_length']		= request_var('poll_length', 0);
		$post_data['poll_option_text']	= utf8_normalize_nfc(request_var('poll_option_text', '', true));
		$post_data['poll_max_options']	= request_var('poll_max_options', 1);
		$post_data['poll_vote_change']	= ($auth->acl_get('f_votechg', $forum_id) && $auth->acl_get('f_vote', $forum_id) && isset($_POST['poll_vote_change'])) ? 1 : 0;
	}

	// If replying/quoting and last post id has changed
	// give user option to continue submit or return to post
	// notify and show user the post made between his request and the final submit
	if (($mode == 'reply' || $mode == 'quote') && $post_data['topic_cur_post_id'] && $post_data['topic_cur_post_id'] != $post_data['topic_last_post_id'])
	{
		// Only do so if it is allowed forum-wide
		if ($post_data['forum_flags'] & FORUM_FLAG_POST_REVIEW)
		{
			if (topic_review($topic_id, $forum_id, 'post_review', $post_data['topic_cur_post_id']))
			{
				$template->assign_var('S_POST_REVIEW', true);  
                         
			

			$submit = false;
			$refresh = true;
		}
	}

	// Parse Attachments - before checksum is calculated
	$message_parser->parse_attachments('fileupload', $mode, $forum_id, $submit, $preview, $refresh);

	// Grab md5 'checksum' of new message
	$message_md5 = md5($message_parser->message);

	// If editing and checksum has changed we know the post was edited while we're editing
	// Notify and show user the changed post
	if ($mode == 'edit' && $post_data['forum_flags'] & FORUM_FLAG_POST_REVIEW)
	{
		$edit_post_message_checksum = request_var('edit_post_message_checksum', '');
		$edit_post_subject_checksum = request_var('edit_post_subject_checksum', '');

		// $post_data['post_checksum'] is the checksum of the post submitted in the meantime
		// $message_md5 is the checksum of the post we're about to submit
		// $edit_post_message_checksum is the checksum of the post we're editing
		// ...

		// We make sure nobody else made exactly the same change
		// we're about to submit by also checking $message_md5 != $post_data['post_checksum']
		if (($edit_post_message_checksum !== '' && $edit_post_message_checksum != $post_data['post_checksum'] && $message_md5 != $post_data['post_checksum'])
		 || ($edit_post_subject_checksum !== '' && $edit_post_subject_checksum != $post_data['post_subject_md5'] && md5($post_data['post_subject']) != $post_data['post_subject_md5']))
		{
			if (topic_review($topic_id, $forum_id, 'post_review_edit', $post_id))
			{
				$template->assign_vars(array(
					'L_POST_REVIEW'			=> $user->lang['POST_REVIEW_EDIT'],
					'L_POST_REVIEW_EXPLAIN'	=> $user->lang['POST_REVIEW_EDIT_EXPLAIN'],
				));
			

			$submit = false;
			$refresh = true;
		}
	

	// Check checksum ... don't re-parse message if the same
	$update_message = ($mode != 'edit' || $message_md5 != $post_data['post_checksum'] || $status_switch || strlen($post_data['bbcode_uid']) < BBCODE_UID_LEN) ? true : false;
       

    

	// Also check if subject got updated...
	$update_subject = $mode != 'edit' || ($post_data['post_subject_md5'] && $post_data['post_subject_md5'] != md5($post_data['post_subject']));

	// Parse message
	if ($update_message)
	{
		if (sizeof($message_parser->warn_msg))
		{
			$error[] = implode('<br />', $message_parser->warn_msg);
			$message_parser->warn_msg = array();
		}

		$message_parser->parse($post_data['enable_bbcode'], ($config['allow_post_links']) ? $post_data['enable_urls'] : false, $post_data['enable_smilies'], $img_status, $flash_status, $quote_status, $config['allow_post_links']);

Re: Ayuda inmediata!

Publicado: 24 May 2010, 23:27
por HuanManwe
En mi posting.php aparece otra cosa. Quizá es que tu archivo esté corrupto.

Haz una copia de seguridad de ese archivo que tienes ahora. Prueba a bajar una copia limpia de la versión del foro que estés usando y sobreescribe ese archivo de tu foro con el recién bajado. Luego limpia la caché y comprueba si todo ha ido bien.

Re: Ayuda inmediata!

Publicado: 24 May 2010, 23:29
por Nyna
Disculpa mi ignorancia pero como Hago eso?
la Verdad es que yo soy nueva en estos menesteres...

Re: Ayuda inmediata!

Publicado: 24 May 2010, 23:45
por HuanManwe
Básicamente accede a la sección de descargas de la página oficial: http://www.phpbb.com/downloads/
y bajas a tu disco duro la última versión del phpBB3. En este caso: http://www.ohloh.net/p/phpbb/download?f ... .7-PL1.zip

Lo descomprimes en tu PC y luego accedes al ftp de tu foro. Usando el cliente FTP que tengas instalado, por ejemplo el FileZilla.
Descarga a un directorio seguro el archivo posting.php de tu foro y sube el que tengas de la última versión que acabas de bajar.

Luego accede al directorio cache de tu foro, en esa conexión FTP que tienes creada, y limpia el contenido de todos los archivos que haya MENOS el .htaccess y el index.html

Re: Ayuda inmediata!

Publicado: 24 May 2010, 23:47
por Nyna
Creo que hise bien lo que me recomendastes..
y ahora me da este errorr

Código: Seleccionar todo

Parse error: syntax error, unexpected T_VARIABLE in /home/lecaffen/public_html/posting.php on line 240

Re: Ayuda inmediata!

Publicado: 25 May 2010, 00:39
por HuanManwe
Es raro, pero diría que alguno de tus MOD's ha hecho algo en ese archivo, y ahora está interactuando mal.

Te recomendaría volver a poner el posting.php que tuvieras de antes de aplicar el último mod, y luego usar el autoMOD para desinstalar ese último mod aplicado. Después limpia la caché otra vez. A ver si así se soluciona el problema.

Re: Ayuda inmediata!

Publicado: 25 May 2010, 00:46
por Nyna
Opte por cambiar el estilo, no encontre solucion a mi problema,
Pero perdi los mods, que tenia ya instalados, y por los que pague! :cry:
Muchas Gracias por tu tiempo!

Re: Ayuda inmediata!

Publicado: 25 May 2010, 01:18
por HuanManwe
¿Pagaste por mod's? Qué mal...

Deberías usar un foro de pruebas para instalar personalmente los mod's. La mayoría no son difíciles de instalar.