[pLog-svn] r3200 - plugins/trunk/adrotate

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Apr 6 21:22:08 GMT 2006


Author: oscar
Date: 2006-04-06 21:22:08 +0000 (Thu, 06 Apr 2006)
New Revision: 3200

Modified:
   plugins/trunk/adrotate/README
   plugins/trunk/adrotate/pluginadrotate.class.php
Log:
adrotate plugin working and tested in 1.1.


Modified: plugins/trunk/adrotate/README
===================================================================
--- plugins/trunk/adrotate/README	2006-04-06 21:00:42 UTC (rev 3199)
+++ plugins/trunk/adrotate/README	2006-04-06 21:22:08 UTC (rev 3200)
@@ -16,7 +16,7 @@
 <!-- AdRotate Plugin -->
 {assign var="currentAd" value=$adrotate->generateAdLink()}
 <a class="plain"
-  href="/?op=adrotateRedirect&redir={$currentAd->getClickMD5()}"
+  href="{$url->getBaseUrl()}/?op=adrotateRedirect&redir={$currentAd->getClickMD5()}"
   target="_blank">
   <img class="plain" src="{$currentAd->getImageUrl()}"
        alt="{$currentAd->getAltText()}"/>

Modified: plugins/trunk/adrotate/pluginadrotate.class.php
===================================================================
--- plugins/trunk/adrotate/pluginadrotate.class.php	2006-04-06 21:00:42 UTC (rev 3199)
+++ plugins/trunk/adrotate/pluginadrotate.class.php	2006-04-06 21:22:08 UTC (rev 3200)
@@ -22,7 +22,7 @@
 			$this->PluginBase();		
 		
       /*setup basic information */
-			$this->id = "AdRotate";
+			$this->id = "adrotate";
 			$this->desc = "Allows site admins to display and maintain simple ad campaigns on their pLog site";
 			$this->author = "woodzy";
 			$this->locale = Array();				
@@ -35,10 +35,7 @@
 			$this->registerAdminAction( "adrotateViewStats", "AdminAdRotateViewStats" );
 			$this->registerAdminAction( "adrotateAddAd", "AdminAdRotateAddAdAction" );			
 			$this->registerAdminAction( "adrotateRemoveAd", "AdminAdRotateRemoveAdAction" );
-      $this->registerBlogAction( "adrotateRedirect", "AdRotateRedirectAction" );
-			
-			/* seems to be a good idea... check make sure table is there */
-			$this->install();
+            $this->registerBlogAction( "adrotateRedirect", "AdRotateRedirectAction" );
 		}
 		
 		/**



More information about the pLog-svn mailing list