I want to create a tab for a specific section in the CMS. Is there a way to get the section name in the PHP code?
I can see the section name in the navbar so maby I can get the navbar text and use this for a compare?
I was thinking something like
PHP Code:
if (THIS_SCRIPT == 'vbcms')
{
if (sectionname =='My Section')
{
$vbulletin->options['selectednavtab']='unique_name';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="link1.php">Link 1</a></li>
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Drop Down</a>
<ul class="popupbody popuphover">
<li><a href="sublink1.php">SubLink 1</a></li>
<li><a href="sublink2.php">SubLink 2</a></li>
<li><a href="sublink3.php">SubLink 3</a></li>
</ul>
</li>
<li><a href="link2.php">Link 2</a></li>
<li><a href="link3.php">Link 3</a></li>
</ul> ';
}
}
Please can anyone help? I have searched for this the whole day