PDA

View Full Version : Problem with CSS


SwiatWenus.pl
10-24-2010, 02:03 PM
I've got a problem with changing file showthread-rollup.css. I changed it on my pc but I can not upload it on my server. It says ACCESS DENIED. But I've got no problem with other files. What is the problem?

Lynne
10-24-2010, 02:12 PM
You cannot upload that file. It is a file created by vbulletin when you modify the styles/stylevars. You can't modify that file directly.

SwiatWenus.pl
10-24-2010, 02:59 PM
So how can I make changes in that file? There has to be a solution, because there are lot of sites on VB with changer atributes I want to change in that CSS.

Lynne
10-24-2010, 08:30 PM
You would modify the css template - style manager > find style > edit templates > css templates - or the stylevar - style manager > find style > stylevars

SwiatWenus.pl
10-25-2010, 08:28 AM
Honestly... I don't know how to use this menu. I prefer traditional code editing in a file. So I found in my AdminCP an option to save CSS into a file, but I still do not have rights to write the file. There is an information

If this is enabled, you can store the CSS for your pages as files which will reduce the size of pages (since the CSS file can be cached locally and referred to from each page, instead of having all the CSS information within each page). If you enable this, you must create a directory named vbulletin_css in the clientscript folder of your vBulletin installation and the web server must have permission to create, write, and remove files from that directory. (Normally this is accomplished by CHMODing the directory 777.)

So there's another question... How can I give these permisiions to my server?

Lynne
10-25-2010, 02:45 PM
You don't need to store CSS as files. If you choose to do so, you need to do what it says:
Normally this is accomplished by CHMODing the directory 777
The directory is /clientscript/vbulletin_css

The place to edit the CSS is where I said:
style manager > find style > edit templates > css templates
Did you find the Edit Templates area? Double-click on CSS Templates to expand that and then you will find a bunch of .css templates.

SwiatWenus.pl
10-25-2010, 04:52 PM
Yeah. I found it, but I still don't know what to do. For example...

I want to change the userinfo DIV. I want to make there a background image and some other things. I looked where are the style atributes placed (I checked it by firebug plugin) and it shows that I have to change showthread-rollup.css. OK... As we know I can not edit the file directly, so I went to the panel Ypu told me. I found the showthread.css, but theres nothing like showthread-rollup.css or any of userinfo styles in there. Maybe they wanted to make it easier by giving us that panel but I prefer traditional way. I just can't handle that panel :/

Look at my screens. The first one is my traditional site look. The second one is just one change I made in the firebug. I made just one change (added bg-color) in the showthread-rollup.css. And when I'm trying to do it in this panel I just dont know how...


123079

123080

Lynne
10-25-2010, 07:54 PM
You don't want to look at the name of the file... look at the class on the left - ".postbitlegacy .userinfo" That is where you want to add the background. Do a Search in Templates for it and you'll find it. You'll then see the name of the stylevar (if there is one used). You may want to see this - How To: Find a StyleVar (video version) (http://www.vbulletin.com/forum/content.php?290-How-To-Find-a-StyleVar-%28video-version%29)

SwiatWenus.pl
10-26-2010, 05:18 AM
Thanks. I finally made it ;) Ofcourse it is still not easy because I can't find now how to change the background of user info extra and give it some background. It is more tricky (i think) but maybe i'll manage it ;) Thanx again.