Bienvenido, Invitado
Nombre de Usuario Contraseña: Recordarme

kunena y joni-search
(1 viendo) (1) Invitado
  • Página:
  • 1

TEMA: kunena y joni-search

kunena y joni-search hace 2 años, 8 meses #11883

hola joni como ago para q link q dejamos en el foro los habra con el js. vos ya me lo habias explicado cuando tenia fireboard ahora con kunena es lo mismo
  • gonzaunit
  • DESCONECTADO
  • Colaborador
  • Temas: 291
  • Karma: 25

Re: kunena y joni-search hace 2 años, 8 meses #11885

Hola,

En lib/kunena.parser.php cambia

            case 'url':
$task->autolink_disable--;
// www. > http://www.
if(isset($tag->options['default'])) {
$tempstr = $tag->options['default'];
if(substr($tempstr, 0, 4)=='www.') {
$tempstr = 'http://'.$tempstr;
}
$tns = "<a href='".kunena_htmlspecialchars($tempstr, ENT_QUOTES)."' rel=\"nofollow\" target=\"_blank\">"; $tne = '</a>';
return TAGPARSER_RET_REPLACED;
}
break;

Por
			case 'url':
$path = "/joni-search";
 
$task->autolink_disable--;
if(isset($tag->options['default'])) {
$tempstr = $tag->options['default'];
if(substr($tempstr, 0, 4)=='www.') {
$tempstr = 'http://'.$tempstr;
}
if (file_exists($_SERVER['DOCUMENT_ROOT'].str_replace("/", DS, $path).DS."index.php") && strpos($tempstr, $_SERVER['SERVER_NAME']) === false) {
$tns = "<a target='_blank' href='http://".$_SERVER['HTTP_HOST'].$path."/?url=".urlencode(str_replace("&amp;","&",$tempstr))."'>";
}
else {
$tns = "<a target='_blank' href='".$tempstr."'>";
}
$tne = '</a>';
return TAGPARSER_RET_REPLACED;
}
break;

Haré un plugin para que no se tenga que cambiar manualmente

Saludos!
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144

Re: kunena y joni-search hace 2 años, 8 meses #11887

gracias joni me sirvio!
  • gonzaunit
  • DESCONECTADO
  • Colaborador
  • Temas: 291
  • Karma: 25
  • Página:
  • 1
Página generada en: 0.57 segundos