[Comoblog-commit] comoblog/batch comoblog_batch.php,1.9,1.10
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2005-12-15 16:50:54
|
Update of /cvsroot/comoblog/comoblog/batch In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19354/comoblog/batch Modified Files: comoblog_batch.php Log Message: as requested on the boards, ive added the code to generate a title from the body if there isnt one in the message, this is done as the post is added, however it occurs to me that this may not be the best way, ive also supplied code for the list template which just provides a title on the list screen but doesnt actually create one. Index: comoblog_batch.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/batch/comoblog_batch.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- comoblog_batch.php 11 Dec 2005 12:14:01 -0000 1.9 +++ comoblog_batch.php 15 Dec 2005 16:50:44 -0000 1.10 @@ -60,6 +60,13 @@ } } + if ( $post['post_mail_subject'] == ""){ + // need to to strip html incase we break across a tag + $title = filter_html($posts[$cnt]['post_mail_subject']); + $posts[$cnt]['post_mail_subject'] = substr($title,0,150) ."..." ; + } + + // clean up text and html if ($post['post_ctype'] == 'text/plain') $post['post_mail_body'] = clean_up_txt($post['post_mail_body'], true); |