![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Add Icons to the Navigation Bar Tabs
![]() Developer Last Online: Feb 2020 ![]() ![]() ![]()
Hi there, everyone!
![]() Prior to the vBulletin 4.0 upgrade, I had these neat little icons in the navigation bar of my v 3.8 forum's theme. Since I upgraded the forums, I wanted to put these icons back once again. However, with the rewrite of the whole code, I was at a complete loss as to where to make these changes. After a lot of searching and hit and trial, however, I did manage to come up with something that suited my needs. So I thought I'd write an article myself, with the hope that it would help others trying to do something similar. ![]() These template modifications allow you to add icons to the tabs in the Navigation Bar, right below the logo, as shown in the image below: ![]() I'll stick with the default Navigation Bar tabs, i.e. Home, Forum, Blogs and What's New. Although you may use images of any size, but since I did not want to meddle too much with the default design / layout, I resized all the images to 24px × 24px. Note: I have colour coded all code edits / additions in red to make it easier to see what has been added. Note: You may find instructions for vB 4.1.2 over here. ------------------------------ "Home" Tab: (2 modifications needed in only 1 template) In your Admin Control Panel (ACP), go to: ACP > Styles & Templates > Style Manager > Double arrows on the right of the style you want to edit (Expand Templates) > vBulletin CMS Templates > vbcms_navbar_link Here, look for the following code:
Replace this with:
Now find:
Replace with:
Remember to press "Save" after making these changes to the template. ------------------------------ "Forum" Tab: (3 modifications needed in only 1 template) In your Admin Control Panel (ACP), go to: ACP > Styles & Templates > Style Manager > Double arrows on the right of the style you want to edit (Expand Templates) > Navigation / Breadcrumb Templates > navbar Here, look for the following code:
Replace this with:
Now find:
Replace with:
Finally find:
Replace with:
Remember to press "Save" after making these changes to the template. ------------------------------ "Blogs" Tab: (2 modifications needed in only 1 template) In your Admin Control Panel (ACP), go to: ACP > Styles & Templates > Style Manager > Double arrows on the right of the style you want to edit (Expand Templates) > Blog Templates > blog_navbar_link Here, look for the following code:
Replace this with:
Now find:
Replace with:
Remember to press "Save" after making these changes to the template. ------------------------------ "What's New" Tab: (4 modifications needed in only 1 template) In your Admin Control Panel (ACP), go to: ACP > Styles & Templates > Style Manager > Double arrows on the right of the style you want to edit (Expand Templates) > Navigation / Breadcrumb Templates > navbar Here, look for the following code:
Replace this with:
Now find:
Replace with:
Find:
Replace with:
Finally find:
Replace with:
Remember to press "Save" after making these changes to the template. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
|
#91
|
||||
|
||||
Does this work with vBulletin 4.2.x?
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge. No members have liked this post.
|
#92
|
||||||||
|
||||||||
Edit navbar_tabs
Replace:
No members have liked this post.
|
#93
|
|||
|
|||
Can you update the instruction for Vbulletin 4.2?
No members have liked this post.
|
#94
|
|||
|
|||
I'd also appreciate an official update for 4.2.
"Home" (now Articles), "What's New", "Forum", and "Blogs" Tabs no longer display the icon/images on the Tab. Any of the Tabs added by Mod's and subsequently tweaked to show Icons are still working. It's only the default 4.2 Tabs that don't work. Thanks in advance for your time... it is greatly appreciated.
__________________
Bryan vB 4.2.5 No members have liked this post.
|
#95
|
||||
|
||||
fuldon, sorry, I thought your code was incomplete since there is no scroll down in the codebox.
Having seen the rest of it, I was able to implement it on my site. The only changes I made was to use an images/misc/tabs/ subfolder, and edited the code to point to it.
And I also used vb:raw tab.title instead of vb:raw tab.name to simplify the renaming of the images. Almost caught myself out on this, as I had to edit What's New? Tab to Whats New to avoid a file naming issue. Anyway... THANKS!
__________________
Bryan vB 4.2.5 No members have liked this post.
Last edited by spillage; 18 Nov 2012 at 03:56. |
#96
|
||||
|
||||
any instructions for 4.2?
No members have liked this post.
|
#97
|
||||
|
||||
I would love to install this on 4.2.
Any plans on updating this? No members have liked this post.
|
#98
|
||||
|
||||
For guys using 4.2 PL3
Just follow these directions - http://www.vbulletin.org/forum/showp...4&postcount=92 No other edits are needed anywhere else. Worked very easily for me, thank you for making this modification, it brought alot of life to my forum! The following members like this post: abdulbasitsaeed
|
#99
|
||||||||
|
||||||||
Originally Posted by fuldon
![]()
Am I missing some thing, there's no closing tag in the replacement, and do we do this as another edit on top of those in the OP ... Sorry but I am a noob to VB, and finding it a bit difficult to get up to speed with it. No members have liked this post.
|
#100
|
||||||||
|
||||||||
Originally Posted by fuldon
Installed, really easy to do - thanks ![]()
![]() No members have liked this post.
Last edited by stevieb; 29 Jul 2013 at 19:20. |
#101
|
||||||||
|
||||||||
Originally Posted by fuldon
Is there a way to add unique icons to each tab on 4.2 ? ![]()
This method will add the same icon for all the tabs. Thank you! No members have liked this post.
|
#102
|
||||
|
||||
Looking great on 4.2.3 I though I wanted different icons next to each, but realized it's overkill. Having a simple clean icon next to each element helped me to highlight the navigation better, and offers a much more interactive look in my opinion.
__________________
[CENTER] No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:29.