Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
10 Random Banners (Or Other HTML Objects) Details »
10 Random Banners (Or Other HTML Objects)
Mod Version: 1.1, by EWGF (Member) EWGF is offline
Developer Last Online: May 2016 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (2 votes - 5.00 average) Installs: 31
Released: 03 Jan 2010 Last Update: 02 Aug 2011 Downloads: 211
Not Supported Uses Plugins Template Edits Re-usable Code  

Note: This product is not limited to 10 random banners since it drives on HTML. You can tune it to showing 10 defined YouTube video's which will be displayed randomly. It's up to you.

Description
This lightweight product allows you to place $tenrandombanners on your template(s), which will randomly pick one of the 10 admin-defined banners. Every refresh of the page gives you another banner, unless the same banner is randomly chosen again.
Setting the banners (or any other object you want to display) is completely done with HTML (and not with millions of settings), so you can have full control over the height, width, alt, target, etc. per banner. You could use any other kind of HTML or conditional statements (if usergroup, if forum, if script, etc.) too.

Details
Works for 3.7.X and 3.8.X, not build for 4.X or higher
Adds one plugin and 22 phrases.
The CMPS module adds one template and one .php module.

Install product
- Upload product-10randombanners.xml in the Admin CP through the section Products And Plugins.
- Adjust settings at vBulletin Options > 10 Random Banners

Install CMPS-module (optional)
- Upload cmps-10randombanners.xml in the Admin CP through Upload Module at the section vBadvanced.
- Set on which page the module should appear.

Notes
- Fill in from 1 to 10, the script won't pick up gaps between fields. You're not obligated to use all 10 fields. Just fill in the fields chronologically: 1, 2, 3, 4, etc.
- Not likely to work on vBulletin 4.X or higher

History
1.0 - initial release (january 2010)
1.1 - added CMPS module and changed product for better rotation between banners (august 2011)

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	20110802 screenshot-10randombanners.jpg
Views:	163
Size:	82.8 KB
ID:	131629  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 03 Jan 2010, 14:04
bing11 bing11 is offline
 
Join Date: Feb 2003
thanks
Reply With Quote
  #3  
Old 03 Jan 2010, 22:21
thernus thernus is offline
 
Join Date: Jul 2007
Installation

Hi

ist only to install as addon or must I set in addition $tenrandombanners to template source???

THx
Reply With Quote
  #4  
Old 04 Jan 2010, 08:15
EWGF EWGF is offline
 
Join Date: May 2007
You must manually put $tenrandombanners somewhere in your template after installing the plugin, because this product does not support hooks (yet).
Reply With Quote
  #5  
Old 04 Jan 2010, 12:42
yamahapaul's Avatar
yamahapaul yamahapaul is offline
 
Join Date: Aug 2008
Real name: Paul
Question

I'm looking for a simple way of having random pictures in the top right corner opposite (as shown where the cross is on my attachment) and I'm wondering if I could use this to do it??
Attached Images
File Type: jpg Capture.jpg (95.6 KB, 182 views)
__________________
midlands heritage
Reply With Quote
  #6  
Old 04 Jan 2010, 14:06
EWGF EWGF is offline
 
Join Date: May 2007
Yes, that is possible. Add $tenrandombanners next to "$ad_location[ad_header_logo]" in your Header template.

Then setup the codes in vBulletin settings, like for example:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

...
Reply With Quote
  #7  
Old 05 Jan 2010, 17:48
yamahapaul's Avatar
yamahapaul yamahapaul is offline
 
Join Date: Aug 2008
Real name: Paul
Thumbs up

Originally Posted by EWGF View Post
Yes, that is possible. Add $tenrandombanners next to "$ad_location[ad_header_logo]" in your Header template.

Then setup the codes in vBulletin settings, like for example:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

...
Thanks, I'm gonna give it a go
__________________
midlands heritage
Reply With Quote
  #8  
Old 03 Feb 2010, 19:28
barcena's Avatar
barcena barcena is offline
 
Join Date: Sep 2006
Originally Posted by EWGF View Post
You must manually put $tenrandombanners somewhere in your template after installing the plugin, because this product does not support hooks (yet).
Excuseme, in what template?. Will you explain to me at no coder level?.

Thanks.

I wanted so it will only shows in one forum category.
Reply With Quote
  #9  
Old 03 Feb 2010, 19:57
barcena's Avatar
barcena barcena is offline
 
Join Date: Sep 2006
Nevermind, admins please delete this if you want.
Reply With Quote
  #10  
Old 03 Feb 2010, 20:16
barcena's Avatar
barcena barcena is offline
 
Join Date: Sep 2006
Lets say I will like to show the banner afther the third post on a giving forum, what should I input and where?

Need some help on a href, target, alt and border i guess.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #11  
Old 29 Mar 2010, 19:07
EWGF EWGF is offline
 
Join Date: May 2007
I believe this code provides in showing the banner after the third post in forums 1, 2 and 3. In your case, this code should be placed in the "postbit" or "postbit_legacy" template

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #12  
Old 11 Apr 2010, 23:44
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Thanks for this!

How do you increase this to more than ten banners or how do you run a 2nd instance of this same mod on the same page?
Reply With Quote
  #13  
Old 12 Apr 2010, 00:47
xoxstugotsxox xoxstugotsxox is offline
 
Join Date: Jun 2009
Is it possible to add this to CMPS?
Reply With Quote
  #14  
Old 18 Apr 2010, 23:56
EWGF EWGF is offline
 
Join Date: May 2007
Originally Posted by MagicThemeParks View Post
Thanks for this!

How do you increase this to more than ten banners or how do you run a 2nd instance of this same mod on the same page?
More than ten banners can be done by manually adjusting the plugin, although the settings in vBulletin Options only support ten fields.
You can place the variable more than once

Originally Posted by xoxstugotsxox View Post
Is it possible to add this to CMPS?
Yes
Reply With Quote
  #15  
Old 21 Jul 2011, 12:21
Scyther's Avatar
Scyther Scyther is offline
 
Join Date: Jul 2009
Real name: Deepak
nice mod..

marked installed....thanks..
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 03:45.

Layout Options | Width: Wide Color: