View Full Version : Style Buttons.
synisterk
03-19-2008, 08:05 PM
Hello, I have different colored styles on my board.
They were simply done by creating a new one and changing the main css.
My question is, for things like forum buttons and other things in the image folder, How can I have the different styles use different buttons. (aside from manually changing the links in all the templates)
Is there somewhere to tell the style to get things from IE somewhere in the XML file?
Thanks
RobDog888
03-19-2008, 08:57 PM
<font color="darkgreen">Create a sub directory of your style name, for ex., and replicate the folder structure in the default. Ie: make
Images
- MyGreenStyle
- - buttons
- - gradients
- - icons
etc and when you create your colored graphics per style you can locate th button, gradient, icon directories in your main css to point to these folders.</font>
synisterk
03-19-2008, 09:09 PM
What about the forum buttons.
Like new thread, reply..those are what I was asking about.
How Do I get different styles to use different buttons.
RobDog888
03-19-2008, 09:22 PM
<font color="darkgreen">They go in the "buttons" folder I suggested creating in that new folder structure.
Then in your css for the style you point the buttons directory to that folder for that style. Each style will point to a different "buttons" folder which will be where you upload your different colored button images as per each style.
For ex with that structure you will upload your green buttons to the Images\MyGreenStyle\buttons folder and in the css for your MyGreenStyle style you set "Button Images Folder" to point to "images/MyGreenStyle/buttons"</font>
synisterk
03-19-2008, 10:16 PM
Thanks a ton mate..I probably just didnt get that the first time you posted, my fault.
RobDog888
03-19-2008, 10:18 PM
No prob. It took me some time to get used to the way vB works. :)
Are your styles child styles (inheriting from a parent style) or are they all top level styles (no inheritance)?
synisterk
03-19-2008, 10:19 PM
They are all top level.
RobDog888
03-19-2008, 10:22 PM
Then that means they will all be independant of each other. I find it easier to have child styles as fixes in the parent style are propagated down to the other child styles. I want to keep only the graphics as independant of each other.
Depending on your needs, as your styles may/may not have code changes in them, it could be easier to manage if they were child styles of a mater style. Just food for thought. ;)
synisterk
03-19-2008, 10:29 PM
Is that why when i add something somewhere I have to do it in all the different style templates??
IE add something to the navbar?
If I change them all the child styles of one...then will the changes to the main affect all the others.
All they are are I have different colored TD and bars,,,,nothing fancy.
RobDog888
03-19-2008, 11:12 PM
<font color="darkgreen">Yes.
If its just different coloring with buttons and gradients etc then if you make them child styles of, say your primary style, then the changes made in the primary or parent style will propagate down to the other child styles without needing to make any other edits on them. Basically its like just having one style that you have to make your code changes to and it replicates down to the others </font>
SEOvB
03-19-2008, 11:19 PM
Incase you didn't find where to edit the path to the buttons folders its under
AdminCP -> Style Manager -> Stlyes and Templates -> (drop down menu) StyleVars
synisterk
03-19-2008, 11:26 PM
I found it eventually....but thank you for posting that anyway.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.