Quote:
Quote:
I do not have modified my default template and by doing a search, I do not find navtab_left hook in the default navbar! --------------- Added [DATE]1300401520[/DATE] at [TIME]1300401520[/TIME] --------------- Ok, I have fixed the problem. I just needed to hook navtab_start. =) But I do not understand the difference of navtab_left/navtab_start. So good to know => the first element is navtab_start and not navtab_left... A big thanks to Lynne for his/her time! |
1 Attachment(s)
So now my tabs in the correct order!
My custom tab is the first one. The forum tab is the second one. The new problem I have is... That's the second tab that is selected by default. What should I hook in order to have my first tab selected by default when I go on the site? |
Maybe this can help, here is the plugin code:
Code:
$perms = media_permissions(); |
You know this is an article about removing default navtabs, right? I just realized that you are talking about adding a navtab which has nothing to do with this article.
But anyway, if you need someone to try to debug your plugin, you should post your own thread. I do notice you have an extra } just sitting in there without a beginning. |
Ok, I'm going to start a new thread.
For the '}' it's ok, the beginning of the code has not been pasted. ps: It's not my plugin, but a well known (Media Library). |
Hi Lynne,
vB 4.1.2 We tried several times to remove the code precisely as you suggested from the navbar template but the What's New button remains intact. Also tried clearing CMS cache but no luck. Has something else changed in 4.1.2 and do we need to do anything special? Please help... Thanks! |
Make sure you are editing the correct style. There is no way you could remove all that code and still have the tab. If you are not using a default style, then make sure it isn't in there twice. And, make sure a modification is not adding the tab.
|
Thank you for this article! Very helpful and less involved than the first article I read on the subject.
|
I made the changes above as best I could and got the following error message when complete (it did remove my "Home" and "Blog" buttons which is what I wanted)
"Parse error: syntax error, unexpected '<' in /home2/hersheyi/public_html/forum/includes/class_bootstrap.php(537) : eval()'d code on line 9" but how do I correct that? I did notice that for your removing the Blog button code your code did not match mine (see both exampled below) so I commented out the section I thought applied. Yours: Code:
if (defined('VBBLOG_CACHED_TEMPLATES')) Code:
<!-- if (defined('VBBLOG_CACHED_TEMPLATES')) |
That is not how you comment out php. You use /* at the beginning and */ at the end. If you use those for that section that you showed, then it will work. <!-- and --> are used for commenting out html.
|
All times are GMT. The time now is 03:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|