Fallback
07-28-2005, 01:42 AM
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...
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.";
}
willing to pay for this hack.
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...
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.";
}
willing to pay for this hack.