vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Add additional_css.css to all your pages (https://vborg.vbsupport.ru/showthread.php?t=228628)

wacnstac 12-11-2009 02:00 AM

Can you use this as an alternative to editing variables in StyleVars in the Style Variable Editor which sucks because you can't see what you edited and I don't know of any way to save it.

Lynne 12-11-2009 03:46 AM

You can use it for whatever you want. It's just for adding css. If you want to hard code a color in there for something, then you can use thing to do that.

fourat 12-24-2009 08:29 PM

How i use this product ?

Charlie98902 12-26-2009 06:55 PM

Thanks Lynne used this mod to change my header instead of table codes. :)

Charlie98902 12-26-2009 06:57 PM

Quote:

Originally Posted by fourat (Post 1937563)
How i use this product ?

You have to call up the template that you want the CSS code to modify. Like I used this for my header and used #header so it would replace the defualt vbulleting header as I have 3 parts to my header. So you need to know CSS or get someone to help you or give you the CSS code needed.

Alien 12-28-2009 03:02 AM

For the life of me, I cannot get this to work in any child styles whatsoever.

I'm using 1.1 (which still shows as 1.0 in the product manager, btw).

I've tried using just additional css with all new code, and i've also tried using the additional css 2 template leaving the original alone and I cannot get it to load the alternate color scheme. :( It always shows the parent scheme.

In the source, it links to the proper style id #

Any thoughts?

Lynne 12-28-2009 03:21 AM

Are you doing a Force Refresh to force it to get the new css templates? If you aren't, then it will think they are already downloaded and continue to serve up the old ones. It does work for me. I've made changes at the top of the .css files to say what style they are in and I am getting the correct one per style:
HTML Code:

/* Additional CSS2 - styleid2 */

Alien 12-28-2009 04:44 PM

Yes, I've been using hard refreshes in Firefox 3.5.6.

I will try a couple of more times, it's really bugging me out!

Alien 12-28-2009 04:48 PM

Just to be sure I'm clear on the instructions:

On the parent style, I edit the first additional css file and it all works perfectly.

Now on the child style, do I clear out the additional css and use additional css 2? Or do I just edit the first additional css file and just change the contents of the file from the old stuff there to the new css i need?

Alien 12-28-2009 05:01 PM

I've tried all of the above, and no matter what I cannot load more than what is defined in the parent style. I've tried everything I can think of! I even attempted turning vbseo off thinking it was somehow rewriting a styleid URL. Grasping at straws...

Lynne 12-28-2009 05:28 PM

Both css files get appended to your style. If you have stuff in additional_css2 from a parent style, it will get added to a child style unless you delete it. It acts just like any other template that inherits stuff from it's parent.

Alien 12-28-2009 06:50 PM

I have a fully loaded additional_css in the parent, and then MOST of the same content (but a bunch of changed values) in the child style's additional_css2 file. It has not worked yet.

I've also tried keeping additional_css2 blank in the both parent and child, and just overwriting everything in the additional_css in the child style and that hasn't worked either.

I get the concept, I just really have no idea what could possibly be going on!

BSMedia 12-28-2009 07:43 PM

Well the good news is that it's going to be default in 4.0.1

Lynne 12-28-2009 08:29 PM

Quote:

Originally Posted by Alien (Post 1940723)
I have a fully loaded additional_css in the parent, and then MOST of the same content (but a bunch of changed values) in the child style's additional_css2 file. It has not worked yet.

I've also tried keeping additional_css2 blank in the both parent and child, and just overwriting everything in the additional_css in the child style and that hasn't worked either.

I get the concept, I just really have no idea what could possibly be going on!

Do you have a link? Are you putting something in the .css template to clearly state what style the template is in so when you view it from the browser window, you can tell?

Alien 12-29-2009 12:04 AM

Lynne: I don't have a public link at the moment, as I'm editing together a new style behind the scenes.

I have added a comment to the CSS to identify that particular css clearly. When I view the page source, it links to the proper style id # but when you click the css call (in firefox) it displays the original one from the parent without my comment! I'll also try this with IE8 and Chrome to see if they have the same issue or if Firefox is doing something I've never seen before even though I'm hard refreshing *every* time.

Alien 12-29-2009 12:11 AM

I got it to work with child styles.

In vB 3.8.x, I would be able to set "users can change styles" = no, and even have it turned off in the style manager and STILL be able to test and use it behind the scenes as an admin.

Now in 4.0.0 (gold), I noticed if you have it clicked "off" in the style manager it doesn't seem to load the custom css properly. It has to be selectable (which is not what I want until i'm ready)! I quickly turned all this on to test (then off so no one else could preview it) and I was able to get your modification to work brilliantly.

Thanks for helping and for your patience! I'm glad this is making it into 4.0.x!

Kevin McGowan 01-08-2010 07:39 PM

Installed, great :)

Trek 01-14-2010 03:01 AM

Just a heads up, this was added into 4.0.1, but isn't complete and basically doesn't work. So... this mod is still useful and well... works. ;)

Alex@Mk3OC 01-14-2010 01:32 PM

As above, I thought I'd be able to use the new inbuilt one, but it did nothing so had to re-enable this one, think I'll just leave it installed tbh

Alien 01-14-2010 04:22 PM

Even if it did work properly in 4.0.1, they don't setup child styles as eloquently as Lynne did unless I'm missing something. ;)

