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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2010, 06:17 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Different Background colors per forum?

I was wondering what I need to do to have different background colors per forum ids?

if possiable- or even change the colors of the different modules I have for cmps.
Reply With Quote
  #2  
Old 05-10-2010, 07:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Several ways to do it
- Get the class, and add a line in the FORUMDISPLAY template to change the background for the class.
- Use a plugin and add the background for the class.
- Use a different style for that forum.
Reply With Quote
  #3  
Old 05-10-2010, 10:14 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Several ways to do it
- Get the class, and add a line in the FORUMDISPLAY template to change the background for the class.
- Use a plugin and add the background for the class.
- Use a different style for that forum.
ok thanks.

in the forum display template would you happen to know the code I would need to enter?
Reply With Quote
  #4  
Old 05-11-2010, 03:18 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Real basic....
HTML Code:
<if condition="$forumid == x">
<style type="text/css">
yourclass {background: pink;}
</style>
</if>
Reply With Quote
  #5  
Old 05-11-2010, 03:04 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Real basic....
HTML Code:
<if condition="$forumid == x">
<style type="text/css">
yourclass {background: pink;}
</style>
</if>
hmmm tried it and seemed not to work?
Reply With Quote
  #6  
Old 05-11-2010, 06:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Exactly* what did you put and where?
Reply With Quote
  #7  
Old 05-11-2010, 07:42 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
*Exactly* what did you put and where?
well to test it I just tried to put it on the top of the forumdisplay

<if condition="$forumid == 1">
<style type="text/css">
yourclass {background: pink;}
</style>
</if>
Reply With Quote
  #8  
Old 05-12-2010, 02:33 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't just put that at the top of FORUMDISPLAY. It needs to go within the <head> tags. Also, I told you to find the class you need to change. I *know* it is not called "yourclass" So, there is no way that will work if you don't put in a valid class.
Reply With Quote
  #9  
Old 05-12-2010, 01:38 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You can't just put that at the top of FORUMDISPLAY. It needs to go within the <head> tags. Also, I told you to find the class you need to change. I *know* it is not called "yourclass" So, there is no way that will work if you don't put in a valid class.

ok not sure if this is right but its not working.

couldnt fit all the code but here is where I put it in forumdisplay

<if condition="$forumid == 110">
<style type="text/css">
.forumdisplay{color: pink;}
</style>
</if>
Reply With Quote
  #10  
Old 10-19-2010, 03:45 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is something I still need to figure out- can some one help me a bit more- I have attached a picture of what im wanting to do.

I have my site set up similar to here-vb.org and and I want each seperate cat of forums to have a different color - I think it is the tcat class?

same thing with in the threads them self too.

my site
www.SXS411.com

still have a bunch of stuff still need to be done but trying to get a few of the little things done


Thanks!!
Attached Images
File Type: jpg forumbannerscat.jpg (108.3 KB, 0 views)
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 07:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04270 seconds
  • Memory Usage 2,270KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_html
  • (4)bbcode_quote
  • (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
  • (1)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete