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:
	
	
	
		
Then I created a template called "dropdown" with following code
	
	
	
		
So, how would I go about doing this in 4?
This how I did it in 3.8, when I was running VB.
	
	
	
		
Hopefully, some of you kind folks will help me out!
				
			I found where I could create a plugin:
		Code:
	
	global $template_hook;
    $newTemplate = vB_Template::create('dropdown');
    $template_hook['navtab_end'] .= $newTemplate->render();Then I created a template called "dropdown" with following code
		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>
    </ul>
    </li>So, how would I go about doing this in 4?
This how I did it in 3.8, when I was running VB.
		Code:
	
	<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>
</if>Hopefully, some of you kind folks will help me out!
 
 
		 
 
		
 
 
		 
 
		 
 
		 
 
		