Advanced Search  :  Site Statistics  :  Directory  :  Web Resources  :  Forum  
    Plugins for Geeklog Geeklog Plugins    
 Welcome to Plugins for Geeklog
 Saturday, May 17 2008 @ 07:01 AM EDT

Quickie Ad Banner Hack

   
HacksI needed a method to get some banners going on one of my sites, so I tried http://www.phpadsnew.com/ which is a VERY robust system. Alas, it seemed to cause severe peformance issues at my host so I ditched it. Instead a buddy of mine came up with this cute little ditty. Feel free to expand on it.

In fact, you should since it doesn't use GL functions in any way and the DB stuff should NOT be the template code. It is currently installed at http://www.dctriclub.com Right now all it does is display the image and update the table to record how many times the image was seen. Improvements might include:
  • count the number of times some clicks the ad
  • hack a little interface to administer it for turning ads on/off, uploading files
  • use bars like the Poll result bars to show privileged people (advertisers?) how many times the ad was seen/clicked on
Here's the link to the code http://www.northredoubt.org/glbannerhack.txt Create the DB as described at the bottom. Then insert some values to point to an image you have uploaded. Finally, paste the following code block into header.thtml or into a php block (create a custom function in lib-custom.php).
 

What's Related

Story Options

Quickie Ad Banner Hack | 2 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Quickie Ad Banner Hack
Authored by: Creator on Tuesday, March 11 2003 @ 11:20 PM EST
When you say serious performance issues with phpadsnew, what do you mean?  I run two separate installs of phpadsnew with no trouble whatsoever.
 Copyright © 2008 Plugins for Geeklog
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.16 seconds