1 Attachment(s)
Thanks for the quick reply... Great article. In the attachment you can see that I have it working. What I am looking to do is add a sub menu to the sub menu. I have the Tech Area tab then the sub menu that has Carbs trying to add a sub menu to carbs so it will have Cleaning link and Jetting link. So basically making when you click on carbs it does not take you to Carbs.php but opens a sub menu that would have links to jetting.php and Cleaning.php
Thanks Eric PHP Code:
|
I don't know how to add a submenu to a submenu as I haven't tried to do that. You'll have to play with the css to do that.
|
Is there any way to use vb if statements with this mod?
I tried wrapping certain links under the custom tab in the Code:
<vb:if condition="$show['modcplink']"> but it completely breaks this plugin, you get a Quote:
Does perhaps some other function have to be called in either this or the .php page in question? (I'm using the custom php page Lynne posted an article on in conjunction with this plugin) the same vb if statement works if I put it elsewhere within a template that apears on the page, but I would like the link in question to be in the navbar and not in the body. |
This post shows how to use conditions to add the links - https://vborg.vbsupport.ru/showpost....6&postcount=28 See if that helps.
|
I actualy tried that way of doing it too, what happens if with is, the if conditional just gets put in the navbar as plain text, as if vb is not seeing it as a conditional. I notice the syntax highlighting on the plug code input page also doesn't color the extra if statement in green like the if statement at the top for the 'this_script ==' one.
Here's my complete code for the navtab plugin: Code:
$tabselected = ''; Only difference I can see in the example you gave and my version, is I'm trying to hide an entire popup control to non admins, your example just tries to hide a link. |
I'd suggest you start over with the plugin because you've totally messed up the structure of the submenu.
The reason why you are ending up with the condition showing up in the code is because you are putting it there. Look again at the code I wrote. You need to *end* your writing to the variable $tablinks, then do the condition and add to $tablinks if the condition is true, and then continue writing to it later on. But, you need to break out of writing to it in order to do the condition - you just put the condition right in the middle of it! Basically: PHP Code:
|
Quote:
Quote:
Thanks again. |
Quote:
|
I did everything you said in the first post, and it works perfectly. There is only one thing I can't figure out.
If I click the links below the button, link1.php for example, it doesn't keep that button selected. It highlights the forum button again. Is there anyway I can put multiple "yourpage" names in that code so it keeps the button highlighted even when going to a page by clicking a link below the button? if (THIS_SCRIPT == 'yourpage') --------------- Added [DATE]1259795597[/DATE] at [TIME]1259795597[/TIME] --------------- NVM fixed it |
1 Attachment(s)
I fixed the first issue I had, but I have another question. In my images you can see what I mean.
I want the second image, the affiliate one, to show home in front of it as well. Just like in the first image. How can I change that? Like it says: Home > Frontpage And the other one only says: Affiliates |
All times are GMT. The time now is 12:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|