i need this mods. pls..

devilinearth

New Member
i need this hacks..l help...


Code:
http://www.vbulletin.org/forum/showthread.php?t=75228

http://www.vbulletin.org/forum/showthread.php?t=74940


 
here are your requests, the first one is attached, the second one just had hidden code which is here:

Just a quick solution, not tested!!!

Open file includes/functions_bbcodeparse.php.

Find:
PHP:
// ###################### Start bbcodehandler_code #######################
function handle_bbcode_code($code)
{
Add before:
PHP:
// ###################### Start bbcodehandler_noguest #######################
function handle_bbcode_noguest($code)
{
    global $bbuserinfo;

    // remove empty codes
    if (trim($code) == '')
    {
        return '';
    }

    if ($bbuserinfo['userid'] == 0)             // Guest
    {
        return "Sorry this text is not viewable by guests.";
    }
    else
    {
        return $code;
    }
}
In the same file find:
PHP:
        // [u]
        $bbcodes['standard']['find']['[u]'] = '#\[u\](.*)\[/u\]#esiU';
        $bbcodes['standard']['replace']['[u]'] = "handle_bbcode_parameter('\\1','" . str_replace("'", "\'", '<u>\1</u>') . "')";
        $bbcodes['standard']['recurse']['u'][0] = array('replace' => 'u');
Add After:
PHP:
        //[NOGUEST]
        $bbcodes['custom']['find']['[noguest]'] = '#\[noguest\](.*)\[/noguest\]#esiU';
        $bbcodes['custom']['replace']['[noguest]'] = "handle_bbcode_noguest('\\1')";
        $bbcodes['custom']['recurse']['noguest'][0] = array('handler' => 'handle_bbcode_noguest');
This should do the trick.
 
Back
Top