vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Full Graphical Category? (https://vborg.vbsupport.ru/showthread.php?t=35595)

Abbas 03-02-2002 10:55 AM

Full Graphical Category?
 
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


All times are GMT. The time now is 10:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01139 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete