The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Random Side Banners Outside Main Body in Fixed Position Details »» | ||||||||||||||||||||||||||
Random Side Banners Outside Main Body in Fixed Position
Developer Last Online: Jul 2023
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. Code:
div.left-banner { background:url(left_banner_rotate.php); background-repeat: no-repeat; display:block; height:435px; width:140px; position:fixed; left:5px; top:50px; } div.right-banner { background:url(right_banner_rotate.php); background-repeat: no-repeat; display:block; height:435px; width:140px; position:fixed; right:5px; top:50px; } Code:
<div class="left-banner"></div> <div class="right-banner"></div> Download Now
Screenshots
Show Your Support
|
5 благодарности(ей) от: | ||
aaronhaul, ChiNa, Max Taxable, RichieBoy67, Toorak Times |
Comments |
#32
|
||||
|
||||
|
#33
|
||||
|
||||
Do you have it installed on a particular style?
|
#34
|
||||
|
||||
No mate, a LOT of mods though
|
#35
|
|||
|
|||
thanks..............
|
#36
|
||||
|
||||
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.
|
#37
|
|||
|
|||
Great mod, thanks!
But can i use it without rotating option?and how? I have to use still images there. Thanks |
#38
|
||||
|
||||
Quote:
So take this: Code:
div.left-banner { background:url(left_banner_rotate.php); background-repeat: no-repeat; display:block; height:435px; width:140px; position:fixed; left:5px; top:50px; } div.right-banner { background:url(right_banner_rotate.php); background-repeat: no-repeat; display:block; height:435px; width:140px; position:fixed; right:5px; top:50px; } Code:
div.left-banner { background:#ffffff; display:block; height:435px; width:140px; position:fixed; left:5px; top:50px; } div.right-banner { background:#ffffff; display:block; height:435px; width:140px; position:fixed; right:5px; top:50px; } Now take this: Code:
<div class="left-banner"></div> <div class="right-banner"></div> Code:
<div class="left-banner"> NEW CODE HERE IF ADS OR BANNERS INCLUDING Google Ads/Ebay Partnership Ads/Openx or Revive Ad Server codes go HERE. </div> <div class="right-banner"> <a href="www.vbulletin.org" target="_blank"><img src="images/mybannerimage.png" alt="My Banner Title" /></a> </div> To adjust width/height simply change the following lines: Code:
height:435px; width:140px; Let me know if this works for you or what didn't work . |
2 благодарности(ей) от: | ||
CAG CheechDogg, MarkFL |
#39
|
||||
|
||||
Thanks SP ..... just saw this .....
|
2 благодарности(ей) от: | ||
MarkFL, TheLastSuperman |
#40
|
||||
|
||||
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.
|
3 благодарности(ей) от: | ||
CAG CheechDogg, KevinL, TheLastSuperman |
#41
|
||||
|
||||
Quote:
Go ahead and handle business Mark ... release it for all to enjoy my Man ... |
Благодарность от: | ||
TheLastSuperman |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|