Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to add green tab button to link

edited July 2010 in Vanilla 2.0 - 2.8
Hi All,

I have created a custom page to use with my Vanilla 1 installation. My custom page works perfect except that I don't know how to add the green tab button at top bar of Vanilla top bar to my custom page link. I have the following in my page:

// Add a link to the top bar of page
$pagename = basename(__FILE__);

if(isset($Menu) && $Context->Session->UserID > 0 && $Context->Session->User->Permission('PERMISSION_VIEW_MEMBER')) {
$Menu->AddTab('Members', GetUrl($pagename, '', '', '', '', 'u=1'), $Attributes = '', $Position = '50', $ForcePosition = '50');
}

All I want is a way to add the green tab button to the link above which is shown on my top bar. Please note, this is not an extension, just a single custom page I will call from links I insert in my other pages.

BTW, can someone tell me how make a page viewable only by an Admin user?

Thanks for your help
Tagged:
Sign In or Register to comment.