steve1966 01-21-2010 09:09 AM

thanks

Alien 01-21-2010 06:50 PM

Do you know of any way to make this compatible with external scripts that tie into the vB database such as Photopost? If you use this for your style css, you cannot get it to display in Photopost to my knowledge.

Lynne 01-21-2010 07:09 PM

Quote:

Originally Posted by Alien (Post 1962638)
Do you know of any way to make this compatible with external scripts that tie into the vB database such as Photopost? If you use this for your style css, you cannot get it to display in Photopost to my knowledge.

I know absolutely nothing about photopost, so I can't answer your question.

Hall of Famer 04-07-2010 05:21 AM

Does this one work for Vbulletin 4.02?

Alien 04-07-2010 11:25 PM

Yes.

abouthere 04-13-2010 08:05 AM

I'm really confused.

I've followed the instructions in the original post; however when I browse the default template in style manager, I don't have an additional_css.css file to edit.

If I need to create and upload this to the theme path, no problem, but where do I put it please?

Thanks!

Lynne 04-13-2010 02:41 PM

If you uploaded the product, then the template should already be created for you and in the CSS Templates group.

ndut 05-31-2010 07:03 PM

thank you

mmoore5553 06-19-2010 07:43 AM

does this still work in 4.0.3 ? I am making edits and nothing happening. I have used this before on older versions just not on this one.

Lynne 06-19-2010 02:42 PM

Quote:

Originally Posted by mmoore5553 (Post 2055731)
does this still work in 4.0.3 ? I am making edits and nothing happening. I have used this before on older versions just not on this one.

It works on 4.0.3, yes. However, they put in the template additional.css a couple of versions ago which is really what this modification was supposed to do until they added it.

mmoore5553 06-19-2010 03:25 PM

thanks so much lynn. I still say you are always ahead of the game.

mmoore5553 08-01-2010 05:45 AM

sorry to post this lynn but i was wondering ..i had style made for me and it works fine but with vb arcade mod, vbrookie and a couple others the css was not applied from the mod. I had to use your mod ...i modified it so it would look for vb original additional.css and it worked ...also i left it with what you had and copy and paste code in_css.css and it worked ...

How do i add this to vb so it works right without your mod ?

i have tried to add that one line of code everywhere ...

thanks but your mod works great but not sure why vb is not doing it right. I am on newest version.

can you tell me how to fix with just a line ..I looked in header include and looks like it is there in vb 4.0.6 and but does not look like it is applied to all pages , meaning mods ...

if not for your mod vbookie , the arcade mod , and one more would never have worked.

Lynne 08-01-2010 02:06 PM

Quote:

Originally Posted by mmoore5553 (Post 2077489)
How do i add this to vb so it works right without your mod ?

i have tried to add that one line of code everywhere ...

thanks but your mod works great but not sure why vb is not doing it right. I am on newest version.

It is not vb not doing it right - it is your mods not doing it right. You will need to post in their threads and tell them what is happening (or not happening) and have them fix the issue.

mmoore5553 08-01-2010 02:56 PM

oh okay thank you .... but once again you saved me with this mod ...i know i contacted the people that did those mods and they said it works on default so nothing is wrong but i noticed this happening.

Thanks again

Robbed 08-01-2010 03:34 PM

Lynn these mods all work fine on the default skin.

It looks like any skin that uses additional.css doesn't display right when clicking on arcade, vbookie or gameroom.

Is this a VB issue or what would these mods have to do to fix it? We used your code and it works fine now.

Robbed 08-01-2010 03:54 PM

I'm guessing these mods have to use this?

Quote:

Basically, the "headinclude_bottom" template which contains a reference to additional_css.css, is supposed to be referenced in all the templates that reference the "headinclude" template.

Lynne 08-02-2010 02:24 AM

Quote:

Originally Posted by Robbed (Post 2077674)
Lynn these mods all work fine on the default skin.

It looks like any skin that uses additional.css doesn't display right when clicking on arcade, vbookie or gameroom.

Is this a VB issue or what would these mods have to do to fix it? We used your code and it works fine now.

I know absolutely nothing about any of those mods, so I really couldn't tell you why it isn't working. I am fairly certain thought that it is not a vb issue since I have written several custom pages and additional.css displays just fine on them.

sbsforum.us 08-23-2010 08:25 PM

Thank you very much!! I spent hours trying to figure out how to make sure my css would work on everypage! This did it in 2 seconds!

synth19 10-04-2010 06:51 PM

Hi all, I was trying to edit some of the CSS in order to change the text (circled in red). Anyone know how to change this or the css code needed? Thanks!

https://vborg.vbsupport.ru/external/2010/10/36.jpg

Lynne 10-04-2010 07:04 PM

Quote:

Originally Posted by synth19 (Post 2106746)
Hi all, I was trying to edit some of the CSS in order to change the text (circled in red). Anyone know how to change this or the css code needed? Thanks!

https://vborg.vbsupport.ru/external/2010/10/36.jpg

I already answered this question and told you to add some CSS (I posted the CSS for you, but can't remember it right now) into your additional.css template. That is an *existing* template, not this modification template. You would find it in with all your other templates under the CSS Templates group.


All times are GMT. The time now is 01:04 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.01314 seconds
  • Memory Usage 1,821KB
  • 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_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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