From 7d941b4605ec3d50227c69c2f6f849720765ff78 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Fri, 27 Mar 2009 18:20:45 +0000 Subject: [PATCH] comment editor --- admin/panels/entry/admin.entry.commedit.php | 1 + admin/panels/entry/admin.entry.commedit.tpl | 40 +++++++++++++++------ 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/admin/panels/entry/admin.entry.commedit.php b/admin/panels/entry/admin.entry.commedit.php index fc5e93d..9180714 100644 --- a/admin/panels/entry/admin.entry.commedit.php +++ b/admin/panels/entry/admin.entry.commedit.php @@ -32,6 +32,7 @@ class admin_entry_commedit extends AdminPanelActionValidated { $comment = comment_parse($_REQUEST['entry'], $_REQUEST['comment']); if ($comment) { $this->smarty->assign('values', $comment); + $this->smarty->append('values', array('ip_address'=>$comment['ip-address']), true); } else return PANEL_REDIRECT_DEFAULT; diff --git a/admin/panels/entry/admin.entry.commedit.tpl b/admin/panels/entry/admin.entry.commedit.tpl index 27031fa..74b5f60 100644 --- a/admin/panels/entry/admin.entry.commedit.tpl +++ b/admin/panels/entry/admin.entry.commedit.tpl @@ -10,20 +10,40 @@

-
-

+ +
+
+
+
+ +
-


-

- -


-

+
+
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
- -


+

+ id="content" rows="10" cols="74">{$values.content} +