DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin





User Tag List

Results 1 to 1 of 1

Thread: Creating Custom Chat Tabs


Forum: vBShout

Support / Suggestions for vBShout.
Click here to buy!

  1. #1
    Development Team Leader
    Level 0 (0 Loyalty Points)
    Deceptor's Avatar
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Feb 2010
    Posts
    770
    Rep Power
    8

    Default

    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 Belazor; 16th May 2010 at 14:41.
    2 1 0
     
    Creating Custom Chat Tabs Send PM  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.