vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Different Images based on forum (https://vborg.vbsupport.ru/showthread.php?t=65335)

Odoin 05-20-2004 07:47 PM

Different Images based on forum
 
Greetings,

What I want to do is have a different top logo display on a few forums only. I know I can do this with by making a new style and forcing that style on that forum, but my problem is when I upgrade the main style I would also have to upgrade the style used for only a few forums... this is a pain in the butt... so I am hoping there is someway to just have the main style pull a different image based on forum ID...

Does anyone have any ideas?

VB 3.0.1.

Thank you for your time.

Mark Laudenbach

bigtime 05-20-2004 09:00 PM

You can use something like this:


PHP Code:

<if condition="$forumid==8">

<
center><a href=http://online-personal-trainer.com/index.php?refer=defend target=blank><img src=http://online-personal-trainer.com/images/banner.gif  width="468" height="60" border="0"></a></center>

</if>

<if 
condition="$forumid==7">

<
center><a href="http://martialartsbusiness.com/index.php?zid=F112901&page=home" target=blank>
<
img src="http://martialartsbusiness.com/img/ban/banner1.gif" width="468" height="60" border="0"></a></center>

</if> 

Insert the conditions in the template where you want the images to appear.

Hope that example helps.

Odoin 05-20-2004 09:18 PM

So I can put that in the header template? Also what about the rest of the forums? Would I have to define them? So say forum 7 and 8 were the ones I wanted a different logo... how would that be done?

Thank you for your time and quick reply.

Mark Laudenbach

Odoin 05-21-2004 11:53 PM

Can I use a exclude some how?

bigtime 05-22-2004 04:59 AM

Quote:

Originally Posted by Odoin
So I can put that in the header template? Also what about the rest of the forums? Would I have to define them? So say forum 7 and 8 were the ones I wanted a different logo... how would that be done?

Thank you for your time and quick reply.

Mark Laudenbach

Yes, you can place that in your header template.

You can use the code above for as many forums as you want. Just be sure to refer to the correct forum by changing the numbers.

If you want to exclude a forum, just don't put the if statement there for that numbered forum.

Hope that helps.


All times are GMT. The time now is 07:51 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.01038 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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