![]() |
Random Side Banners Outside Main Body in Fixed Position
1 Attachment(s)
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 { Code:
<div class="left-banner"></div> |
For easier banner management you guys can use the following Mod together with this one:
https://vborg.vbsupport.ru/showthrea...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: Code:
<div class="left-banner"></div> Code:
<div class="left-banner"><!--@vbbanners:0@--></div> 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: Code:
div.left-banner { |
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?. |
Looks good. :up:
|
Quote:
Quote:
|
1 Attachment(s)
Quote:
This link on your forum redirects me to google, dont know why?. Edit - to add so do every link in that drop down, strange. |
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. |
Quote:
Sorry to take this off topic, regards :up:. |
Quote:
|
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
|
Quote:
Code:
div.left-banner { |
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?
|
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. |
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 |
Liked https://vborg.vbsupport.ru/images/icons/icon14.gif 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 :p and I know many others does at well! Keep up your good work! And God bless! By CM aka ChiNa-Man |
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. |
A link to your site ? ..
Possible conflict with what? ... Are you sure the banners are on those positions you indicated ? ... |
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. |
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 ... |
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> |
Quote:
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. |
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? |
Thanks Cheech! I was just working on this very thing! Now I don't have too. :)
|
Quote:
|
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 |
Which option did you use? A link to your site?
|
Quote:
I see the adds appearing above the header instead of beside the fixed skin |
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?
|
Quote:
|
Do you have a link to your site so I can take a look?
|
Quote:
|
Do you have it installed on a particular style?
|
Quote:
|
thanks..............
|
Quote:
|
Great mod, thanks!
But can i use it without rotating option?and how? I have to use still images there. Thanks |
Quote:
So take this: Code:
div.left-banner { Code:
div.left-banner { Now take this: Code:
<div class="left-banner"></div> Code:
<div class="left-banner"> To adjust width/height simply change the following lines: Code:
height:435px; Let me know if this works for you or what didn't work :cool:. |
Thanks SP ..... just saw this .....
|
Quote:
|
Quote:
Go ahead and handle business Mark ... release it for all to enjoy my Man ... |
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|