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 01-07-2009, 09:51 AM
Dax IX Dax IX is offline
 
Join Date: Jul 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing ONE Forum's TD in FORUMBITS

I'm having a heck of a time here. I asked this question several months ago, but no one was able to give me an answer.

One thing I should mention is that I've changed my forumbits according to the ForumHome Category Spacing mod https://vborg.vbsupport.ru/showthrea...umhome+spacing

I'm trying to change the forum icon TD to another background color for ONE forum, and no matter what I do, it won't change it to the color I want.

I can make it have NO background color, but I can't get it to change to a specific color.

The thing that I think may be an issue is that this mod was written for 3.7.0*, and I know that there has been at least one template change since then.

I'll post code if necessary.

Thanks!

--------------- Added [DATE]1231369347[/DATE] at [TIME]1231369347[/TIME] ---------------

Here's my code in forumhome_forumbit_level2_post:

HTML Code:
    <td class="<if condition='$forum[forumid] == 37'>alt2 alt22<else />alt2</if>"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
And here's the CSS for that one forum:

HTML Code:
.alt22
{
    background: #ecb700;
}
I've tried both isolating that CSS (only putting alt22 in the template), and both "background" and "background-color", and nothing seems to work.

Any suggestions?
Reply With Quote
  #2  
Old 01-07-2009, 10:20 PM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure that the if condition is even working?
Ensure that the class alt22 actually appears in the <td>
Reply With Quote
  #3  
Old 01-07-2009, 10:48 PM
Dax IX Dax IX is offline
 
Join Date: Jul 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for replying.

Yup, the TD in question is showing alt22. The thing is, on my forum home, the background for that TD is missing, so it is different from the other forum listings, but I just can't make it change to the background that I want.

I should say that when I combine the two classes the background is the default alt2, but when I isolate alt22, there is no background...
Reply With Quote
  #4  
Old 01-07-2009, 11:20 PM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, I see what you did.
You used background: #Color, which is improper. Background is a shorthand notation for a large list of style options, the code you're looking for is background-color: #Color

Hope that helps
Reply With Quote
  #5  
Old 01-08-2009, 12:32 AM
Dax IX Dax IX is offline
 
Join Date: Jul 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but unfortunately that didn't work either.

I just don't get what's happening...:erm:
Reply With Quote
  #6  
Old 01-08-2009, 12:36 AM
Dax IX Dax IX is offline
 
Join Date: Jul 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's what's happening...

This is NOT the background that I want....
Attached Images
File Type: gif TG_forumbits.gif (19.6 KB, 0 views)
Reply With Quote
  #7  
Old 01-08-2009, 12:37 AM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Provide a forum link? Can help a bit more if I can see the whole source.

PS. background color looks different to me..
Reply With Quote
  #8  
Old 01-08-2009, 12:38 AM
Dax IX Dax IX is offline
 
Join Date: Jul 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure:

http://www.teegopher.com/index.php

--------------- Added 07 Jan 2009 at 20:44 ---------------

Quote:
Originally Posted by Bellardia View Post
PS. background color looks different to me..
Yes, the background color that is shown is different from the rest of the forums, but what you're seeing is NO background on that <td>, and the background color from the container is being shown.

The color that I'm going for is the same yellowish color that you see on the "New Posts" image toward the bottom (or the Title of that forum).

I really do appreciate you taking a look at this for me.
Reply With Quote
  #9  
Old 01-08-2009, 12:53 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your css is messed up right above where you define alt22. Fix it and I'll bet it works:

Code:
.sales2 {background: #f0ddbd; color: #000000;)

.sales2 a:link, .sales2_alink, .sales2 a:visited, sales2_avisited {color: #224887;)
I don't know if it's screwed up in other places, but that was just real obvious to me.
Reply With Quote
  #10  
Old 01-08-2009, 12:59 AM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your css file you have a line
.sales2 a:link, .sales2_alink, .sales2 a:visited, sales2_avisited {color: #224887

All styles after this point are not applied

I edited your source realtime, everything should work provided that is fixed!

Also there are a few other errors you might want to look at, but not as important! One of your backgrounds is declared as background="link..", although not major, it just doesn't do anything.

Edit : Ah! Lynne beat me to it Nicely done.

Here's a full list of mistakes if curious
HTML Code:
231  	 .vbmenu_control  	 Property align doesn't exist :  center
253 	.vbmenu_popup 	Property align doesn't exist : center
318 	.fieldset 	Property -moz-border-radius doesn't exist : 5px
325 	.breadcrumb 	Property font-color doesn't exist : #ffffff
327 	.breadcrumbl 	Property font-color doesn't exist : #ffffff
444 	.sales2 	Parse Error ;) .sales2 a:link, .sales2_alink, .sales2 a:visited, sales2_avisited {color: #224887;) .tcatAlt { background: #e0d3a5 url(http://www.teegopher.com/images/gradients/gradient_tcat_tg_alt.jpg) repeat-x top left; color: #FFFFFF; font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } .tcatAlt a:link, .tcatAlt_alink { color: #ffffff; text-decoration: none; } .tcatAlt a:visited, .tcatAlt_avisited { color: #ffffff; text-decoration: none; } .tcatAlt a:hover, .tcatAlt a:active, .tcatAlt_ahover { color: #ecb700; text-decoration: underline; } .alt22 { background-color: #ecb700; } .alt22 { background-color: #ecb700; } <!-- .alt22 { background-color: #ecb700; } .alt22 { background-color: #ecb700; } --> form { margin: 0px; } label { cursor: default; } .normal { font-weight: normal; } .inlineimg { vertical-align: middle; } .underline { text-decoration: underline; } .vbmenu_hilite * { cursor: pointer; } .floatcontainer:after, .block_row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .floatcontainer, .block_row { display: inline-block; } * html .floatcontainer, * html .block_row { height: 1%; } .floatcontainer, .block_row { display: block; } 
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 04:59 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.04516 seconds
  • Memory Usage 2,280KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_html
  • (1)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