Log in

View Full Version : image only on home Category Strips


hollyboy
06-25-2007, 07:20 AM
hi,

i want to display an image only on the forum homepage cat, not in all the td where i have the class .tcat

thanks

TheMilkCarton
06-25-2007, 10:17 AM
Insert.tcat2

{

background: #newcolor url(../../images/gradients/new_image.gif) repeat-x top left;

color: #FFFFFF;

font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

} Into the Additional CSS Definitions box at the bottom of the Style Manager. Then open up FORUMHOME template and replace all instances of "tcat" with "tcat2".

You might have to change the image path depending on if you have the CSS stored in the filesystem or not.

hollyboy
06-25-2007, 11:19 AM
it doesnt work :(

TheMilkCarton
06-25-2007, 01:06 PM
It does on the Welcome Message, and you're logged in and can't see it.. I just told you the wrong template. :)

Do the tcat > tcat2 replacement for the forumhome_forumbit_level1_nopost and forumhome_forumbit_level1_nopost templates.

It looks like you have the tcat in forumdisplay set up to have an image, too... so you'll need to do the same thing there. Look for the <td class="tcat" .... > around the phrases "$vbphrase[threads_in_forum]" and "$vbphrase[subforums]" and replace it with tcat2.

--------------

Oh, well it looks like all your "tcat" classes have a large left padding.. If you're not going to be putting an image in "tcat" you should get rid of the "padding-left:100px" out of the CSS rules.

Here's a shot of the only place where it's actually working, in case you don't believe me.. :)
66094