Hello,<br> I was seeing that this plugin was not generating the tagcloud when new posts were added. The last modification date of the tagcloud cache file was May 11th.<br><br> This the register() method of this plugin just loads whether it is enabled. It looks like register had not been called before processing the events.
<br><br> I added the call to register() to make sure the enabled setting was loaded. This is the same calling pattern that is used by other plugins (i.e. blogtimes, twitter.)<br><br> It may be "wrong" to have to explicitly call register(), and if that is the case, we should look and see why register is not being called before the events are processed.
<br><br>--Paul<br><br><br><br><div><span class="gmail_quote">On 7/26/07, <b class="gmail_sendername">Jon Daley</b> <<a href="mailto:plogworld@jon.limedaley.com">plogworld@jon.limedaley.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There must be something I still am not understanding. Plugins<br>shouldn't have to call register manually, should they?<br><br>On Thu, 26 Jul 2007, <a href="mailto:pwestbro@devel.lifetype.net">pwestbro@devel.lifetype.net
</a> wrote:<br><br>> Author: pwestbro<br>> Date: 2007-07-26 00:26:25 -0400 (Thu, 26 Jul 2007)<br>> New Revision: 5731<br>><br>> Modified:<br>> plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
<br>> Log:<br>> Fixed a problem were tagclouds were not being generated<br>><br>><br>> Modified: plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php<br>> ===================================================================
<br>> --- plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php 2007-07-25 22:01:03 UTC (rev 5730)<br>> +++ plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php 2007-07-26 04:26:25 UTC (rev 5731)
<br>> @@ -28,7 +28,7 @@<br>> lt_include( PLOG_CLASS_PATH."class/database/db.class.php" );<br>> $this->db =& Db::getDb();<br>> $this->id = "tagcloud";
<br>> - $this->version = "20070511";<br>> + $this->version = "20070725";<br>><br>> $this->locales = Array("en_UK");<br>><br>> @@ -94,7 +94,7 @@
<br>> function process( $eventType, $params )<br>> {<br>> $validEvent = false;<br>> -<br>> +<br>> // Looking for EVENT_POST_POST_ADD, EVENT_POST_POST_UPDATE, EVENT_POST_POST_DELETE
<br>> // or EVENT_POST_ADMIN_PURGE_TEMP_FOLDER (if defined)<br>> if ( $eventType == EVENT_POST_POST_ADD ||<br>> @@ -110,12 +110,15 @@<br>> {<br>> return true;
<br>> }<br>> +<br>> + // Load all of the settings for this blog<br>> + $this->register();<br>><br>> if(!$this->isEnabled())<br>> {
<br>> return true;<br>> }<br>> -<br>> +<br>> // Update the Blogtime png<br>> $this->createCloud();<br>><br>><br>> _______________________________________________
<br>> pLog-svn mailing list<br>> <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>> <a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn
</a><br>><br><br>--<br>Jon Daley<br><a href="http://jon.limedaley.com/">http://jon.limedaley.com/</a><br><br>By swallowing evil words unsaid, no one has ever harmed his stomach.<br>-- Winston Churchill<br>_______________________________________________
<br>pLog-svn mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote>
</div><br>