vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 02-07-2005, 10:54 PM
harv harv is offline
Junior Member
 
Join Date: Dec 2004
Posts: 14
Default Random Banner ads - affiliate programs

This isn't anything I came up with per se, but I thought it might be helpful to anyone wanting to add random banners to their header. All apologies if it is a repost.

1) Get this script:

http://www.flash-here.com/downloads/randomad.html

Upload it to a folder on your site, I use a folder called adserve, and I'll use it in this example.

2) Place this code in your header template:

Quote:
<iframe marginwidth="0" marginheight="0" width="468" height="60" scrolling="no" frameborder=0 src="/adserve/randomad.php">
</iframe>
AFTER This code:

Quote:
<!--
NEW HEADER &amp; NAVBAR

Now that the nav buttons are in the
navbar template, you can stick whatever
you like into this space.

This makes it much easier for novice
admins to customize their header
template without affecting important
navigation elements.
-->
Per the instructions with the script, place a text file name ads.txt in whatever directory your randomad.php script is in. This file can be edited with notepad, vi, dosedit or whatever, and the html for EACH banner code is one line of the file, no matter how many characters long it is. (I have some really long HTML in some of mine).

Works like a dream, and changing your ads is as simple as editing a text file and re-uploading it.

Hope this helps someone - I come here for help, just trying to give back a little.I tried some more complicated solutions but this is easy and easy to maintain.

PM or email me if you want to see a demo, I don't want to appear to be spamming my site.

* The path I gave as an example is relative to the root web directory, not /forum. Depending on your layout, fluid or static, you may have to place the iframe code in a cell aligned right.

Harv

Last edited by harv; 02-07-2005 at 11:00 PM.
  #2  
Old 02-07-2005, 11:02 PM
harv harv is offline
Junior Member
 
Join Date: Dec 2004
Posts: 14
Default Re: Random Banner ads - affiliate programs

Please move this to an appropriate forum, after typing it out I put it in the wrong one
  #3  
Old 02-28-2005, 06:45 PM
dleblanc dleblanc is offline
CajunLe
 
Join Date: Dec 2004
Posts: 46
Default Re: Random Banner ads - affiliate programs

I install the hack and just what I wanted for a small board. I'll use this for now.

Thanks
  #4  
Old 09-10-2005, 09:56 AM
kellie kellie is offline
Junior Member
 
Join Date: Aug 2005
Posts: 5
Default Re: Random Banner ads - affiliate programs

I am getting "not Found" where the image should be - any suggestions? This sounds like it is exactly what I need!
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Affiliates Module [Affiliate hack needed] BoNfiRe Add-On Modules & Modifications 60 07-31-2005 06:58 AM
REQ. Module with random banner TCB Add-On Modules & Modifications 1 12-09-2004 12:27 AM
Need help with zip programs... DarknessDivine Chit Chat 3 07-22-2004 02:16 PM
Module Request: affiliate block Tristan Add-On Modules & Modifications 0 06-07-2004 12:16 PM


All times are GMT -4. The time now is 12:26 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.