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>' ;
I'm going to assume the default tabs as:
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>' ;
then the new tab comes between Forum and Blogs. But we want to add the tab after Blogs. To move over the new tab after Blogs just change the execution order from 5 to 6. So by using different execution orders in different plugins you can place your tabs in any order you want within the same template hook. You could of course generate all tabs from one plugin and use code execution order to place the tabs.
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