wpAdMentor prelease
wpAdMentor September 5th. 2007, 11:39amI have added a few more practical things to my Wordpress banner plugin.
First - I needed to be able to specify that a certain banner only will be allowed to show X times on the same page (read Adsense rules):
As you can see that also adds you the ability to specify for each individual banner wether they should appear on search/author archive/monthly archive as well.
Next I added a code generator:
looking like this:
So you can easily get the code which you should paste inside your post/template.
And that pretty much end the development of this release.
I will now just need to test it out live - and will publish it inĀ under the downloads page when it’s ok!
Future development: I need GeoIP! I.e show a certain banner only to, say US visitors.
September 5th, 2007 at 12:37 pm
[…] http://php.aspcode.net/wpadmentor-prelease/ […]
October 2nd, 2007 at 6:33 pm
There is a serious bug in statistics update script.
You have this:
$sql1 = “update “.$wpdb->prefix.”admentor_bannerstats set clickcount=clickcount+1 where id=$id”;
It just updates the clickcount for the id, but not bannerid.
Should be:
$sql1 = “update “.$wpdb->prefix.”admentor_bannerstats set clickcount=clickcount+1 where datum=’”.date(’Ymd’).”‘ and bannerid=$id”;