Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2015, 01:56 PM
Asama's Avatar
Asama Asama is offline
 
Join Date: Jul 2014
Location: At My Home
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add icons to the navigation bar!

Hello guys,
I wanna add some icons (let's call them status icons) to the main navigation bar
of my forums like for the BLOG tab I would like to add a pencil icon and for FORUMS tab I would like to add a chat icon and so on (I wanna use these icons from ionicons.com).
Can anybody help me with that please?
Here's my website: https://www.xtreme-developing.com/forum
Thanks in advance!
Reply With Quote
  #2  
Old 02-22-2015, 08:22 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That link returns a server error
Reply With Quote
  #3  
Old 02-26-2015, 11:50 AM
Asama's Avatar
Asama Asama is offline
 
Join Date: Jul 2014
Location: At My Home
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry link updated
Reply With Quote
  #4  
Old 03-03-2015, 10:58 AM
Asama's Avatar
Asama Asama is offline
 
Join Date: Jul 2014
Location: At My Home
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any Update?
Reply With Quote
  #5  
Old 03-03-2015, 11:47 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those icons are fonts. You will need to install the fontpack first to use them or extract the images from the fontpack and manipulate the size with CSS.

You can then use the CSS to add the icon in font notation \f212 or as an image url("path to image") before the text that is currently in the tab using content on the unique css selector for each tab.

http://www.w3.org/wiki/CSS/Properties/content
Reply With Quote
  #6  
Old 03-05-2015, 01:08 PM
Asama's Avatar
Asama Asama is offline
 
Join Date: Jul 2014
Location: At My Home
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I already have installed these icon fonts but i don't know how to add them to every tab like for the NEWS tab which is a link to my wordpress and the home of my website and for PHONES tab because my website is about Android devices....
Do i have to add in css_additional.css simply:
Code:
.news { 
content: /f221;
}
.phones { 
content: /f004;
}
??
Can i add these icons with just html?
Thanks for answers.
Reply With Quote
  #7  
Old 03-06-2015, 01:46 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is for the first tab, change f code to whatever icon you want. Increment the 2 in parenthesis by 1 for each tab. You need a line like this for each tab.
Code:
#channel-tabbar > ul > li:nth-child(2) > a:before {content: "\f221";}
Keep in mind that with this code, if you have tabs that are only visible to logged in users, those tabs will need to be after the visible to guest tabs or it won't work. This is because we don't have a unique identifier for each tab, so we are selecting them in numerical sequence.
Reply With Quote
  #8  
Old 09-01-2015, 04:52 PM
rafail rafail is offline
 
Join Date: Aug 2015
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That code works fine on chrome, but on firefox and on internet explorer icons are not showing.
here is the code on my global css:

Code:
#channel-tabbar ul li:nth-child(2) a{
		content: url("/images/navbar_forum.png");
		}
#channel-tabbar ul li:nth-child(3) a{
		content: url("/images/navbar_articles.png");
		}


any help to make it show images on ie and firefox?
Reply With Quote
  #9  
Old 09-01-2015, 06:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get a link to see this? The URL in the first post gives a 404 Not Found.
Reply With Quote
  #10  
Old 09-02-2015, 04:47 PM
rafail rafail is offline
 
Join Date: Aug 2015
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
http://ello.net.co
But nevermind i moved icons to another place (below site logo) so i not need these icons anymore on navigation bar. I will leave them for one day so you can see the problem just for knowing.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09791 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete