The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I see mods for Rotational banners that's for ad's on your forum but nothing like this for banners as in your website banner.. I run a gaming forum and have loads of different themes and colours and different banners. I would like to get it down to one theme and colour and a rotational banners for all different games that we play.
Is this possible? |
#2
|
||||
|
||||
![]()
Anyone know?
|
#3
|
||||
|
||||
![]()
Yes, it is possible. Have you done a search? I see a ton of banner mods for vB4 that are not ad related.
|
#4
|
||||
|
||||
![]()
Am I searching for the wrong key words? I just see ad banners. You have any links?
|
#5
|
|||
|
|||
![]()
If you're trying to just rotate the banner, you can make a plugin. Here's a plugin that should work.
Code:
ob_start(); $banners = array('banner_1', 'banner_2', 'banner_3'); $rand = rand(0, count($banners) - 1); echo $banners[$rand]; $php_include = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('header',array('random_image_background' => $php_include)); Code:
<img src="blablabla" /> Code:
<img src="{vb:raw random_image_background}" /> |
#6
|
||||
|
||||
![]()
Sorry but, how do you make a plugin? Never done a plugin.
|
#7
|
|||
|
|||
![]()
Admincp -> Plugins & Products -> Add New Plugin
Also make the hook location global_bootstrap_init_start |
#8
|
||||
|
||||
![]()
And where do I change the hook location?
|
#9
|
|||
|
|||
![]()
It's in option when creating a new plugin. Here's an example, this is how mine was when I was testing the plugin.
![]() |
#10
|
||||
|
||||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|