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: Apr 2021 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: 158
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:	1271
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

  #16  
Old 22 Mar 2014, 12:25
aaronhaul aaronhaul is offline
 
Join Date: Mar 2014
Originally Posted by CAG CheechDogg View Post
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.
Thank you for the "Random Side Banners Outside Main Body in Fixed Position". I have installed and it worked for just a second there with the use of the images you provided for the left and right fixed position. Then it no longer displays. Don't know why. I checked and double checked to make sure everything is ok.

After installing the above Random Side Banners, I also installed the Rotating Banner System v2.4.2 to rotate the banners as you indicated in your later post with left-banner and right banner images and the div tags:

<div class="left-banner"><[email protected]:[email protected]></div>
<div class="right-banner"><[email protected]:[email protected]></div>

Can you help me check what am missing out and why its not working as expected? Is it possible that there is a conflict with

I will really appreciate your effort.

Thanks.
Reply With Quote
  #17  
Old 23 Mar 2014, 02:42
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
A link to your site ? ..

Possible conflict with what? ...

Are you sure the banners are on those positions you indicated ? ...
Reply With Quote
  #18  
Old 23 Mar 2014, 03:07
aaronhaul aaronhaul is offline
 
Join Date: Mar 2014
Originally Posted by CAG CheechDogg View Post
A link to your site ? ..

Possible conflict with what? ...

Are you sure the banners are on those positions you indicated ? ...
Hello,

Yes, the banners are on both the left and right positions as I have followed your directions closely.

But I do not know whether I mistakenly broke something or some of the scripts conflicting.

Please help me check?

I'm sending you a Link to the Website including Logging Information via my inbox.

Thanks a lot.
Reply With Quote
  #19  
Old 23 Mar 2014, 04:27
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Ok buddy, I got it going ...now all you have to do is add more banners to the positions that you have in the banner rotator, follow the examples for the ones you have now ....

Right now you only have the image I use for the template, but you can replace that with what ever images you upload to any folder, just make sure they are the dimensions you specify ...
Reply With Quote
  #20  
Old 23 Mar 2014, 04:35
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
If you need to add a banner with a link in it use the following:

<a href="http://naijafrontpage.hugeicon.com/forum.php" title="tittle for your link"><img src="http://naijafrontpage.hugeicon.com/path_to/image" border="0" alt="your choice" title="your choice" width="140" height="435" /></a>
Reply With Quote
  #21  
Old 25 Mar 2014, 07:26
aaronhaul aaronhaul is offline
 
Join Date: Mar 2014
Originally Posted by CAG CheechDogg View Post
If you need to add a banner with a link in it use the following:

<a href="http://naijafrontpage.hugeicon.com/forum.php" title="tittle for your link"><img src="http://naijafrontpage.hugeicon.com/path_to/image" border="0" alt="your choice" title="your choice" width="140" height="435" /></a>
Yes I tried that. I think I'll stick to not putting a banner on the header_1 and header_2 of this custom theme as it makes it looks ugly.

Nevertheless, I'm trying to add Random Side Banner with Add Banner Rotators on Blog Sidebar, but it's not working.

It doesn't show up the banner on the Blog Sidebar although the Blog Sidebar banners are active.

I've checked the position of the templates, the RBS and Advertisement positions. Everything looks OK. But the banner do not display in the Side Bar of Blog.

Please advise.
Reply With Quote
  #22  
Old 26 Mar 2014, 12:59
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Hi, I tried the positions you suggested and the banners appeared at the top of the page not the sides, not sure at all how the positioning of these works.
www.tooraktimes.com.au

Is there an explanation anywhere that tells you where all these positions directly relate to in the advertisinf grids on the site?
Reply With Quote
  #23  
Old 03 Apr 2014, 01:19
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Thanks Cheech! I was just working on this very thing! Now I don't have too.
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #24  
Old 07 Apr 2014, 09:36
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by RichieBoy67 View Post
Thanks Cheech! I was just working on this very thing! Now I don't have too.
Nice Richie ! Did it do the job for you?
Reply With Quote
  #25  
Old 23 Mar 2015, 12:55
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Hi Cheech,

Can I get you to give me some help please, I can only get these to appear at the top of the skin mate
Reply With Quote
  #26  
Old 26 Mar 2015, 20:36
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Which option did you use? A link to your site?
Reply With Quote
  #27  
Old 28 Mar 2015, 14:00
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Originally Posted by CAG CheechDogg View Post
Which option did you use? A link to your site?
http://www.tooraktimes.com.au/conten...uide-Australia

I see the adds appearing above the header instead of beside the fixed skin
Reply With Quote
  #28  
Old 29 Mar 2015, 01:25
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
I see the code at the top of your page ... you uploaded the files to your forum root and added the code to the header template and additional.css file?
Reply With Quote
  #29  
Old 05 Oct 2015, 12:05
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Originally Posted by CAG CheechDogg View Post
I see the code at the top of your page ... you uploaded the files to your forum root and added the code to the header template and additional.css file?
I tried again today but it drops the ads above the Navbar on the same side. I believe I have done everything as required mate, I used the rotating banner option

Last edited by Toorak Times; 05 Oct 2015 at 12:17.
Reply With Quote
  #30  
Old 06 Oct 2015, 02:57
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Do you have a link to your site so I can take a look?
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 04:25.

Layout Options | Width: Wide Color: