Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2008, 08:05 PM
synisterk synisterk is offline
 
Join Date: Feb 2008
Location: South Carolina
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-19-2008, 08:57 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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>
Reply With Quote
  #3  
Old 03-19-2008, 09:09 PM
synisterk synisterk is offline
 
Join Date: Feb 2008
Location: South Carolina
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-19-2008, 09:22 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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>
Reply With Quote
  #5  
Old 03-19-2008, 10:16 PM
synisterk synisterk is offline
 
Join Date: Feb 2008
Location: South Carolina
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a ton mate..I probably just didnt get that the first time you posted, my fault.
Reply With Quote
  #6  
Old 03-19-2008, 10:18 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)?
Reply With Quote
  #7  
Old 03-19-2008, 10:19 PM
synisterk synisterk is offline
 
Join Date: Feb 2008
Location: South Carolina
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They are all top level.
Reply With Quote
  #8  
Old 03-19-2008, 10:22 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 03-19-2008, 10:29 PM
synisterk synisterk is offline
 
Join Date: Feb 2008
Location: South Carolina
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 03-19-2008, 11:12 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:28 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.03980 seconds
  • Memory Usage 2,247KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete