Status
Not open for further replies.

iNF3RN0

Customer
Hi,
I want to add an extra tab/link after the two tabs i-e Shoutbox | Active Users | new tab for adding the link to the shoutbox rules..

If I remember correctly (from the old inferno's shoutbox) we used to do this by editing the JS file..but I am not sure about the vbshout pro? any help??
 
It's do-able thanks to javascript being so open :)

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()');
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:
works perfectly ^_^ thanks however I want to tweak it a bit, the new rules tab is appearing as the selected one (CSS alt2 I guess), how I can make it appear normal? (CSS alt1)?

cheers,
 
hey how I can make the tab link open in the new window?

To get a link to open in a new browser window, what you do is add the target="_blank" attribute to your link tag, like this:

Code:
HTML:<a href="http://www.example.com/blah.php" target="_blank"> 
Click Here!</a>

Code:
Javascript: window.open('url to open','window name','attribute1,attribute2')
 
Last edited:
hello now you have updated the shout wher do i now add the code because i cannot find vB_Editor['dbtech_shoutbox_editor'] = vBShout.smilies;
 
Status
Not open for further replies.

Legacy vBShout

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,177
Customer rating
5.00 star(s) 1 ratings
Back
Top