vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Add Icons to the Navigation Bar Tabs (https://vborg.vbsupport.ru/showthread.php?t=240138)

ged 05-31-2012 04:15 PM

Does this work with vBulletin 4.2.x?

fuldon 07-15-2012 03:43 PM

Edit navbar_tabs
PHP Code:

<class="navtab" href="{vb:raw tab.url}">{vb:raw tab.title}</a

Replace:
PHP Code:

<class="navtab" href="{vb:raw tab.url}"><img src="images/buttons/{vb:raw tab.name}.png" width=24 height=24 border="0" align="top" alt="" /> {vb:raw tab.title}</a


initiald 08-14-2012 04:28 AM

Can you update the instruction for Vbulletin 4.2?

spillage 11-11-2012 08:03 PM

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.

spillage 11-17-2012 08:46 PM

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.
Code:

<a class="navtab" href="{vb:raw tab.url}"><img src="images/misc/tabs/{vb:raw tab.title}.png" width=24 height=24 border="0" align="top" alt="" /> {vb:raw tab.title}</a>
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!

danycutu1 02-20-2013 02:21 AM

any instructions for 4.2?

Derwin 03-12-2013 07:24 PM

I would love to install this on 4.2.

Any plans on updating this?

dog-tag 04-09-2013 06:39 PM

For guys using 4.2 PL3

Just follow these directions -
https://vborg.vbsupport.ru/showpost....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!

Spangle 05-07-2013 08:06 PM

Quote:

Originally Posted by fuldon (Post 2348344)
Edit navbar_tabs
PHP Code:

<class="navtab" href="{vb:raw tab.url}">{vb:raw tab.title}</a

Replace:
PHP Code:

<class="navtab" href="{vb:raw tab.url}"><img src="images/buttons/{vb:raw tab.name}.png" width=24 height=24 border="0" align="top" alt="" /> {vb:raw tab.title}</a



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.

stevieb 07-29-2013 04:37 PM

Quote:

Originally Posted by fuldon (Post 2348344)
Edit navbar_tabs
PHP Code:

<class="navtab" href="{vb:raw tab.url}">{vb:raw tab.title}</a

Replace:
PHP Code:

<class="navtab" href="{vb:raw tab.url}"><img src="images/buttons/{vb:raw tab.name}.png" width=24 height=24 border="0" align="top" alt="" /> {vb:raw tab.title}</a


Installed, really easy to do - thanks :)


All times are GMT. The time now is 02:34 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
  • Page Generation 0.01121 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete