The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
BBCode URL for Members Only
Theres a link for registered members hack here https://vborg.vbsupport.ru/showthread.php?t=81467
but you can easily get around it via using bbcode url tags. How can you make sure bbcode url tags are parsed for members only also giving guests a promt to register instead of the link? I tried using conditionals in the functions_bbode_parse.php but Im getting regex errors. I tried this... Code:
global $bbuserinfo; if ($bbuserinfo[userid] != 0) { // [URL=XXX] $bbcodes['standard']['find']['[url='] = '#\[url=("|"|\'|)(.*)\\1\](.*)\[/url\]#esiU'; $bbcodes['standard']['replace']['[url='] = "handle_bbcode_url('\\3', '\\2', 'url')"; $bbcodes['standard']['recurse']['url'][1] = array('handler' => 'handle_bbcode_url'); } else { $bbcodes['standard']['find']['[url='] = '#\[url=("|"|\'|)(.*)\\1\](.*)\[/url\]#esiU'; $bbcodes['standard']['replace']['[url]'] = "Guests cannot view links. You must <a href='register.php'>register</a> to see links."; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|