Quote:
Originally Posted by Lynne
Have you tried spitting out $_SERVER['REQUEST_URI'] on the page to verify you have it set correctly for the page? It may be different than in that example based on the type of Friendly URLs you are using.
And did you make the change to the plugin also?
|
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] ---------------
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.
|
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.