Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:how do I control the banners? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:how do I control the banners?
#87
carla (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
how do I control the banners? 8 Months, 1 Week ago Karma: 0  
Hello

Is there a way to control the banners in admin?
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/02 08:14 By admin. Reason: topic was ambiguous
  The administrator has disabled public write access.
#90
Dewed (User)
Administrator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:how do I control the banners? 8 Months, 1 Week ago Karma: 7  
The banner routine is admittedly pretty simple. The script already does a lot of database interaction, so I intentionally made the banner system... well, primitive, for lack of a better word.

Look in your /installdir/banners/ directory you should see a few files
like 0.html 1.html 2.html etc ..

These are the included sample banners. You can simply overwrite them, but I'd apreciate it if you left one or more in. 0.html is my own Google Adsense banner, and clicks on it are my only compensation for maintaining the script and this site.

So, copy the html for your banner, and paste it into a new .html file. Name the new HTML file with the next available number... 3.html should really be overwritten so.. name it 3.html

If you'd like to double that banner's chance of getting shown, copy 3.html to 4.html..
Want to triple it's odds? copy 4.html to 5.html

You can create as many banners as you like, just name them sequentially..

6.html, 7.html ... 218.html 219.html

If you want an ad shown more frequently than others, create multiple copies of it.

Finally, determine the highest number in the /banners directory, and enter that number
in include/config.php

So, if the highest is 12.html, change the $numbanners variable accordingly

[code]

// Set this to the number of banner files in the /banners directory.
$numbanners = "12";

[code]

On every page view, a random number between zero and $numbanners is selected, and the corresponding banner is displayed.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#101
fattymattybrewing (User)
Support Your Local Brewer
Expert Boarder
Posts: 105
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Fatty Matty Brewing Location: Southwestern Wisconsin Birthdate: 1974-11-05
Re:how do I control the banners? 8 Months, 1 Week ago Karma: 3  
I actually just added some forum content to another topic about "what can I customize int he script" which you can find here:

http://www.dew-code.com/component/option,com_fireboard/Itemid,26/func,view/id,58/catid,8/


Cheers!
 
Report to moderator   Logged Logged  
 
Lifes Too Short To Drink Crappy Beers
fattymattybrewing.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008