The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
1. Assuming you do this correctly, then yet.
2. Either create more plugins or just put the code for another one directly under each other making sure each one has it's own unique conditions! 3. That is the condition you would use for your plugin. Right now you have this which isn't a valid condition for what you want: PHP Code:
|
#12
|
|||
|
|||
Hi,
Ok, I have done it, but the tab still not selected, but it goes to the correct pages when clicked. you can visit the site and have a look. HTML Code:
www.christian-gate.net |
#13
|
||||
|
||||
Please post your *exact* code for the plugin. And, actually, we can't see whether anything is working or not since you have the board off. You'll need to turn it on for us to see anything.
|
#14
|
|||
|
|||
Hi,
Here is the code, and the board is on $tabselected = ''; $tablinks = ''; if ($GLOBALS['forumid']==christianforum) { $vbulletin->options['selectednavtab']='christianforum'; $tabselected = ' class="selected"'; $tablinks = ' <ul class="floatcontainer"> <li><a href="http://www.christian-gate.net/cgforum/forumdisplay.php?2-Christian-Gate-Main-Forum">christian Forum</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> '; } $template_hook['navtab_start'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.christian-gate.net/cgforum/forumdisplay.php?2-Christian-Gate-Main-Forum">Christian Forum</a>'.$tablinks.'</li>' ; Thanks |
#15
|
||||
|
||||
You did not enter the forumid. The forumid is a number - it is the id number of the forum. You need to put that into the condition.
The Christian Forum navtab goes to this url -http://www.christian-gate.net/cgforum/forumdisplay.php?2-Christian-Gate-Main-Forum - so the forumid is 2. Please also use the code tags the next time you post code. It makes it much easier to read. |
#16
|
|||
|
|||
Hi,
ok, so i have changed it to the following PHP Code:
Thanks |
#17
|
||||
|
||||
PHP Code:
|
#18
|
|||
|
|||
Finally, thanks very much for your help and time.
--------------- Added [DATE]1313797023[/DATE] at [TIME]1313797023[/TIME] --------------- Can I ask you how can I delete the Forum one, I have dispalyed it, but it's still appearing. Thanks |
#19
|
||||
|
||||
You mean the Forum tab? That will require modifying the navbar template. I don't have instructions for doing that but I know they have been posted before so you may want to try a search.
|
#20
|
|||
|
|||
You mean the Forum tab? yes
--------------- Added [DATE]1313798541[/DATE] at [TIME]1313798541[/TIME] --------------- I came across it, but I couldn't find it anymore, will try again, thanks very much |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|