Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Random Side Banners Outside Main Body in Fixed Position Details »
Random Side Banners Outside Main Body in Fixed Position
Mod Version: 1.00, by CAG CheechDogg (Designer) CAG CheechDogg is offline
Developer Last Online: Nov 2022 I like it Show Printable Version Email this Page

vB Version: 4.0.0 Rating: (2 votes - 5.00 average) Installs: 20
Released: 09 Nov 2012 Last Update: Never Downloads: 160
Not Supported Template Edits Additional Files Re-usable Code Translations  

Random Side Banners

Quite a few people have asked how do you add side banners outside of your forum's main body and no one has offered a solution that I know of.

This mod allows you to have random banners outside of your forums main body in a fixed position. The banners will rotate with every unique visit to your forums similar to the dszuecs's "New way to force guests to register" Mod. The php code to make the banners rotate could possibly be written better, right now you don't always get a different random banner unless you completely close your browser and come back with a new session it seems.

The rotate.php code is not mine I found it not only in dszuecs's New way to force guests to register Mod but also online. I did however use his Mod as a base to get this Mod done.

If anyone can fix the rotate.php file so that you get a random with every page load that would be great.

The banners used in this mod have the dimensions of height:435px width:140px but you can change them to any size you want.

Included are the files to upload to your FORUMROOT using FTP:

Files included are:

1. left_banner_rotate.php
2. right_banner_rotate.php
3. images (includes 1 png file you can use as a template for your banners)
4. additional_css.txt (code to add to your additional_css)
5. header_template.txt (code to add to your header template)

You will need to make 2 manual template edits to your additional.css and your header template.

The code included in the additional_css file can be added at the very end of your additional.css file.


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

The code included in the header_template file must be added at the very top before all other code in your header template.


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

This is my first Mod contribution you guys so be gentle with me. I am just learning vBulletin's way of doing things and hopefully I can contribute other small Mods in the future.

Download Now

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

Screenshots

Click image for larger version

Name:	attachment_1.jpg
Views:	1281
Size:	201.3 KB
ID:	142178  

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.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Random Banners by BOP5 (Simple random banners) BirdOPrey5 vBulletin 3.8 Add-ons 12 16 Nov 2011 12:47

Comments
  #2  
Old 09 Nov 2012, 13:14
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
For easier banner management you guys can use the following Mod together with this one:

http://www.vbulletin.org/forum/showt...mages&page=137

This will allow you to set up to 10 different banners per side. To do this you do the following:

Open up your header template and do the following small edit if you already installed this Mod:

Find this:


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

Replace with this:


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

Note, there are 10 positions for the banners starting with 0 through 9, the 2 positions I used here are position 0 for the left side banners and position 2 for the right side banners. You can use any position you want for yours, just replace the red highlighted numbers with your positions.

This also gives you a better rotation of the your banners than using the left_banner_rotate.php and right_banner_rotate.php files, so you can remove those from your additional.css.


Change the code in additional.css to the following:


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


Last edited by CAG CheechDogg; 10 Nov 2012 at 20:51.
Reply With Quote
  #3  
Old 13 Nov 2012, 11:53
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Real name: Ben Dover.
Excellent!, was looking for something like this.

Don't know if your aware but when I click Forum in your Navbar on your site it takes me to google.co.uk?.
__________________
Tech forum.
Reply With Quote
  #4  
Old 15 Nov 2012, 22:56
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Looks good.
Reply With Quote
  #5  
Old 16 Nov 2012, 08:36
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by synseal View Post
Excellent!, was looking for something like this.

Don't know if your aware but when I click Forum in your Navbar on your site it takes me to google.co.uk?.
Glad you like it synseal! And what Forum on what Navbar buddy? I have been going crazy trying to find this link and I don't see it! lol...help me out here!

Originally Posted by Alan_SP View Post
Looks good.
Thanks Alan, did everything work ok for you?
Reply With Quote
  #6  
Old 19 Nov 2012, 02:42
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Real name: Ben Dover.
Originally Posted by CAG CheechDogg View Post
Glad you like it synseal! And what Forum on what Navbar buddy? I have been going crazy trying to find this link and I don't see it! lol...help me out here!



