i only needed the links in the main navbar so for me this worked...
$tabselected = ''; $tablinks = ''; $template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="http://xxxxxxxxxx/payments.php">Buy VIP!</a>'.$tablinks.'</li>' ; $template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="http://xxxxxxxxxx/" target="_new">xxxxxxxx</a>'.$tablinks.'</li>' ; but im still trying to figure out how to put a gap after the nav buttons end and then another one near the other side, connected to the search bar --------------- Added [DATE]1262861307[/DATE] at [TIME]1262861307[/TIME] --------------- yea i tryed but i still cant figure out how to make one link stay at the far right instead of beside each other, a space and it shows at the very end of the bar... i tried <ul style='float:right'> but even if that worked its probably not the best coding so some help would be appreciated |
Quote:
About the only thing I've come up with is to remove all class="selected" for vbcms then write a plugin to specify what to select based on section id. Has to be an easier way though :( |
1 Attachment(s)
Excellent mod, works great. Has anyone figured out an easy way to use templates to pupulate the pages upon sub menu link clicks or does it have to be external or new page links?
I tried the 48-What-is-RideHub suggestions but my home tab always stays selected and it was very buggy for me. The site I am working to complete is http://deathcompanygaming.net/epeenery/ On my roster page I would like to use the dropdown menu to populate our roster for each game. I haven't been able to get jquery to be very stable and play nice with vB4 yet so is there an onclick event that will load templates into a particular div tag that can be used in the link? |
Hey Lynne!! I have used this code, but I can't seem to get it to work, or part of it to work. I have modified the code and it is shown below.
PHP Code:
You can see it in action if you wish at http://forum.pukkaradio.net Cheers for any help that may come of this!! |
Quote:
PHP Code:
|
Awesome!! Thanks ever so much Lynne!!
|
Hi All.
Browsed through this entire thread and I am still no wiser to my predicament. what I would like to do is simply add an extra standard Navbar Tab which will redirect the user to my other external website. Example "www.myadvertising-program.com" https://vborg.vbsupport.ru/ Thanks. |
To keep the tab highlighted for my sublinks I just added the or statement to the beginning and used multiple php files.
if (THIS_SCRIPT == 'recruitment.php' || THIS_SCRIPT == 'recruitment_status.php' || THIS_SCRIPT == 'epeen_application.php') |
Quote:
vBH-Add new tabs https://vborg.vbsupport.ru/showthread.php?t=228507 |
Lynne,
How would I construct the if condition for a link like so: Code:
misc.php?do=rules |
Quote:
PHP Code:
|
Quote:
Thanks |
Lynne,
Is there any way to add an extra tab using this method, while retaining the same tablinks as are used on the Forum tab? For my example, I'm trying to add a "Home" tab for vBa CMPS, but want to keep all the links you find on the Forum one. |
You may just copy all the links for the Forum tab.
|
I'm trying to create a forum for Traveling. I've downloaded and installed vBh that allows me to add extra tabs. These tabs only link to another site.
I want to create a Nav menu like this "Forum | Travel | Hotels | Car Rental" When the user clicks on a tab, it will open the tab in the same window but it would be about the topic the user click on. I've seen on other sites that this is possible. Just wondering how it's done. Please provide some details. I'm on vB 4.0.1, just in case you need to know the version. Thanks. |
I can't tell you how to use the other mod - I have no idea how it works. This article will tell you how to create a navtab, such as Travel, and you link it to your forumdisplay.php page for that forum. If you want the tab highlighted at that point, then do an if condition based on the $forumid.
|
1 Attachment(s)
Hi Lynne,
This might either be slightly off topic or may perhaps help others if added to your initial post. My search on changing tab order didn't return any useful results. However if whatever I've written is a commonly known solution, please disregard and delete the post :) All, It seems many people have asked about reordering tabs in the nav bar. As mentioned in many places there are three template hooks which allow you to place your new tab: - navtab_start - navtab_middle - navtab_end Lynne has used the navtab_end hook which is in the last line of the PHP Code: Code:
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="link.php">Nav Link</a>'.$tablinks.'</li>' ; Forum | Blogs | What's New If we use the Lynnes way of creating a tab as explained here, but use the navtab_middle hook like: Code:
$template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="link.php">Nav Link</a>'.$tablinks.'</li>' ; This is the only reliable solution I have found and am using it on my own forum (img attached). I'm open to other methods as well. Cheers |
Lynne,
Can you post the link.php code you mention in the very first post of the thread. $template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="link.php">Nav Link</a>'.$tablinks.'</li>' ; I would like to see how link.php is written. Thanks. |
Quote:
|
Quote:
I understand that. I just want to see how another page is written, which variable is need to recreate the same page as forum.php but displaying a different information. I know how to code php but don't know the structure of how vbulletin assembles its code. |
HTML Code:
$tabselected = ''; |
Quote:
Quote:
PHP Code:
|
Thank You! :)
|
I've just read this thread - and I may have missed something... in which case I apologise up front! Having said that... I'm also somewhat (ok, a lot) confused...
I would like to add a new tab called HOME and I would like to have it display on ALL pages throughout my site. Could someone please help me with this? Or point me in the right direction pls? Thanks in advance... |
If you create a new navtab via a plugin (like in this mod), it will show on all your pages.
|
Hi Lynne
Thanks... you mean as in the very first post? I hope you can understand I was a little confused by the time I had read all of the posts... Cheers Wormy --------------- Added [DATE]1264122352[/DATE] at [TIME]1264122352[/TIME] --------------- Wow... I followed the first post and bingo... all done in a matter of about 2 minutes. Next time I'll give the opening post/tutorial a go before I read ALL of the posts in the thread :) Thanks SO much Lynne!! --------------- Added [DATE]1264122480[/DATE] at [TIME]1264122480[/TIME] --------------- One QQ... is it possible to have the hiughlight line above the button appear (like the default buttons in VB)? |
Quote:
|
Quote:
I'm trying to get the standard highlight/floating bar which shows above the tab... Thank you!! --------------- Added [DATE]1264124054[/DATE] at [TIME]1264124054[/TIME] --------------- If I follow your tutorial... should that not be the case? Apologies for all the questions... |
In my plugin is this line:
PHP Code:
|
Thanks Lynne...manage to create also this great tutorial from you....just can't figure it out how to hide this DropDown Menu to Guest...tried the one you mention above but no luck...
can you please assist me here... PHP Code:
;):up: |
Quote:
|
PHP Code:
just like i said just want to hide the Misc. Menu to Unregistered Groups... or else everthing.... |
PHP Code:
PHP Code:
|
fantastic Lynne....thanks once again for your help... ;):up:
|
how do I put the tab before the "What's New?" tab and not after it?
|
Read the article:
Quote:
|
I don't have these hook locations...
|
Quote:
|
oops, my bad...
but 'navtab_middle' puts it before the blogs tab, how do I put it between the blogs tab and the what's new tab? |
Change the Execution Order of the plugin.
|
All times are GMT. The time now is 02:39 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:
|