Hola Joni... pues no, no di con el frame
Es decir, el frame lo tengo hecho, está
AQUI
La nueva url se carga de esta forma:
www.megaflowlatino.com/arriba.php/?url=http%3A%2F%2Fflowlatino.superforo.net%2Fforum.htm
La página que quize enlazar fue:
Ahora no se que me falta, aqui esta el pg2 editado:
<?php
defined( '_JEXEC' ) or die('Restricted access');
$mainframe->registerEvent('onPrepareContent', 'plgContentpg2');
function plgContentpg2( &$row, &$params, $page=0 ) {
$frame = "http://www.megaflowlatino.com/arriba.php/?url=%s"; //%s es donde irá la url
$var = "noframe=1"; //si en la url pones noframe=1 no se cambiará la url, por ejemplo: http://www.google.es?noframe=1
preg_match_all('/<a([^h]+)href="([^"]+)"/', $row->text, $out);
for ($i=0;$i<count($out[1]);$i++) {
if ((substr($out[2][$i],0,4) == "http" || substr($out[2][$i],0,3) == "ftp") && strpos($out[2][$i], $_SERVER['HTTP_HOST']) === false) {
if (strpos($out[2][$i], $var) === false) {
$row->text = str_replace($out[0][$i], '<a'.$out[1][$i].'href="'.str_replace("%s", urlencode($out[2][$i]), $frame).'"', $row->text);
}
else {
$row->text = str_replace($out[0][$i], '<a'.$out[1][$i].'href="'.substr(str_replace($var, "", $out[2][$i]),0,-1).'"', $row->text);
}
}
}
}
Que estoy haciendo mal?