View Full Version : Category images / icons
Sanhux
06-27-2005, 02:54 AM
ODP project have some nice images to be associated in topics/ cathegories. Of course, a default set are nice, but this would be specified by a admin upload.
How are category images added? Like adding a file folder image?
Ap0s7le
12-17-2005, 10:40 AM
I plan on making a mod to allow images for each Cat, and a default one for those that aren't set.
It's on my very soon to do list.
-Casey
hitboy
05-29-2007, 06:45 PM
has this mod been completed?
add simple a scr="ID_CAT.ico" and uploud some icons ;)
jminscoe
10-07-2007, 07:06 PM
Content visible to registered users only.
Question I will am doing a site with 21 main categories want to put a flag next to each category where would I put it and what would be the whole code to put in it ie..... argentina_flag icon or gif goes next to Argentina Category and so forth
madtay
10-07-2007, 07:24 PM
Hi,
I use the following code:
Content visible to registered users only.
and simply name each image as the category number.. ie. if the Arts category ID is 1 i name the arts category icon as '1.gif' then place it in the /images/ folder.
Hope that helps,
Regards,
proprod
10-07-2007, 07:47 PM
That is probably the easiest way to do it.
jminscoe
10-07-2007, 07:58 PM
Content visible to registered users only. Just to make sure I would just put it in the main template here Content visible to registered users only.
Easy way using same image for all folders, sub-folders.
If folder image is located in template\templatename\images\
Use this one in main.tpl:
Content visible to registered users only.
Remember added:
Content visible to registered users only.
See sample demo here: http://www.webs-dir.com
Swe
=========
http://www.webs-dir.com
shickson
11-24-2007, 12:18 AM
I've created images for my categories and the directory looks really good. I've used the code in this forum
Content visible to registered users only.
Is there any code i can place in here to just have the categories on the index look for an image. With the code above each page is looking for an image.
James
11-24-2007, 12:21 AM
Code only on homepage (or other page) (http://www.phplinkdirectory.com/forum/showthread.php?t=11823)
and wrap <img src="/images/{$cat.ID}.gif" border="0" alt="{$cat.TITLE}">
in the if switch ;)
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.