PDA

View Full Version : Full Graphical Category?


Abbas
03-02-2002, 10:55 AM
Hi,

I was wondering if anyone knows of a hack that can let me replace the "Caegories" header for the forums with an image. I've seen some hacks that let you add a gradient or an ad sponsor, but it there one that can be completely graphics without any text?

I mean it would be a table with two/three cells where the first cell will have the graphic, the second cell might have a gradient between the graphic color and a plain color and the third cell will have a plain color. That would look nice.

Thanks
Abbas

Admin
03-02-2002, 11:24 AM
You'll need GD or something like that to create the image on the fly I think.

Abbas
03-02-2002, 11:30 AM
Not on the fly?? I have already designed some headers with categories. Cant' I simply hack vB to show that instead of the Text for the Categories?

Thanks!

Admin
03-02-2002, 11:34 AM
You can use something like <img src="{imagesfolder}/categories/$forum[forumid].gif"> then name the images according to the forum ID's. So for forumid=4, 4.gif will show up, etc.

Abbas
03-02-2002, 11:44 AM
Thanks for helping Firefly, but where do I put the tag you mentioned:

<img src="{imagesfolder}/categories/$forum[forumid].gif">

I'm a newbie so I really appreciate your patience!

Thanks

Admin
03-02-2002, 02:50 PM
forumhome_forumbit_level1_nopost

Abbas
03-02-2002, 03:23 PM
ok, this is what I see in the template you've mentioned above:

----------
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="{categoryfontcolor}">$forum[description]</smallfont></td>
</tr>
----------

Do I insert that code below, or replace some code with the one you've provided?

Thanks againg
-Abbas

Abbas
03-06-2002, 05:33 AM
Hello??

Anybody else that can help?

Thanks
-Abbas

Neo
03-06-2002, 05:51 AM
Well I would say replace.. but if it messes up you can always use the original template for it....

----------
<tr id="cat">
<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="#000000"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="#000000">$forum[description]</smallfont></td>
</tr>
----------

===

----------
<tr id="cat">
<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/categories/$forum[forumid].gif">
</a>
</td>
</tr>
----------

something like that