vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Catagory specific background image (https://vborg.vbsupport.ru/showthread.php?t=52137)

Mystic Gohan 04-25-2003 07:11 PM

Catagory specific background image
 
i've been working on getting catagory specific background images, but i seem to have stumbled on a problem :/

okay, so in forumhome_forumbit_level1_nopost

<tr id="cat">
<td background="{imagesfolder}/$forum[title].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>

the boldpart being where the background images is called, now why cant i use the $forum[title] tag to load an image?, the forum name being "Test", and the image being Test.gif .. is there a way to get around this so that each catagory can have its own image?

Dean C 04-26-2003 12:08 PM

Please post template-related questions in the correct forum in future :)

Thanks

_________

Regarding your question. You would have to hack to achieve this :)

- miSt

base 04-26-2003 04:02 PM

i use $forum[forumid].gif - then use numbered images. so if your test forum was id 12 for example, your "test" image should be called "12.gif"

{imagesfolder}/$forum[forumid].gif etc etc

base 04-26-2003 04:03 PM

aha, that got parsed then...

<td background="{ imagesfolder}/$forum[forumid].gif" colspan="6"> is what i should have done ;)

Dean C 04-26-2003 05:46 PM

Oops didn't read the question correctly :)

So you have it all working now :)?

- miSt

filburt1 04-26-2003 05:47 PM

Quote:

Today at 01:03 PM base said this in Post #4
aha, that got parsed then...

<td background="{ imagesfolder}/$forum[title].gif" colspan="6"> is what i should have done ;)

Not a good idea. The forum title will rarely comply with UNIX file naming rules.

base 04-26-2003 09:50 PM

ack, i meant what i had typed in my first post, $forum[forumid].gif etc... sorry, don't know where i am today heh

i'll edit my post again....


All times are GMT. The time now is 11:07 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.00971 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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