Thanks Alan, did everything work ok for you?
Sorry been away for a few days,

This link on your forum redirects me to google, dont know why?.

Edit - to add so do every link in that drop down, strange.
Attached Images
File Type: jpg forum.jpg (38.1 KB, 52 views)
__________________
Tech forum.
Reply With Quote
  #7  
Old 19 Nov 2012, 13:03
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Ah ok, you might be on an old browser that I have banned using the Ban Spiders mod which redirects them to google.com ...

What country are you in? Send me your ip address and I will see if it's in one of the ip ranges I have banned.
Reply With Quote
  #8  
Old 21 Nov 2012, 16:22
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Real name: Ben Dover.
Originally Posted by CAG CheechDogg View Post
Ah ok, you might be on an old browser that I have banned using the Ban Spiders mod which redirects them to google.com ...

What country are you in? Send me your ip address and I will see if it's in one of the ip ranges I have banned.
It must have been my browser as you said cause I recently formatted my PC and you site is working fine for me now.

Sorry to take this off topic, regards .
__________________
Tech forum.
Reply With Quote
  #9  
Old 21 Nov 2012, 21:14
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by synseal View Post
It must have been my browser as you said cause I recently formatted my PC and you site is working fine for me now.

Sorry to take this off topic, regards .
No problem buddy, thanks a lot for pointing that out regardless though.
Reply With Quote
  #10  
Old 22 Nov 2012, 00:28
legiondadon legiondadon is offline
 
Join Date: Aug 2012
the issue i was having with this is when members had a zoomed in browser...the images wouldnt zoom with the rest of the forum and caused them to overlap over forum content for sum members...had to disable although this is a great idea
Reply With Quote
  #11  
Old 22 Nov 2012, 21:43
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by legiondadon View Post
the issue i was having with this is when members had a zoomed in browser...the images wouldnt zoom with the rest of the forum and caused them to overlap over forum content for sum members...had to disable although this is a great idea
Hey legion easy fix for that. Use the following in your additional.css instead:


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

The z-index:-1000 will make the banners sit behind your forum's content when zoomed in.
Reply With Quote
  #12  
Old 06 Dec 2012, 13:49
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Genius! I have the RBs installed, but had some crashes and trying to rebuild. Seriously...this will allow rotating ads in the spaces of the fixed themes? Have I got this right? Does it work in 4.2pl3?
Reply With Quote
  #13  
Old 07 Dec 2012, 07:45
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Yes it should work with 4.2...and yes It will allow the rotating adds if you use the mod I listed in the description, here is the link:


http://www.vbulletin.org/forum/showt...mages&page=137

If you need help installing it or if you are still having problems let me know.
Reply With Quote
  #14  
Old 12 Mar 2013, 14:48
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Thanks for your reply, I lost the thread...

I'm going to put this into action shortly for paid ads on www.tooraktimes.com.au
Reply With Quote
  #15  
Old 29 Jul 2013, 16:47
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Real name: CM
Thumbs up

Liked CAG CheechDogg, Awesome Product, and Congrats Mate! Sadly I am not allowed to VOTE. But from 4 to 5 Stars for your work and support for your product..

I was just checking who gave me the last LIKE on my Product, And ofcourse it was from you, Once again! You are one of the greatest and honest members on here, and now as a Developer I congratulate you with your first and awesome Product! Just as you have showen your support towards myself and everyone else on here, I am now here to show my gratitude and support for your awesome work and great attitude along the time we been members on here! Good luck!

Ps, Hopefully you will be creating a few vB3.8 Products too! I mean not many are using vB3.8, but I do and I know many others does at well! Keep up your good work! And God bless!

By CM aka ChiNa-Man
__________________
I am having a little break from vB Developing. I am trying to finish my PHP and MYSQL courses for now. I will answer all my PM's if anyone needed help for my products, but only when I can be online on vB.org. Its great to see new and old developers keeping vB.org alive! Thank you all for your support!CM

Last edited by ChiNa; 29 Jul 2013 at 16:54.
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 06:37.

Layout Options | Width: Wide Color: