![]() |
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. |
All times are GMT. The time now is 02:18 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|