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-03-2009, 02:03 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I change Thread \ Subforum category stripes?

I don't want them to be the same as they are on my index, I have different category stripes for threads and Subforums.

How do I change the exiting ones to the ones I made?
Reply With Quote
  #2  
Old 01-03-2009, 02:19 PM
CodingMonkey CodingMonkey is offline
 
Join Date: Sep 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you talking about the stripe highlighted in my attachment?

If so, go to the Style Manager > Main CSS for the style you wish > search for .tcat
Within the .tcat box, you'll see info such as color codes and one color code with url( after it.
Change the contents of url( to match the path of your image.

So it'll end up being something like...
#FFFFFF url(http://mydomain.com/images/gradients_tcat.gif)
or just the url part.
Attached Images
File Type: png this.png (9.3 KB, 0 views)
Reply With Quote
  #3  
Old 01-05-2009, 10:27 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CodingMonkey View Post
Are you talking about the stripe highlighted in my attachment?

If so, go to the Style Manager > Main CSS for the style you wish > search for .tcat
Within the .tcat box, you'll see info such as color codes and one color code with url( after it.
Change the contents of url( to match the path of your image.

So it'll end up being something like...
#FFFFFF url(http://mydomain.com/images/gradients_tcat.gif)
or just the url part.
I was talking about the category stripes, but not on the one that we have inside a forum or on the main index, I'm talking about the stripes inside threads, I want to use a different picture in the category stripes inside a thread.

thanks.
Reply With Quote
  #4  
Old 01-07-2009, 02:17 PM
Pokerbanter Pokerbanter is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CodingMonkey View Post
Are you talking about the stripe highlighted in my attachment?

If so, go to the Style Manager > Main CSS for the style you wish > search for .tcat
Within the .tcat box, you'll see info such as color codes and one color code with url( after it.
Change the contents of url( to match the path of your image.

So it'll end up being something like...
#FFFFFF url(http://mydomain.com/images/gradients_tcat.gif)
or just the url part.
Sorry but i'm going to hijack this thread :erm:

What i'm looking to do is what you have provided a suggestion for.

I have made some images to replace the category strips. So one for Welcome, General Discussion etc etc. I don't want a generic image for each strip as I have text for each category in each individual image. I have already tried what you suggested as you can see...

www.new.pokerbanter.com/forum

A couple of issues.... It is repeating the image for each category which is what i would expect it to do after this change, but how do I have a seperate image for each forum category??

Also, you can see that the text of the forum still exists, how do you remove this??

ANy assistance appreciated.
Reply With Quote
  #5  
Old 01-07-2009, 04:46 PM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's no way to do this with just CSS. The best way is to give it another class of tcat_text_$forumid and then change the background image in the CSS. So open the templatebit "forumhome_forumbit_level1_nopost" and find this:

<td class="tcat"

Then change it to:

<td class="tcat tcat_text_$forumid"

Then, in your CSS in the "Additional CSS Definitions" area add the following:

.tcat_text_18 {
background: #990000 url(images/icons/pbcategorybggen.jpg) no-repeat;
text-indent: -1000px;
}

Then do the same to the CSS for the other forums (just change '18' to the forum ID which you can find by hovering your mouse over the link and looking for &f=<id>). This is just off my head so it may need tweaking a little.
Reply With Quote
  #6  
Old 01-07-2009, 07:15 PM
Pokerbanter Pokerbanter is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xoligy View Post
There's no way to do this with just CSS. The best way is to give it another class of tcat_text_$forumid and then change the background image in the CSS. So open the templatebit "forumhome_forumbit_level1_nopost" and find this:

<td class="tcat"

Then change it to:

<td class="tcat tcat_text_$forumid"

Then, in your CSS in the "Additional CSS Definitions" area add the following:

.tcat_text_18 {
background: #990000 url(images/icons/pbcategorybggen.jpg) no-repeat;
text-indent: -1000px;
}

Then do the same to the CSS for the other forums (just change '18' to the forum ID which you can find by hovering your mouse over the link and looking for &f=<id>). This is just off my head so it may need tweaking a little.
Thank you very much, that worked a treat!

One small question though, after doing this I find the collapse/expand button has moved to the left and outside the body, any ideas?

Here is the new code in forumbit_level1_nopost

<tbody>
<tr>
<td class="tcat tcat_text_$forumid" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
</if>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>


And the additional CSS:

/* ***** styling for 'big' usernames on postbit etc. ***** */
.bigusername { font-size: 14pt; }

/* ***** small padding on 'thead' elements ***** */
td.thead, th.thead, div.thead { padding: 4px; }

/* ***** basic styles for multi-page nav elements */
.pagenav a { text-decoration: none; }
.pagenav td { padding: 2px 4px 2px 4px; }

/* ***** de-emphasized text */
.shade, a.shade:link, a.shade:visited { color: #777777; text-decoration: none; }
a.shade:active, a.shade:hover { color: #FF4400; text-decoration: underline; }
.tcat .shade, .thead .shade, .tfoot .shade { color: #DDDDDD; }

/* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 11px; }

.tcat_text_18 {
background: #990000 url(images/misc/pbcatgen.jpg) no-repeat;
text-indent: -1000px;
}

.tcat_text_1 {
background: #990000 url(images/misc/pbcatwelcome.jpg) no-repeat;
text-indent: -1000px;
}

.tcat_text_7 {
background: #990000 url(images/misc/pbcatTBZ.jpg) no-repeat;
text-indent: -1000px;
}

.tcat_text_13 {
background: #990000 url(images/misc/pbcatpoker.jpg) no-repeat;
text-indent: -1000px;
}

.tcat_text_20 {
background: #990000 url(images/misc/pbcatbitofbant.jpg) no-repeat;
text-indent: -1000px;
}
Reply With Quote
  #7  
Old 01-07-2009, 07:26 PM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Caused by text-indent.
Reply With Quote
  #8  
Old 01-07-2009, 07:57 PM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah yes, sorry I didn't think of that. In that case, change:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>

With:

<div class="tcat_text_title">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
</div>

And then in the CSS add:

.tcat_text_title {
text-indent: -1000px;
}

Then remove the text-indent: -1000px; from the tcat_text_18 etc.
Reply With Quote
  #9  
Old 01-07-2009, 08:40 PM
Pokerbanter Pokerbanter is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Woah, that seems to have put the collapse button back where it was on the right but now my strips aren't showing. Do I add .tcat_text_title at the end of the CSS? Or before .tcat_text_18 { ?
Reply With Quote
  #10  
Old 01-07-2009, 10:32 PM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

CSS further down the document should have precedence over those that are near the top of the file. So by that, you'd want the overlapping style as far down as you can just in case

Are you sure you didn't miss anything?
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:39 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.04406 seconds
  • Memory Usage 2,282KB
  • 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
  • (3)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