NewsFeaturesDownloadsDevelopmentSupportAbout Us
Plugin adrotate

Plugin adrotate

From LifeType Wiki


Name: adrotate

Latest version: GPL

Download link: http://prdownloads.sourceforge.net/lifetype/1.1_adrotate.zip?download

License: select your license

Author: select your author or use "The LifeType Project"

[edit] Description

AdRotate is a simple 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.

[edit] Configuration

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="/?op=adrotateRedirect&redir={$currentAd->getClickMD5()}"
  target="_blank">
  <img class="plain" src="{$currentAd->getImageUrl()}"
       alt="{$currentAd->getAltText()}"/>
</a>
<!-- End AdRotate Plugin -->

[edit] Notes

any other useful information goes here, such as hints, warnings or known problems.