Quote:
Originally Posted by gm139
No. I do. I'm using a eloquent red skin. I want to try with the deafault one too. No I didn't modifi the plugin.
--------------- Added [DATE]1323682221[/DATE] at [TIME]1323682221[/TIME] ---------------
tried. REQUEST_URI is empty. Any idea?
--------------- Added [DATE]1323688580[/DATE] at [TIME]1323688580[/TIME] ---------------
I have finally found a way that works, with this condition:
Code:
if ($_SERVER['HTTP_REFERER'] == 'http://www.piacenzacalcio.net/vb/content.php?3-prossima-trasferta')
The condition is verified, but still the tab is not highlighted and submenus do not appear. here is the plugin:
Code:
$tabselected = '';
$tablinks = '';
if ($_SERVER['HTTP_REFERER'] == 'http://www.piacenzacalcio.net/vb/content.php?3-prossima-trasferta')
{ $vbulletin->options['selectednavtab']='prossimatrasferta';
$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> ';
*/echo $tablinks;
die();*/
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="content.php?3-prossima-trasferta">Prossima trasferta</a>'.$tablinks.'</li>' ;
I have verified that $tablinks is not empty, through the echo you can see.
|
If I understand your problem, you're trying to get your new tabs to be "selected" after you click on them, and they are page in the CMS like content.php?XX
This is what I did:
For each CMS Page create a plugin and the condition in the plugin would be something like this:
PHP Code:
if ($vbulletin->nodeid == XX)
Where XX is the nodeid of the page
Since the articles are in the CMS, both the home tab and your new tab will be selected. To fix this, edit the plugin called
"Navbar: Insert CMS Navbar Entry"
Find:
PHP Code:
if (defined('CMS_SCRIPT') AND class_exists('vBCms_Navbar'))
Replace:
PHP Code:
if (defined('CMS_SCRIPT') AND class_exists('vBCms_Navbar') AND !in_array($vbulletin->nodeid, array(XX, XX, XX)))
I hope that helps.