Category Name As Images - NBS






 

 

Category Name As Images - NBS

View Full Version : Category Name As Images


AjRap2
08-Jul-2004, 07:38 PM
This is actually quite simple :)

In the Admin CP go to the skin you want to do this on and click Board Index then choose CatHeader_Expanded.

Look for <div class='htmltop'>HTML</div><div class='htmlmain'><a href="{ipb.script_url}showforum={$data['id']}">{$data['name']}</a></div>
Replace {$data['name']} with

<div class='htmltop'>HTML</div><div class='htmlmain'><img src="style_images/<<span style='color:blue'>#IMG_DIR#>/cat_imgs/{$data['id']}.gif</span>" border="0" alt="{$data['name']}" /></div>

To get this working correctly you must know the name and ID number of the category. Make an image with the name of the category on it with any extra custom design on it. Save the file as the categories ID number .gif

So if the ID of the category you were making the image for was 2, you would name the image file 2.gif

After saving the image open the skins images folder on your webspace and create a folder called "cat_imgs" (without the quotation marks)

Finally upload the images into that folder and voila !! A more stylish Category Name all customized to match entirely with your skin !!

*Note*
Do not use this on a skin that you are creating to put up for download, because everyones Categories aren't named the same :P

AjRap2