![]() |
Add additional_css.css to all your pages
1 Attachment(s)
Instead of finding the template.css file to edit the .css properties for your pages, just put them all in this additional_css.css template. The additional_css.css file is linked right before the </head> in your page. This is for use until this is made standard in the vb product (I put in a bug report requesting this be included - Please consider adding user defined Additional CSS to pages).
Version History: 1.0 2009-11-22: - initial release by Lynne at vbulletin.org 1.1 2009-12-08: - fixed issue with style dateline not showing up. Fixed & issue (changes to &). added additional2_css.css file so the first additional_css file can be used in the parent style and then additional2_css used in the child styles. Notes - if you only want this included on certain pages, then you may open the plugin "Add addition_css.css file to pages" and put a condition around it, such as (this is for just the index page and the showthread page): PHP Code:
. To install: 1. Import product-product-lynne_add_css.xml 2. Add any additional css you want to add to the page in your additional_css.css template. To uninstall: 1. Uninstall "Add additional css to your style" Please mark Installed if you use this. |
Well, definately alot easier than I just did it. haha! Thanks Lynne
|
This has unlimited potential to as I think if you make the css just right you can have it set to show usergroup html markup everywhere on your site?
|
brilliant Lynne! Thank you ;)
|
Tagged for gold release. :) Added to your projects reply as well :)
|
Excellent, also added to our Gold release products.
Ste |
wow this is fantastic, i will try later. thank you!
but what happen if i have ".forum" for explame in both css files? what file have "preference" :/ |
Quote:
|
Very... VERY nice Lynne - THANKS :D
|
I understand we can use this to style our websites instead of using stylevars. However, when i try to change anything using this template it does not over ride the orginal css settings. Can you provide a brief example of how to change anything using this template? such as text color or anything else. thank you in advance
|
It is not really to be used to style instead of stylevars. It is used to add additional css without having to edit the actual .css template that has the .css in it. You may need to do a Force Refresh on your page to get the edited version of this file read after you change it.
|
so we can't use this to over ride the orginal setting in a style?
|
Yes, you can use this to override the original settings in a style. You may use stylevars in it though, if you want. It's just another .css file, but since it is the last one, if you do your styling correctly, you may override the original style settings.
|
|
Thanks. A very needed mod that should be a standard in vb4.
|
exactly what i was looking for. had mine in headinclude but it was getting loaded before a couple of stylesheets, making it necessary to still edit some css templates. thanks for the release. installed.
|
Thank you Lynne
I hope adding standard additional CSS to VB 4 .. So as to become perfect and useful version The stylevars system now imperfect |
thanks
|
Kudos to Lynne. Good proposal. This will help designers like me alot. Thx. :)
|
thanks lunne its very good for edite tempelat
|
Excellent. This is a missing feature in VB4.
Thanks for sharing. |
Well Lynne, I have to say... so simple, yet so required. Not looking at the stylevars until beta5, and just today at that, and now finding how ridiculously impracticable the new stylevars system currently is, or the basic level it is at, this is an absolute requirement. Just looking into all the css files now included within the template system to achieve the layout, I discovered today how impracticable it all currently is. With coming upgrades, if I had to modify each template css, it would make future upgrades a near impossible task having to custom code each file again as no doubt the css template files will be constantly changing in revisions with a css layout. Some of the stupidity I am finding with the attempts of one stylevar and replicating it across multiple aspects of the suite... absolutely stupid IMHO.
Installed and thank you. Makes it much simplier that you have done it vs. me having to write one for my own use. Thanks. |
This doesn't work in beta5.... The file actually writes correctly in the acp but doesn't seem to transcend to to the frontend. All you get at the frontend is the default first two lines of text, no actual css data.
|
Quote:
|
Quote:
|
Hey Lynne... Pretty sure. Adding css into ACP > Styles & Templates > Style Manager > Edit Templates > additional_css.css
I might try it on a clean install of beta5 I have, as I used it on an upgraded beta5 install. See if any difference exists. |
Hmmm... just worked on clean install. My private test upgrade install though doesn't work... interesting. Ok, thanks for that. I will dig at it... as this is outside of your software.
|
tagged for gold
|
Quote:
I also modified this a bit for myself. I created another file additional_css2.css also. I use additional_css for css that I want in all my styles (so I 'fill' it in the parent style) and then use additional_css2 to make small changes to the child styles. Is anyone interested in that version of this? |
Quote:
i have two language (1 and 2), and my styleid is 24. when i install this, and my default language is 2, i have /forum/css.php?styleid=24&langid=2&d=&sheet=additional_cs s.css it only shows PHP Code:
forum/css.php?styleid=24&langid=1&d=&sheet=additional_cs s.css if i remove the langid, it also show the template correctly forum/css.php?styleid=24&d=&sheet=additional_css.css |
now the new version 1.1 doesnt have that problem anymore. it works great now, with langid. thanks
|
Quote:
I can't think of why it wouldn't work. I checked my file and the template is set to templatetype="template" just like the other .css templates in the style. I really don't know anything about the language system in vbulletin since I've never used it before. If someone has any suggestions on what to look at here, I'm welcome to listen. edit: Oh, just read your last comment that it is now working fine. Perhaps it was the missing style date that was causing the problems? Not really sure, but if it's working, then I'm glad. :) |
It seems that a custom css is actually not needed, because you can enter custom css directly into the existing css templates, and when you upgrade between versions, the merge system takes any custom coding and merges it into the newer template being replaced with, hence why no current custom CSS solution is available within the templating / stylevars system.
|
Yes, you can do that, but I find it easier to have all my changes in one place instead of having to search out the template to change things there.
|
Hmmm... thanks Lynne. I asked Wayne about this also and he suggested to stick with this concept as well... being all custom css in the one place and not relying upon the merge ability of the system to get it right.
|
thanks
|
Lynne you are genius..:up:
|
Thank you for the fantastic (and much needed!) Mod Lynne.
Please could you clarify the syntax needed in the additional CSS please? If for example I want to edit width of the search area that is under the '.navbar_search' selector in vbulletin.css... Quote:
Quote:
This clarification may help others so I look forward to hearing your response - perhaps you could provide an example of the structure of the additional.css? Thank you in advance. |
As long as you use the same or a higher priority selector (more specific) than the original then you can simply overwrite properties.
|
Quote:
Code:
.navbar_search { |
All times are GMT. The time now is 06:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|