vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Logo change - defined by forum ID (https://vborg.vbsupport.ru/showthread.php?t=75716)

zurih 02-04-2005 08:55 AM

Logo change - defined by forum ID
 
Desc: The logo of the forum will be different in each forum which will be defined by forum id.

in forumhome it will display the default logo.

possible?

Colin F 02-04-2005 09:32 AM

Quote:

Originally Posted by zurih
Desc: The logo of the forum will be different in each forum which will be defined by forum id.

in forumhome it will display the default logo.

possible?

you could just add the variable $forumid to the template, where the logo is.
then, upload different logos with that variable in the filename.

Silmarillion 05-31-2006 07:34 PM

Hello,

I tried to get it working with this code:

PHP Code:

<!-- logo -->
<
a name="top"></a>

<
table border="0" cellspacing="0" cellpadding="0"  width="100%">
<
tr><td align="left" style="background-image: url(path/nav_back.gif);"><a href="path/">

<if 
condition="in_array($forum['forumid'], array(1))">
<
div class="smallfont"><img src="forum/logo1.gif" alt="" /></div>

<else />

<if 
condition="in_array($forum['forumid'], array(2))">
<
div class="smallfont"><img src="forum/logo2.gif" alt="" /></div>

<else />

<if 
condition="in_array($forum['forumid'], array(3))">
<
div class="smallfont"><img src="forum/logo3.gif" alt="" /></div>

<else />

<
img src="forum/logo.gif" border="0" alt="" />

</if></if></if>

</
a
</
td>
</
tr>
</
table>
<!-- /
logo --> 

But the Condition doesn't work. What`s the Problem?

Zachariah 05-31-2006 09:20 PM

Add a banner image to each forum
https://vborg.vbsupport.ru/showthread.php?t=61555

Silmarillion 06-01-2006 06:01 AM

Hello Zachariah,

I don`t want to add some banners. I only want to change the header-logo of the default-style for some subforums.

Problem solved.

$forum['forumid'] doesn`t work in the header. So you have to replace this variable with $forumid.


All times are GMT. The time now is 04:24 PM.

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.01948 seconds
  • Memory Usage 1,726KB
  • 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