Thanks for the tut. I'm a complete newb and it took a little reading, but, I got it figured out. :)
|
thank you lynee very nice.
|
is it correct ?
Code:
$tabselected = ''; |
It looks correct. Did you try it?
|
It is correct. Works fine with my urls.
@ Lynne mutch thanks for this great tutorial. helps me a lot. now i only must finde out how i add a dropdown for my main menu tab. |
I am using vbulletin suite 418. I would like to add 3 tabs on the navbar, so I have copied your code 3 times in the plugin.
Each tab points to to the page content.php, followed by different parameters for each page. Links work, so when I click on a tab the correct page is shown, but the tab is not highligheted. Any suggestion? |
Quote:
PHP Code:
|
Quote:
Code:
$tabselected = ''; |
Code:
if (THIS_SCRIPT == 'vbcms' && $_SERVER['REQUEST_URI'] == '/content.php?3-prossima-trasferta') Code:
if (THIS_SCRIPT == 'vbcms') |
Quote:
|
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? |
Quote:
--------------- Added [DATE]1323682221[/DATE] at [TIME]1323682221[/TIME] --------------- Quote:
--------------- 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') Code:
$tabselected = ''; |
UP, it would be great to have something like
Code:
$tabselected = ''; THIS_SCRIPT == 'test' -> vbcmspage forum.id -> section.id Any ideeas? |
Forgive me if someone asked this, but I didn't see anything like this in the comments. I want a tab on the navbar to randomly link to one of a couple dozen websites. I found code to do this with javascript or with php, and the code works fine, but I can't figure out how to incorporate it into the code for the tab.
Here's one of the codes I found for making a random link: PHP Code:
PHP Code:
|
It would need to be something like this:
PHP Code:
|
I'm not sure why, but it didn't work. This is the full version of the last line, just to make sure I inserted the code correctly:
PHP Code:
Code:
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/mernet/public_html/index/includes/class_bootstrap.php(555) : eval()'d code on line 62 |
Quote:
Code:
|
Simonhind, I just tried the code you suggested. It didn't give the "Warning: Unexpected character in input" error, but it did still give the parse error about the '<' bracket. Here's the full error message.
Code:
Parse error: syntax error, unexpected '<' in /home/mernet/public_html/index/includes/class_bootstrap.php(555) : eval()'d code on line 62 |
Im not sure why, but I cannot get ANY tabs to show up to the right of the what's new tab. Ive tried Mods (from vb.org) as well as this. Ive tried this code stock. I cannot get ANY tab to show up to the right of my "What's New" tab.
Currently I only have FORUMS, and WHATS NEW. What could be the issue? Any help please? |
does anyone know the css to increase the height of the tabs
------ edit : found the styvar, now thats looking better --------------- Added [DATE]1327405000[/DATE] at [TIME]1327405000[/TIME] --------------- Quote:
|
Hi Lynne,
is it possible to make the dropdown menu a link? I mean that clicking the arrow next to the item would result in showing the dropdown, but clicking the actual link would take you to the page I specify? Thanks |
Quote:
Quote:
|
Quote:
Had a custom hook {vb:raw template_hook.navbar_after_getnew} edit: Nvm taking that out didnt do anything. So this is the coding for my navbar tabs PHP Code:
I cant figure it out. It must be a conflicting plugin? Im not that great with VB language. Any help would be appreciated. EDIT 2: I figured it out. Well not really, but I just reverted my template and started it from scratch again. Not sure what I was missing or what, but I have the results I wanted by reverting it, and then modifying that code. Thanks |
Hello, great description. Took me a minute to figure it out, but, I got it working and I'm a pretty big newb, so, thank you. :)
I was wondering if there was a way to insert the new tab in a specific spot along the menu. I have 5 tabs so far, and I want this new one I created to be 4th in line. I know you can do navtab_middle, navtab_end, but, neither of those will put it in the 4th position. Thanks for any info on how to change this. Cheers. |
Quote:
|
Quote:
|
Quote:
PHP Code:
This should be basically the same as the original plugin code Lynne posted. I took out the code for the drop down menu. |
Quote:
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:
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:
PHP Code:
|
This is a great article - thanks to all who contributed.
What I am trying to do is add one more level to the dropdown. So for example if I click a pulldown, when I mouseover one of the options another set of options will display. I thought I could add another <ul class="popupbody popuphover"> to this code, but that just covers the current menu up. Can someone point me in the right direction? I'm not sure if this might be outside of the scope here. Thanks |
Hello,
I tried searches for separate, several, more than, and different so if it's been mentioned, I couldn't find it through all the pages. I'd like to make several different tabs but when I do this with different plugins, the first one is in the bold style of the menu but the second one is just plain text in the style of the sub-menu. Should I put all the new tabs into one plugin? If so how? If I keep them in separate plugins, how do I keep them all in the same style of the top menu? EDIT: I found the issue. The second time around I missed copying $tabselected = ''; so it was missing from the top. Works fine now. |
Thank you for making this Mod, I got it working fine now :)
|
Is this compatible with vB42? Because everything that I was using related to NavBar simple does not works. No errors, but ...nothing to see there.
Thank you Chris |
The only $template_hooks in vB4.2 navbar template are navbar_start and navbar_end, so only those two will work to add a navtab. However, the code to make a tab selected has totally changed, so that code will cause issues in 4.2.0 onward. You should use the new navigation manager if you are running 4.2.0
|
How do you add sub-menus then that can't be added manually in the Navigation Manager?
|
Quote:
|
True, but these sub-menus can't be done with the Navigation Manager as I use a vb:each setting to get the content for the menu and I see no way to add the ability to do that. If they are standard links, then yes, but not all menus are built the same, I guess. ;)
|
Quote:
https://vborg.vbsupport.ru/showpost....5&postcount=25 sub-menu, sub-links all can be added with just a plugin in vb 4.2.0 (no need to create template for navlinks) |
I read that and it confused me even more. LOL
|
can instructions be added for vBulletin 4.2
with the new Navigation Manager How do i add a link using my existing MODS to auto add to the Navigation Manager |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=283146 |
All times are GMT. The time now is 02:31 PM. |
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:
|