From 9fdee53c9a35d584de8cacd071c6608de88a18b6 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 29 Jan 2014 20:14:18 -0800 Subject: start on the ajax bits --- mod/chat.php | 5 ++++- mod/chatsvc.php | 2 ++ view/tpl/chat.tpl | 33 +++++++++++++++++++++++++++++---- 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/mod/chat.php b/mod/chat.php index 42a7808d9..b8af4c1a6 100644 --- a/mod/chat.php +++ b/mod/chat.php @@ -61,7 +61,10 @@ function chat_content(&$a) { $x = chatroom_enter($observer,$room_id,'online',$_SERVER['REMOTE_ADDR']); if(! $x) return; - $o = replace_macros(get_markup_template('chat.tpl'),array()); + $o = replace_macros(get_markup_template('chat.tpl'),array( + '$room_id' => $room_id, + '$submit' => t('Submit') + )); return $o; } diff --git a/mod/chatsvc.php b/mod/chatsvc.php index b8d2a9f69..23b95cd1c 100644 --- a/mod/chatsvc.php +++ b/mod/chatsvc.php @@ -4,6 +4,8 @@ require_once('include/security.php'); function chatsvc_init(&$a) { +//logger('chatsvc'); + $ret = array('success' => false); $a->data['chat']['room_id'] = intval($_REQUEST['room_id']); diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 6378b8776..d0f9418a0 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -8,11 +8,36 @@
-
- - + + +
+
- \ No newline at end of file + + + -- cgit v1.2.3