vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Different logo per forum? (https://vborg.vbsupport.ru/showthread.php?t=158818)

WhaLberg 09-28-2007 07:12 PM

Be patient guys, there will be one more release with that. I am working on. :)

Kirk Y 09-28-2007 09:45 PM

If you want a no frills version...

Create a new plugin using hook location "global_start" with the following:
Code:

if (in_array($GLOBALS['forumid'], array(2,5)))
{
$stylevar['titleimage'] = "/images/forum_".$GLOBALS['forumid'].".jpg";
}

Then simply change the numbers in the array to the Forum IDs you'd like to have custom logos displayed; and move the custom logos to your "/images" directory, renaming each to the following: forum_X.jpg - where X is that logo's Forum ID.

Any Forum ID you don't specify in the array will use the default logo.

lasto 09-29-2007 09:40 AM

works perfect :) cheers kirby

now all we need is this as a plugin where we can select in each forum in admincp what logo to use,just to make it easier :)

Kirk Y 09-29-2007 02:53 PM

Well if you feel like experimenting with vBulletin and PHP: https://vborg.vbsupport.ru/showthread.php?t=93445 :)

lasto 09-29-2007 04:49 PM

2 complicated for me which is why i hire coders :)

cheers Kirk Y anyway - still a good read

--------------- Added at 08:16 ---------------

this works perfect but is there a way for the main logo on forum index to be random.
Say i make 5 and put them on the ftp it then picks a random header to show ???

Dont want it random for the different sections - only forumhome

lasto 10-01-2007 01:56 PM

if anyone readin this the code above works perfect for different sections

But i also wanted a seperate one for random images on forumhome so i done a search on here and found the code - now here is the problem - if i have random pics on forumhome it wipes off the pics for the forums which i specify does anyone know why ?

tiekie 10-01-2007 02:17 PM

Is there a working demo?

Please pm details

lasto 10-01-2007 02:29 PM

How u mean working demo

all i done was used the code on the page before for different headers inside forums which worked fine.

So i then added this code from this hack to do random images on forumhome

https://vborg.vbsupport.ru/showthrea...t=random+logos

but doing this just wipes the images i had set up for different sections

Kirk Y 10-01-2007 08:36 PM

Try wrapping the random logo code with:
Code:

<if condition="THIS_SCRIPT == 'index'">
Random Logo Code Here
<else />
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
</if>

That way it'll only execute if the user is viewing the board's index, and leave my previous code to execute if they aren't.

lasto 10-02-2007 03:46 PM

Quote:

Originally Posted by Kirk Y (Post 1351004)
Try wrapping the random logo code with:
Code:

<if condition="THIS_SCRIPT == 'index'">
Random Logo Code Here
<else />
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
</if>

That way it'll only execute if the user is viewing the board's index, and leave my previous code to execute if they aren't.

works perfect thank you once again Kirk Y


All times are GMT. The time now is 02:52 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.01768 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete