1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VB 4.1 question

Discussion in 'Off Topic' started by Pope Viper, Jan 19, 2011.

Thread Status:
Not open for further replies.
  1. Pope Viper

    Pope Viper Well-Known Member

    Since I can't ask this on the VB forum (doing it for a customer), is it possible to give permissions to a specific user group to see a tab? If so, how? This was easy to do in 3.8, from what I recall, but not sure how to do it in 4.1.

    I found where I could create a plugin:

    global $template_hook;
        $newTemplate = vB_Template::create('dropdown');
        $template_hook['navtab_end'] .= $newTemplate->render();
    Then I created a template called "dropdown" with following code
    <li class="popupmenu">
        <a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 15px">Special Access</a>
        <ul class="popupbody popuphover">
        <li><a style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://www.domain.com/link1/">Jukebox</a></li>
        <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="sublink2.php">SubLink 2</a></li>
        <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="sublink3.php">SubLink 3</a></li>
    So, how would I go about doing this in 4?

    This how I did it in 3.8, when I was running VB.
    <if condition="is_member_of($bbuserinfo,6,9)">
    <td class="vbmenu_control"><a id="SpecialAccess" href="#SpecialAccess">Special Access</a><script type="text/javascript"> vbmenu_register("SpecialAccess"); </script></td>
    Hopefully, some of you kind folks will help me out!
  2. Brogan

    Brogan XenForo Moderator Staff Member

    If you're doing this for a vB customer, why can't the customer post it on your behalf in the vB forums?
  3. Pope Viper

    Pope Viper Well-Known Member

    Right now, he's out of the country, and I haven't had any luck contacting him. No problem, I'll keep nagging him!
  4. random

    random Active Member

    This is not about being kind, this about posting this in the right place.

    Good luck anyway! :)
  5. Lu Kas

    Lu Kas Active Member

  6. Peggy

    Peggy Well-Known Member

    Sorry Pope, but most of us left vB far behind and don't know much about vB4.1. I know nothing about vB 4 at all.
    jasetaro and Shelley like this.
  7. Mike

    Mike XenForo Developer Staff Member

    Yeah, this isn't really the most appropriate place. :)
    aculate, jasetaro, Pope Vipe and 3 others like this.
Thread Status:
Not open for further replies.

Share This Page