Evitar recorte URL

  • Autor Autor vivamotos
  • Fecha de inicio Fecha de inicio
V

vivamotos

Alfa
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Buenos días, si en mi foro pongo una URL muy larga el sistema me lo recorta poniendo 3 puntos ... y el final. Como puedo evitar esto? Grácias.
 
Hola vivamotos.

vBulletin hace el recorte automáticamente utilizando unas líneas de código en el archivo /includes/class_bbcode.php. Para evitar el recorte, busca el siguiente código en dicho archivo:

PHP:
if (!trim($link) OR str_replace('  ', '', $text) == $rightlink)
		{
			$tmp = unhtmlspecialchars($rightlink);
			if (vbstrlen($tmp) > 55 AND $this->is_wysiwyg() == false)
			{
				$text = htmlspecialchars_uni(vbchop($tmp, 36) . '...' . substr($tmp, -14));
			}
			else
			{
				// under the 55 chars length, don't wordwrap this
				$text = str_replace('  ', '', $text);
			}
		}

Haz que no se procese añadiendo las etiquetas /* y */ al inicio y al final respectivamente, osea:

PHP:
/* if (!trim($link) OR str_replace('  ', '', $text) == $rightlink)
		{
			$tmp = unhtmlspecialchars($rightlink);
			if (vbstrlen($tmp) > 55 AND $this->is_wysiwyg() == false)
			{
				$text = htmlspecialchars_uni(vbchop($tmp, 36) . '...' . substr($tmp, -14));
			}
			else
			{
				// under the 55 chars length, don't wordwrap this
				$text = str_replace('  ', '', $text);
			}
		} */

Saludos.
 
Atrás
Arriba