vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to copy a style + add images to navbar links (https://vborg.vbsupport.ru/showthread.php?t=234953)

abdulbasitsaeed 02-04-2010 03:41 AM

How to copy a style + add images to navbar links
 
Hi there, everyone! :)

I was considering making some changes to my current style, which is the default vB 4 style. Just to make sure I don't mess up with anything, I wanted to make a copy of the default style and make any changes in that copy. Could someone please guide me how to go about with this? All I could think of was to export the current default style and then to import the .xml file once again with a different name. Would that work?

Secondly, I have seen several articles / tutorials on how to add links to the vB 4 navbar. Is it possible to add icons / images along with the link as well? e.g. add a home icon in the Home tab (on the left of "Home" text). If so, where exactly would I need to add the image source for the desired icon?

Thank you in advance. :)

abdulbasitsaeed 02-05-2010 10:22 AM

1 Attachment(s)
OK, regarding my second query. This is what I've done.

I opened the template "blog_navbar_link" and here found the following code:

Code:

<li><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}">{vb:rawphrase blogs}</a></li>
Then, I changed it to this:

Code:

<li><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}"><img class="inlineimg" src="http://forums.pakfellows.com/images/icons/Homepage/blog.png" border="0" />{vb:rawphrase blogs}</a></li>
This inserted the image in the correct place (see screenshot), but I would like to have it so that the word "Blogs" remains in the center of the tab, i.e. both image and text are inline instead of Blogs being pushed down. Any help please?

abdulbasitsaeed 02-08-2010 05:19 AM

Anybody please???


All times are GMT. The time now is 08:29 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.00962 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete