The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Advertising Banner System

Geek Advertising Banner System GAB is a highly configurable banner management system for vBulletin.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 02-29-2008, 09:59 AM
powerful_rogue powerful_rogue is offline
Member
 
Join Date: Nov 2007
Posts: 56
Default Question about GABS

Hi,

On my forum at present, I have two random banners showing at the bottom of everypage. >> LINK.

Although it currently shows them at random, Im looking for a mod that will make each banner random.

EG (at present)

Banner one | Banner two
Banner three | Banner four
Banner five | Banner six

Im looking for it to doall random)

Banner five | Banner two
Banner six | Banner three
Banner four | Banner one

Will this be possible with GAB and will it be possible to keep the box which currently surrounds them?

Thanks

Dave
Reply With Quote
  #2  
Old 03-02-2008, 05:39 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Untested but try editing the ' GAB - Fetch Forum Ads' plugin located at the global_start hook. Find:
Code:
$GAB_ads = $gab->fetch_ads();
Afterwards add the following:
Code:
function gab_shuffle(&$arr)
{
	if (is_array($arr) && count($arr) > 1)
	{
		$keys = array_keys($arr);
		shuffle($keys);
		$arr = array_combine($keys, $arr);
	}
}
gab_shuffle($GAB_ads);
But as this is custom code, if it doesn't work, I won't offer further support for it.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 03-02-2008, 03:41 PM
powerful_rogue powerful_rogue is offline
Member
 
Join Date: Nov 2007
Posts: 56
Default

Thanks for your reply morgan.

I'll leave it for the time being as this is they only way ive got the ads on my site. Looks like a great mod though
Reply With Quote
  #4  
Old 03-18-2008, 12:54 AM
powerful_rogue powerful_rogue is offline
Member
 
Join Date: Nov 2007
Posts: 56
Default

Before I purchase GABs, would anyone be kind enough to give the above a test for me please

If it works, it should show two random banners side by side in the advertising box!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Couple of GABS questions Danny Boy Geek Advertising Banner System 1 02-26-2008 11:09 PM
Anyone want to sell a GABS license? yoyo Geek Advertising Banner System 0 09-18-2007 05:43 PM
Anyway to post GABS into plain PHP pages? tspore Geek Advertising Banner System 0 09-05-2007 12:32 AM
When will you complete GABS as stated attroll Geek Advertising Banner System 7 06-24-2007 10:01 AM
GABs on VBaCPMS interfx Geek Advertising Banner System 0 01-29-2006 08:25 PM


All times are GMT. The time now is 07:21 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.