Página 1 de 1

Problema Con Profile Control Panel

Publicado: 10 Mar 2006, 02:36
por Ingpanda
bueno.. luego de instalar


MOD Title: Profile Control Panel
MOD Version: 2.0.0-1



me paso q al hacer quotes a otras personas solo sale el texto pero no aparece el cuadradito diciendo..



ingpanda escribio:

................





bueno eso seria... ( TENGO bbcode ACTIVADO )

revice por hartos laos.. pero aer si me pueden dar una mano...


se agradece de antemano

Respuesta: Problema Con Profile Control Panel

Publicado: 10 Mar 2006, 03:11
por mitch
Solo con el quote ?
los demas bbcodes funcionan ok?

yo repasaria los pasos de bbcode.php
o que hayas hecho mal algun paso en viewtopic.php (pues hay un include hacia bbcode.php)
me huele a un AFTER o BEFORE mal interpretado.

revisa viewtopic.php y bbcode.php y nos cuentas (backups siempre). Suerte

Respuesta: Problema Con Profile Control Panel

Publicado: 11 Mar 2006, 05:44
por Ingpanda
si solo el quote a otros usuarios los de+ estan todos bien..


por eso me sono raro q sea solo ese.. revice bbcode... y viewtopic..


pero no logro ver q cosa esta mal..


si todo se ve correcto

Respuesta: Problema Con Profile Control Panel

Publicado: 11 Mar 2006, 06:41
por mitch
para serte bien sincero, no se que pueda ser, es que no se por donde guiarme para encontrar el "error"
pues cuando me sucedia eso era generalmente por errores en bbcode.php o en el .tpl de los bbcode.
pero si dices tenerlo correcto (con los after y before bien interpretados)...

se me ocurre quizas que tengas instalado desde antes algun otro Mod
que haya modificado los archivos del bbcode antes
y con este mod se hayan pasado por alto aquellos valores, no se...
tienes otros mods instalados?

No se en verdad amigo, ojala otros compañeros de phpBB-Es puedan hecharte una mano (y a mi tambien)
;)

Re: Respuesta: Problema Con Profile Control Panel

Publicado: 14 Mar 2006, 21:32
por Ingpanda
pero es q si pase a alterar algo deberia haber sido en todos los bbcodes

pero el uniko error es en el de citar a algun usuario...


incluso el de citar solo esta bueno....


mmm... quieres que ponga alguna linea de mi bbcode o de algun archivo tpl para que veas ??

Respuesta: Problema Con Profile Control Panel

Publicado: 15 Mar 2006, 22:09
por Ingpanda
estuve revizando todos los bbcodes en los mensajes privados

y el unico que falla es el de hacer quote a un usuario... :(




no se si quieres ver las lineas de algun archivo tpl o de bbcode ??

Respuesta: Problema Con Profile Control Panel

Publicado: 16 Mar 2006, 01:06
por mitch
Personalmente, tuve un error similar pero con el HIDE.
El error estaba en posting_body.tpl ... pero veo ese mod no edita eso... tampoco edita el bbcode.tpl...
peganos el includes/bbcode.php que es lo mas directo.. luego tendriamos que ver otros archivos
o el .css que tambien lo edita.. pero me di cuenta que mas que "ediciones" el mod "agrega" cosas...
puede que hayas tenido problemas con los AFTER y BEFORE.. revisa esto tambien, no vayas a confundir aquello
y repasa los pasos... si algo anda mal es porque algun paso te saltaste, yo antes de consultar, incluso instalo el mod de nuevo
con nuevos respaldos y tal.. pero bueno, peganos ese archivo y vamos viendo

Respuesta: Problema Con Profile Control Panel

Publicado: 16 Mar 2006, 14:37
por Nazcar
Bien revisando esa web que dices el problema es que no coje ese bbcode como tal veamos comprueba el

includes/bbcode.php

Código: Seleccionar todo

	$bbcode_tpl['quote_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_open']);

	$bbcode_tpl['quote_username_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_username_open']);
	$bbcode_tpl['quote_username_open'] = str_replace('{L_WROTE}', $lang['wrote'], $bbcode_tpl['quote_username_open']);
	$bbcode_tpl['quote_username_open'] = str_replace('{USERNAME}', '\\1', $bbcode_tpl['quote_username_open']);

