From 802a3f96fba21dfa266e293ebeab7e4e868e2c49 Mon Sep 17 00:00:00 2001 From: bugrain Date: Wed, 6 May 2009 20:40:16 +0000 Subject: [PATCH] Enable/disable comments bug fixed Show author on list page --- e107_admin/newspost.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index 62f92ebf8..7dc818df0 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -9,8 +9,8 @@ * News Administration * * $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $ - * $Revision: 1.35 $ - * $Date: 2009-04-29 21:46:16 $ + * $Revision: 1.36 $ + * $Date: 2009-05-06 20:40:16 $ * $Author: bugrain $ */ require_once("../class2.php"); @@ -561,7 +561,8 @@ class admin_newspost - + + @@ -569,6 +570,7 @@ class admin_newspost + @@ -578,13 +580,14 @@ class admin_newspost $ren_type = array("default","title","other-news","other-news 2"); foreach($newsarray as $row) { - + $author = get_user_data($row['news_author']); // Note: To fix the alignment bug. Put both buttons inside the Form. // But make EDIT a 'button' and DELETE 'submit' $text .= " +
".LAN_NEWS_45." ".NWSLAN_40."".LAN_NEWS_50." ".LAN_NEWS_49." ".LAN_OPTIONS."
{$row['news_id']} ".($row['news_title'] ? $e107->tp->toHTML($row['news_title'], false,"TITLE") : "[".NWSLAN_42."]")."{$author['user_name']} "; $text .= $ren_type[$row['news_render_type']]; @@ -974,7 +977,10 @@ class admin_newspost
".NWSLAN_15.": - ".$frm->radio_switch('news_allow_comments', $_POST['news_allow_comments'])." + ". + $frm->radio('news_allow_comments', 0, $_POST['news_allow_comments'])."".$frm->label(LAN_ENABLED, 'news_allow_comments', 1)."  ". + $frm->radio('news_allow_comments', 1, $_POST['news_allow_comments'])."".$frm->label(LAN_DISABLED, 'news_allow_comments', 1) + ."
".NWSLAN_18."