Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Anhinga on April 12, 2005, 01:42:22 PM

Title: Category background images
Post by: Anhinga on April 12, 2005, 01:42:22 PM
My forum is currently set to use a pair of jpeg images for categories and page indexes.  The code for this in my style template is:

.catbg
{
   background-image: url(images/catbg.jpg);
}

.catbg2
{
   background-image: url(images/catbg2.jpg);
}


Right now my forum is set to use Themes/default/images as the images URL, and this folder contains a pair of jpeg images named catbg.jpg and catbg2.jpg.  However, these images do not actually appear on the forum.  What do I need to do in order to make them appear there?
Title: Re: Category background images
Post by: andrea on April 12, 2005, 03:13:56 PM
Have a link?
Title: Re: Category background images
Post by: Anhinga on April 12, 2005, 03:27:21 PM
My forum is http://snakebird.net/polaris/index.php .  There's hardly any content right now because I'm still working on the forum's appearance.  The images directory is http://www.snakebird.net/polaris/Themes/default/images/ .

You can see that catbg.jpg and catbg2.jgp are both in the images directory, but they don't appear on the forum.
Title: Re: Category background images
Post by: Thantos on April 12, 2005, 03:30:28 PM
It'll be hard for use to help you with a close forum...
Title: Re: Category background images
Post by: Anhinga on April 12, 2005, 03:52:39 PM
Considering that the PhpBB version of my forum was hacked four times within a period of about six months, I'm not really comfortable letting it be public.  The guy who was doing this has already noticed I have a new forum and registered there to post something, (He's "Darcelomar") apparently via a proxy server since I've banned his IP address.

You should still be able to tell just from the login page that the "catbg" image isn't appearing where it's supposed to, though.  What do you need to see in order to help me that isn't visible when the forum is private?
Title: Re: Category background images
Post by: Thantos on April 12, 2005, 04:00:03 PM
On the login page there is nothing that uses the class catbg or catbg2.  I only know of a few spots that use that style class and thats the catagory headers on the boardindex.  So theres no way to see it not working on the login page.

From your style.css I think the problem is this:

Your style.css is located in http://snakebird.net/polaris/Themes/YaBB-edit/

your style.css is telling the browser that the image is located in image/catbg.jpg relative to to style.css which would be
http://snakebird.net/polaris/Themes/YaBB-edit/images/catbg.jpg

However the image is really located in
http://snakebird.net/polaris/Themes/default/images/catbg.jpg

So you can either make a image directory and copy catbg.jpg and catbg2.jpg into that directory or edit style.css so it uses the full path
Title: Re: Category background images
Post by: Anhinga on April 12, 2005, 08:11:16 PM
OK, I've got it now.  Thanks for the help.