[Comoblog-commit] modules/mod_latest_comments index.php,NONE,1.1 mod_latest_comments.php,NONE,1.1
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2006-02-16 23:24:24
|
Update of /cvsroot/comoblog/modules/mod_latest_comments In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32685/mod_latest_comments Added Files: index.php mod_latest_comments.php Log Message: MOD LATEST COMMENTS as request https://sourceforge.net/forum/message.php?msg_id=3580702 lists the text of the latest comments in the side bar --- NEW FILE: mod_latest_comments.php --- <?php require_once (CFG_BASE_PATH.'/modules/mod_latest_comments/include/mod_latest_comments.inc.php'); $mod_contents = ''; $latest_comments = latest_comments(10); $latest_comments_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_latest_comments/templates/mod_latest_comments.tpl.html'); if ($latest_comments) { for ($c = 0; $c < count($latest_comments); $c++) { $latest_comments[$c]['post_mail_subject'] = htmlspecialchars(strip_tags($latest_comments[$c]['post_mail_subject'])); $latest_comments[$c]['post_mail_from'] = htmlspecialchars(strip_tags($latest_comments[$c]['post_mail_from'])); $latest_comments_tpl->assign('LATEST_COMMENTS', $latest_comments[$c]); $latest_comments_tpl->parse('main.latest_comments'); } $mod_contents .= $latest_comments_tpl->parse('main'); $mod_contents .= $latest_comments_tpl->text("main"); } else { $mod_contents =""; } ?> --- NEW FILE: index.php --- |