The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
adding stylesheets globaly to admincp
this is in regards to my addon font awesome
I'm trying to add the stylesheet to the admincp so i can use that font inside (like in my options) I have tried adding: Code:
@import url('../../font-awesome/css/font-awesome.min.css'); and I have tried adding: Code:
<link rel=\"stylesheet\" type=\"text/css\" href=\"../font-awesome/css/font-awesome.min.css\" /> although i cant seem to get the icons to show up if i use them in my product xml for example Code:
<phrase name="setting_drc_rb_gst_msg_title" date="" username="DrCustUmz" version="1"><![CDATA[<i class="fa-li fa fa-check-square"></i> Welcome Message]]></phrase> i want to be able to use the icons in my product files, then say the product has options, in the settings i could use the icons anywhere. or anywhere else in the admincp for that matter |
#2
|
||||
|
||||
You have to import both the CSS and the webfonts, which means you can't really get this to other users.
|
#3
|
||||
|
||||
Quote:
im thinking if i add the code to the php file that includes the tables on the left side of the admincp it would work... but i dug in them files looking for <table for a while and couldn't find what i was looking for. and when i do add it to adminfunctions.php file and view the source, it does load in the source... just icons wont show up in my options =/ |
#4
|
||||
|
||||
You'd want to add the code fromt font-awesome.min.css into the global.css file for the AdminCP style.
Update the code in the CSS to point to either local or remote font files. |
#5
|
||||
|
||||
Quote:
that was the first thing i did: @import url('../../font-awesome/css/font-awesome.min.css'); to the very beginning, it loads if i view the source but im unable to add the font (icons) in my options =/ |
#6
|
||||
|
||||
Why not use a full URL, instead of a local one?
|
#7
|
||||
|
||||
ill give it a shot and let ya know =)
--------------- Added [DATE]1399325298[/DATE] at [TIME]1399325298[/TIME] --------------- Update* nope no luck with Code:
@import url('http://fortawesome.github.io//font-awesome/css/font-awesome.min.css'); nor @import url('http://dirtrif.com/font-awesome/css/font-awesome.min.css'); really seems like this should be working -_- wtf vB lol |
#8
|
||||
|
||||
UPDATE* got it working =)
added stylesheet link to the copyright phrase at the bottom of every page in the admincp =) now time to start having some fun with it =) notice the checkmark icons CP Home, next to the copyright, and in my options woot woot =) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|