vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Style Buttons. (https://vborg.vbsupport.ru/showthread.php?t=173538)

synisterk 03-19-2008 08:05 PM

Style Buttons.
 
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>


All times are GMT. The time now is 10:39 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.01114 seconds
  • Memory Usage 1,726KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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