Código: Seleccionar todo


function bbencode_second_pass($text, $uid)
{
	global $lang, $bbcode_tpl;
	$text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1:", $text);

	// pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
	// This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
	$text = " " . $text;

	// First: If there isn't a "[" and a "]" in the message, don't bother.
	if (! (strpos($text, "[") && strpos($text, "]")) )
	{
		// Remove padding, return.
		$text = substr($text, 1);
		return $text;
	}

Código: Seleccionar todo


	// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
	$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
	$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);

	// New one liner to deal with opening quotes with usernames...
	// replaces the two line version that I had here before..
	$text = preg_replace("/\[quote:$uid="(.*?)"\]/si", $bbcode_tpl['quote_username_open'], $text);

Código: Seleccionar todo


	// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
	$text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quoteicy]', '', false, '');
	$text = bbencode_first_pass_pda($text, $uid, '/\[quote=\\\\"(.*?)\\\\"\]/is', '[/quoteicy]', '', false, '', "[quote:$uid=\\"\\1\\"]"); 

Código: Seleccionar todo


			{
				// Grab everything until the first "]"...
				$possible_start = substr($text, $curr_pos, strpos($text, ']', $curr_pos + 1) - $curr_pos + 1);

				//
				// We're going to try and catch usernames with "[' characters.
				//
				if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) )
            {
               // OK we are in a quote tag that probably contains a ] bracket.
               // Grab a bit more of the string to hopefully get all of it..
               if ($close_pos = strpos($text, '"]', $curr_pos + 14))
               {
                  if (strpos(substr($text, $curr_pos + 14, $close_pos - ($curr_pos + 14)), '[quote') === false)
                  {
                     $possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 7);
						}
					}
				}

				// Now compare, either using regexp or not.
				if ($open_is_regexp)
				{
					$match_result = array();
					if (preg_match($open_tag[$i], $possible_start, $match_result))
					{
						$found_start = true;
						$which_start_tag = $match_result[0];
						$start_tag_index = $i;
						break;
					}
				}
				else
				{
					// straightforward string comparison.
					if (0 == strcasecmp($open_tag[$i], $possible_start))
					{
						$found_start = true;
						$which_start_tag = $open_tag[$i];
						$start_tag_index = $i;
						break;
					}
				}
			}

			if ($found_start)
			{
				// We have an opening tag.
				// Push its position, the text we matched, and its index in the open_tag array on to the stack, and then keep going to the right.
				$match = array("pos" => $curr_pos, "tag" => $which_start_tag, "index" => $start_tag_index);
				array_push($stack, $match);
				//
				// Rather than just increment $curr_pos
				// Set it to the ending of the tag we just found
				// Keeps error in nested tag from breaking out
				// of table structure..
				//
				$curr_pos += strlen($possible_start);
			}
despues de eso viene un else que implica tambien al tag code


estoy buscando a mano todo lo referente del tag quote en mis webs pero tengo todo el bbcode modificado bastante con muchos tags a parte que uso el plus bastante modificado si no te pondria el bbcode entero,algo te dejaste en la instalacion de ese mod,tomate un respiro olvida momentaneamente ese problema y cuando lo hagas hecho vuelve a repasar la instalacion el problema lo tienes en el includes/bbcode.php puesto que en el tpl esta correcto lo pasa correctisimo pero no como un tag de bbcode


Un saludo

Respuesta: Problema Con Profile Control Panel

Publicado: 20 Mar 2006, 14:09
por Ingpanda
si Nazcar... toda la razon. tomare un respiro y me tomare un tiempo para verlo detenidamente


desintalare todo y volvere desde el principio..



muchas gracias nazcar y mitch