News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Category background images

Started by Anhinga, April 12, 2005, 01:42:22 PM

Previous topic - Next topic

Anhinga

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?

andrea


Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



Anhinga

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.

Thantos

It'll be hard for use to help you with a close forum...

Anhinga

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?

Thantos

#5
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

Anhinga

OK, I've got it now.  Thanks for the help.

Advertisement: