Thanks to a lot of very positive feedback and very interesting suggestions, I've updated the uberawesome Who Sees Ads plugin with even more uberawesome features and improvements.
New Display Rules
Who Sees Ads lets you decide under which circumstances a visitor will see an ad (or anything like a greeting, text, a "Subscribe to my feed" banner, etc). As of version 1.2, the conditions that can trigger content to display or not are:
- If Visitor comes from a search engine, display / don't display
- If Visitor is a regular reader, display / don't display
- If Post is older than XX days, display / don't display
- If Visitor is logged in, display / don't display
- If Date is between specified date interval, display / don't display
- If Ad has been viewed less than XX times, display / don't display
- If All previous conditions fail, try another context
- If Any condition, display / don't display
- If some PHP code, display / don't display
I've also gathered a few example display rules to help you create simple, complex or totally crazy rules.
Download Who Sees Ads now!
Complete Changelog
1.0
Initial release. Won 4th spot at WordPress Plugin Competition 2007 \o/
1.01
fixed: small glitch with PHP < 5.x preventing a cookie to be set (thanks Andrew Flusche)
1.2
improved: overall security against utterly improbable XSS attempt
added: 'Logged in users' as a context condition
added: 'Between 2 dates' as a context condition
added: 'Number of views' as a context condition
added: 'Fall back to another context' as a context condition
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/fo
One word: awesome. This is an amazing plugin, thank you so much!
Perhaps I just don't understand the part about context. Am I to copy the entire code that generates the ad into the Ad Code box? (That is what I've been doing). Is this working with Wordpres 2.2.3? With widgets?
Thanks.
Greg » yes, obviously the "Ad code" textarea is for the ad code (for example, the javascript for Adsense). Yes, it works on 2.2.3. It doesn't care if your blog uses widgets or not, the plugin does not use widgets. If your context rule seems to fail, it's probably because you screwed the display rules. When an ad is not displayed, an HTML comment is printed in the page so you can't see why it didn't display (ad not found, display rules tell not to display, etc…)