
pLog AdRotate v0.1 README

  AdRotate is a simple pLog plugin that will display a random ad within its
database whenever generateAdLink is called. It currently only supports banner
ads and does not allow specification of the properties of the banner ads.
  With its limitations, it is still fully supported in the pLog Admin Interface
and designed with security (XSS) as the upmost priority. This plugin will keep
track of impressions of each specific ad, and will also keep track of the click
through rate.

This can be inserted into your smarty templates very simply. The following
code is the code I use to insert it into pLog.

--
<!-- AdRotate Plugin -->
{assign var="currentAd" value=$adrotate->generateAdLink()}
<a class="plain"
  href="{$url->getBaseUrl()}/?op=adrotateRedirect&redir={$currentAd->getClickMD5()}"
  target="_blank">
  <img class="plain" src="{$currentAd->getImageUrl()}"
       alt="{$currentAd->getAltText()}"/>
</a>
<!-- End AdRotate Plugin -->
--
