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 |
#12
|
||||
|
||||
Quote:
Code:
div.left-banner { display:block; height:435px; width:140px; position:fixed; left:5px; top:50px; z-index:-1000 } div.right-banner { display:block; height:435px; width:140px; position:fixed; right:5px; top:50px; z-index:-1000; } |
#13
|
||||
|
||||
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?
|
#14
|
||||
|
||||
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:
https://vborg.vbsupport.ru/showthrea...mages&page=137 If you need help installing it or if you are still having problems let me know. |
#15
|
||||
|
||||
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 |
#16
|
|||
|
|||
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 |
Благодарность от: | ||
CAG CheechDogg |
#17
|
|||
|
|||
Quote:
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"><!--@vbbanners:0@--></div> <div class="right-banner"><!--@vbbanners:1@--></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. |
#18
|
||||
|
||||
A link to your site ? ..
Possible conflict with what? ... Are you sure the banners are on those positions you indicated ? ... |
#19
|
|||
|
|||
Quote:
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. |
#20
|
||||
|
||||
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 ... |
#21
|
||||
|
||||
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> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|