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

  #31  
Old 07 Oct 2015, 09:46
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Originally Posted by CAG CheechDogg View Post
Do you have a link to your site so I can take a look?
www.tooraktimes.com.au
Reply With Quote
  #32  
Old 07 Oct 2015, 23:05
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Do you have it installed on a particular style?
Reply With Quote
  #33  
Old 08 Oct 2015, 16:46
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Originally Posted by CAG CheechDogg View Post
Do you have it installed on a particular style?
No mate, a LOT of mods though
Reply With Quote
  #34  
Old 20 Jan 2016, 03:05
mangmel mangmel is offline
 
Join Date: Nov 2010
thanks..............
Reply With Quote
  #35  
Old 20 Jan 2016, 05:55
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Originally Posted by Toorak Times View Post
No mate, a LOT of mods though
I haven't looked into the entire issue but from a quick peek at your site I see a pretty severe horizontal scroll. Probably not noticeable with high res screens but noticeable on my laptop using 1920 resolution.
__________________

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

Reply With Quote
  #36  
Old 19 Apr 2016, 21:54
yjmalmsteen yjmalmsteen is offline
 
Join Date: Feb 2008
Great mod, thanks!
But can i use it without rotating option?and how?
I have to use still images there.
Thanks
Reply With Quote
  #37  
Old 20 Apr 2016, 21:01
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Originally Posted by yjmalmsteen View Post
Great mod, thanks!
But can i use it without rotating option?and how?
I have to use still images there.
Thanks
You *should* be able to with some small changes...

So take this:

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

Change to:

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

*Now the rotating .php file is no longer the background and it's just a white background .

Now take this:

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

And change it, you must add in your ad/banner codes or anything you want shown inside the div tags, here is an example:

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

The top you could paste ad/banner codes in between the div tags, on the bottom "right-banner" I simply showed a basic ahref tag wrapped around an image i.e. a clickable banner which is very simple to do, this is also an example of what you said is a "still image" but it's linked to a site .

To adjust width/height simply change the following lines:

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

To the new values i.e. if it's a 300x250 ad simply change those to that, otherwise you could use 100% value instead of 435px (if it's too big then the div wrapping this does not have height defined or rather it's not inherited etc).

Let me know if this works for you or what didn't work .
__________________
Daddy Does Dios and Figs!

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!

Last edited by TheLastSuperman; 20 Apr 2016 at 21:07.
Reply With Quote
  #38  
Old 21 Apr 2016, 05:07
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Thanks SP ..... just saw this .....
Reply With Quote
  #39  
Old 21 Apr 2016, 05:15
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by CAG CheechDogg View Post
Thanks SP ..... just saw this .....
I would be willing to automate the CSS and header template edits, and add some product settings to allow the user to define the size of the banners if you want. If you are interested, shoot me a PM with your email addy, and I will send you the revised product.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #40  
Old 23 Apr 2016, 01:38
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by MarkFL View Post
I would be willing to automate the CSS and header template edits, and add some product settings to allow the user to define the size of the banners if you want. If you are interested, shoot me a PM with your email addy, and I will send you the revised product.

Go ahead and handle business Mark ... release it for all to enjoy my Man ...
Reply With Quote
  #41  
Old 03 May 2016, 14:25
deltamarkets deltamarkets is offline
 
Join Date: Apr 2016
Hello,

We are the new oweners of a vbulletin board. I try install your mod but I m stuck in uploading the xml file. Can you or someone help me with this?
Reply With Quote
  #42  
Old 03 May 2016, 14:49
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
There is no xml file for this mod ....
Reply With Quote
  #43  
Old 03 May 2016, 16:57
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by CAG CheechDogg View Post
Go ahead and handle business Mark ... release it for all to enjoy my Man ...
I wanted you to retain authorship of this, since you put everything together. I have simply taken your work and made it into a product, where no manual template edits are needed.

The user has the option to disable it, and to define the dimensions of the banners, and the margins between the banners and the body.

Please review this, let me know of any changes you would like, and then when you are happy with it, release it as a mod rather than a template modification.
Attached Files
File Type: zip CAG Cheechdogg - Random Side Banners v1.0.zip (68.0 KB, 1 views)
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #44  
Old 03 May 2016, 21:13
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by MarkFL View Post
I wanted you to retain authorship of this, since you put everything together. I have simply taken your work and made it into a product, where no manual template edits are needed.

The user has the option to disable it, and to define the dimensions of the banners, and the margins between the banners and the body.

Please review this, let me know of any changes you would like, and then when you are happy with it, release it as a mod rather than a template modification.
Did you put the option to use this mod as well so that they could use it more easily?

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

So they could do the following?

Find this:

Code:

<div class="left-banner"></div>
<div class="right-banner"></div>

Replace with this:

Code:

<div class="left-banner"><[email protected]:[email protected]></div>
<div class="right-banner"><[email protected]:[email protected]></div>
Reply With Quote
  #45  
Old 03 May 2016, 23:17
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
No, I didn't know about that...I just used the HTML from the first post in the thread. It looks like an HTML comment, so I could simply add it to the HTML already being added, and it they need it it's there, if not it doesn't hurt anything...right?
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
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 02:31.

Layout Options | Width: Wide Color: