How CAN I ADD A Twitter button to my Site on my nav bar?
|
Quote:
|
Done ! Thanks
|
Thanks!!
|
How can I remove 'Forum' tab?
The code for removing 'What's New?'tab seems irrelevant in 4.0.8. Do you have the new code to remove? --------------- Added [DATE]1288026413[/DATE] at [TIME]1288026413[/TIME] --------------- I think this is the code for vb 4.0.8: Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'"> |
Thank you! removed whats new in my forum
|
Thank you.
|
ok have abit of trouble getting this to work properly.
I get to manage to remove the whats new tab. but then the line under disapear compleetly.ยจ And i want the home button to stay + the line under the navbar Anyone who can post theyr text to make this correct or point me to the right direction where i failed? |
I want to get rid of the navtab to forum, i don't want to disable forum, just remove the navbar forum tab, i did it by breaking the script but it leaves a blank tab , I then redirected that blank tab to CMS . it does what i need but is their a cleaner way to do it?,
I still want to use forums to post the stuff that will show up in promoted articles and Cms widgets, but no user access to forums, only admin can post, I dont care if they find the forum through the web or even if they goto forum.php, they can have read access but cant post anyway --------------- Added [DATE]1293289429[/DATE] at [TIME]1293289429[/TIME] --------------- Quote:
|
my cms is not active how can i remove the home for vb4.1
|
Quote:
|
Hey dude,
I followed the instructions to remove 'what's new' to the nth detail but when i try to save it i get an error: Quote:
|
I just tried the instructions on my 4.1.1 board and didn't get any errors.
|
I'm on 4.1.1 but I still get the error nonetheless...what can i do? I'm following ur instructions to the letter!
What could it possibly be? |
Quote:
HTML Code:
{vb:raw template_hook.navtab_middle} |
I completely revert the navbar template, and after you instructions this is the code i end up with:
Quote:
|
Quote:
HTML Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'"> |
Mea culpa:)
It worked perfectly...cheers! |
I read the article suggested above but it did not describe how to remove the forum tab, I would actually like to remove the Forum tab (i have already remove the other tabs) and the background it is on. Any help would be appreciated.
i have vB 4.1.2 thanks |
Quote:
|
Hello,
I want to move the Forum tab at the middle and then a custom tab at the left. I have hooked my custom tab with $template_hook['navtab_left']. I do not find $template_hook['navtab_left'] for the Forum tab. I do not know where to put $template_hook['navtab_middle'] for this default tab. Help! :D -- Laurent |
The Forum tab doesn't use a template_hook since it is entered right into the navbar template.
|
You mean left?
Well, an idea how to put it in the middle? :) |
What do you want in the middle? You would change the template_hook in the plugin to use the one you want. If you want to see exactly where they are located, then look in the navbar template.
|
I just want the forum tab at the middle (it's left by default).
But I do not know how to do it :) |
You will have to add any navtab you want to add to the navtab_left template_hook if you want it to the left of the forum navtab.
|
Well, that's not the case.
I hook on the middle for my custom tab and it works. When I hook on the left (what i want), the custom tab disappear... because of the forum tab which is located to the left by default... I suppose. ;) Sad to see a such basic feature does not exist on vBulletin :( |
It works just fine on my test site, so maybe your code is incorrect? Or perhaps you didn't try changing the Execution Order of the plugin?
|
First of all thanks for your answers Lynne,
I have just changed the following line in the plugin (MediaLibrary): $template_hook['navtab_middle'] .= $templater->render(); to $template_hook['navtab_left'] .= $templater->render(); then after your post I have changed the order from 5 to 1. (but I do not well if it's correct) The Media Library tab still does not appear. :'( |
Quote:
|
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 02:27 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:
|