Un nuovo plugin! A new plugin! ~ Obsolete
Invece di studiare per i prossimi esami, oggi ho dedicato l’intera giornata a sviluppare un nuovo plugin per plog, che e` gia` in azione e mostra le cose alle quali mi sto dedicando attualmente. Il plugin si chiama currentlyAddictedTo ed e` liberamente scaricabile cliccando qui.
Attenzione! Il plugin funziona solamente per blog monoutente! La versione 0.2 correggera` il baco e sara` disponibile a breve.
Instead of studying semantics and compilers for my next exams, I spent my whole day coding the new plugin you can see in action here on the left. It shows things “I am currently addicted to”. The plugin is downloadable by clicking here (The plugin is language-independent for the presentation part. The configuration is in English).
Attention! This plugin is only for single-user blogs! Version 0.2 will correct this bug. It will be available in a few days.



Tried installing your plugin, think I found a bug. On the items.php page, when you first start using the pluging, the $result object is null since there are no items returned from the query (an if $result != null fixed the error).
Also, in the else if($_REQUEST['subop'] == “items”) { in the class, there are references to a posted variable catFiler (it should be catFilter, with a T)
And the getItems function has multiple problems with the sql and refernces to $catid instead of $catId, so here’s my fix:
function getItems($catId, $expired) {
$catId = (int)$catId;
$sql = “SELECT * FROM {$this->dbPrefix}currentlyAT_items LEFT JOIN {$this->dbPrefix}currentlyAT_categories USING (cat_id)”;
$where = “WHERE”;
if($catId != 0) {
$sql .= “$where {$this->dbPrefix}currentlyAT_items.cat_id = $catId”;
$where = ” AND “;
}
if(!$expired)
$sql .= ” $where end_date IS NULL”;
else
$sql .= ” $where end_date IS NOT NULL”;
return $this->db->Execute($sql);
}
And the code for the category select box is commented out.