Tobi wrote:Thanks,
so this is a workaround to play the XHTML strict game, right?
Wow.... quite a lot of code to replace [i]target="_blank"[i].
I still think it is better to stay with transitional then.
I changed my board to target="_blank" and it works fine.... I think sometimes rules that are set up to simplify things just reach the opposite...like in this case.
Here's another, much simpler way of making this work This little mod will open local URL's in the same window, but external URL's will open in a new one.
Open include/parser.php.
Around line 278, find:
return '<a href="'.$full_url.'">'.$link.'</a>';
Replace with:
if (strpos($full_url, $_SERVER["SERVER_NAME"]) === FALSE)
return '<a href="'.$full_url.'" onclick="window.open(this.href); return false;">'.$link.'</a>';
else
return '<a href="'.$full_url.'">'.$link.'</a>';
What this does, is look for your server name in the URL. If it can't find it, it'll add the javascript needed to open a new window