vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Each board has it's own logo? (https://vborg.vbsupport.ru/showthread.php?t=58368)

nintendo 11-04-2003 12:36 AM

Each board has it's own logo?
 
Is there a hack where each board can have it's own logo??

Zachery 11-04-2003 04:56 PM

you could do this rather simply with vb3 ^^


i think in vb2 you could add a varible to the logo img source in the header

so lets say fourm id 50 is your video game forum, in the header youd change the img source to read somthing like img src="{imagesfolder}/$forumid/logo.gif

or somthing along thos lines

Sylvus 11-04-2003 05:55 PM

Could one not add something to the phpinclude template?

Code:

if ($forum['forumid']==XX) {

$mylogo = "<img src=http://www.mysite.com/images/logo1.gif>";
                                        }

Then in the Forumhome or Forumdisplay, just change the vblogo default to $mylogo and it should change depending on the variable set in the above code. Repeat for the number of different logos you want for each different forum category.

XX = forumid #

Syl...

Dean C 11-04-2003 06:23 PM

Or do this:

Have your image names like forumicon1.gif forumicon2.gif etc. Then in your template have something like <img src="{imagesfolder}/forumicon$forumid.gif" border="0" alt="" />

That way no need for any kind of php work :)

Sylvus 11-04-2003 06:35 PM

Sigh. Owned again. :(

:)

Syl...

nintendo 11-05-2003 12:06 AM

Except $forumid only works on the index of the board. Is there a way to make the board logo also show up in each thread in that board, and also have a main logo that shows up at the index and other areas of the site?


All times are GMT. The time now is 02:59 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.01665 seconds
  • Memory Usage 1,715KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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