Pages: [1]
Print
Author Topic: Images for categories?  (Read 257 times)
rugsta
Newbie
*
Posts: 1


View Profile Email
« on: April 07, 2010, 01:20:49 AM »

Hi, I've been using bpblog for sometime and even paid my dues quite sometimes ago as I use it so much. Anyhow I've recently updated the look and feel a bit and was wondering if it was possible to have at the begining of each post a different image for the category the post was under?

Can anyone help with this?

Cheers
Logged
Matt
BP Blog Developer/Musician
Administrator
Newbie
*****
Posts: 36



View Profile WWW Email
« Reply #1 on: April 07, 2010, 06:48:58 AM »

Hi, I've been using bpblog for sometime and even paid my dues quite sometimes ago as I use it so much. Anyhow I've recently updated the look and feel a bit and was wondering if it was possible to have at the begining of each post a different image for the category the post was under?

Can anyone help with this?

Cheers

Hey - the easiest way to do this would be to put all of the your category images in one folder on the server and name them CatID.jpg/gif/png.  If you have a cat called articles and its ID is 1 then you would create an image for your cat called 1.jpg and then in your template you would code it so when it pulls the category ID it'll also insert the image.

If you go ahead and create a few images and put them on your server and give me a general idea of where you'd want them to be place them I can easily post some code for you to alter your template with.
Logged

Pages: [1]
Print
Jump to: