Deceptor

Former Developer
#1
It's do-able thanks to javascript being so open :)

Here's an example for how to create a "link" to a page with Forum Rules:


vBulletin 4.x:

Edit the template dbtech_vbshout_shoutbox
Find:
Code:
vB_Editor['dbtech_shoutbox_editor{vb:var instance.instanceid}'] = vBShout{vb:var instance.instanceid}.smilies;
Underneath this, add:
Code:
vBShout{vb:var instance.instanceid}.show_rules = function()
{
    window.location.href = 'YOUR RULES PAGE URL';

    return false;
};

vBShout{vb:var instance.instanceid}.add_tab('rules_', 'Shoutbox Rules', false, 'show_rules()');


vBulletin 3.8.x:

Edit the template dbtech_vbshout_shoutbox
Find:
Code:
vB_Editor['dbtech_shoutbox_editor{$instance[instanceid]}'] =  vBShout{$instance[instanceid]}.smilies;
Underneath this, add:
Code:
vBShout{$instance[instanceid]}.show_rules = function()
{
    window.location.href = 'YOUR RULES PAGE URL';

    return false;
};

vBShout{$instance[instanceid]}.add_tab('rules_', 'Shoutbox Rules',  false, 'show_rules()');


Save and you're done, just replace the capitals with the link you want the users to be directed to :)
 
Last edited by a moderator:
Top