Open Side Menu Go to the Top
Register
'David knows that Juanda knows that David knows that Juanda knows...' (LC/NC) 'David knows that Juanda knows that David knows that Juanda knows...' (LC/NC)

11-30-2010 , 03:59 PM
Quote:
Originally Posted by obviously.bogus
check 1 2 1 2

Shanoobs Euro
Shanoobe MHE

Edit: would be better if it didn't open another window/tab ...
Nice one OB !!!

Yeah it's a shame it opens a blank tab, that's vbulletin inserting target="_blank" in the <a> tag. I don't think there's anything can be done about this short of a board admin adding the bbcode for a different link type.
11-30-2010 , 04:22 PM
Quote:
Originally Posted by AlienSpaceBat
Nice one OB !!!

Yeah it's a shame it opens a blank tab, that's vbulletin inserting target="_blank" in the <a> tag. I don't think there's anything can be done about this short of a board admin adding the bbcode for a different link type.


Do you know anything about doing that? Is it worth a post in ATF forum?
11-30-2010 , 06:00 PM
Quote:
Originally Posted by Leroy2DaBeroy
My vote's for first, last, and 2nd to last. And 2nd to last only because it'll trick a lot of noobs into coming into this thread to figure out wtf is a donor card.

Edit: Oh, and CF (if you're not dead in a gutter somewhere), you're past your weigh in date for that thread in the Micros. You may have already forfeited your 8 bucks or whatever.
grumble.
11-30-2010 , 06:02 PM
Yeah I know what would be needed - I'll dig out the details & post in ATF later or tomorrow.

I can imagine why they might not want to do it, but you never know ....
11-30-2010 , 06:07 PM
Quote:
Originally Posted by AlienSpaceBat
Yeah I know what would be needed - I'll dig out the details & post in ATF later or tomorrow.

I can imagine why they might not want to do it, but you never know ....
hacking "includes/functions_bbcodeparse.php" ... right ??? at least thats what I got in 10 minutes with google ...

I can post if you don't have time. Or I could let you do it if you think you'd do a better job than I could with the limited info I have and zero php programming experience
11-30-2010 , 06:25 PM
You post it by all means

It isn't actually a hack, it's one of the admin functions to add a new custom BB code. There is a form provided in vbulletin to do it.

What would happen is a new tag e.g. [alt_url] [/alt_url] would be created for 2p2, and could be added as a toolbar btn to the editor.

The vbulletin manual page dealing with this is http://www.vbulletin.com/docs/html/main/bbcode_add . I know I have an example of something similar buried away somewhere, but there must be loads online I expect.
11-30-2010 , 06:47 PM
geeks itt
11-30-2010 , 07:01 PM
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
11-30-2010 , 07:39 PM
Quote:
Originally Posted by AlienSpaceBat
You post it by all means
Posted

http://forumserver.twoplustwo.com/55...estion-929201/
11-30-2010 , 07:50 PM
Quote:
Originally Posted by obviously.bogus
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.


Yeah. You could have a [pokerstars] BB code that you just use to wrap the tourney number. That would work also.

geekin it up in BQ ftw lol .......
11-30-2010 , 09:40 PM
new thread

      
m