Adding a new tag would appear everywhere though, and cause all kinds of fuss for the 9,999 in 10,000 posts that don't contain a pokerstars://tournament URL. I was thinking that it would be much easier to just not include the ' target=\"_blank\"' part of the link if the URL was "pokerstars://"
So in the function handle_bbcode_url() replace
Code:
if ($type == 'url')
{
// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
with
Code:
if ($type == 'url')
{
IF $rightlink STARTS WITH "pokerstars://"
{
// pokerstars hyperlink
return "<a href=\"$rightlink\">$text</a>";
}ELSE{
// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
my psudocode in
RED
That way its totally transparent.
Quote:
Originally Posted by bb99
geeks itt