Updated for 1.1.6 compatibility default tip
authorDan
Fri, 29 May 2009 14:36:51 -0400
changeset 1 f7b24c744747
parent 0 db23957ad1c7
Updated for 1.1.6 compatibility
plugins/ajim/server.php
plugins/ajim/shoutbox.css
plugins/ajim/shoutbox.js
--- a/plugins/ajim/server.php	Sun Jan 11 21:38:42 2009 -0500
+++ b/plugins/ajim/server.php	Fri May 29 14:36:51 2009 -0400
@@ -81,6 +81,7 @@
         while ( $row = $db->fetchrow() )
         {
           $row['rank_info'] = $session->get_user_rank($row['user_id']);
+          $row['rank_info']['rank_title'] = $lang->get($row['rank_info']['rank_title']);
           $row['message_html'] = RenderMan::render($row['message']);
           $row['human_time'] = enano_date('n/j, g:ia', $row['message_time']);
           $messages[] = $row;
@@ -119,6 +120,8 @@
           ));
       }
       
+      $content = RenderMan::preprocess_text($content, true, false);
+      
       $now = time();
       $content_db = $db->escape($content);
       $name_db = $db->escape($name);
--- a/plugins/ajim/shoutbox.css	Sun Jan 11 21:38:42 2009 -0500
+++ b/plugins/ajim/shoutbox.css	Fri May 29 14:36:51 2009 -0400
@@ -63,12 +63,16 @@
   color: #aa3000;
 }
 
-div.ajim_messagehead {
+div.ajim_messagehead, div.ajim_messagefoot {
   clear: both;
   border-bottom: 1px solid #c8c8c8;
   margin: 3px 0;
 }
 
+div.ajim_messagefoot {
+  border-bottom-color: #d8d8d8;
+}
+
 div.ajim_timestamp {
   color: #aaaaaa;
   font-style: italic;
--- a/plugins/ajim/shoutbox.js	Sun Jan 11 21:38:42 2009 -0500
+++ b/plugins/ajim/shoutbox.js	Fri May 29 14:36:51 2009 -0400
@@ -21,7 +21,7 @@
 window.ajim_send_request = function(request)
 {
   request = ajaxEscape(toJSONString(request));
-  ajaxPost(makeUrlNS('Special', 'AjimJson'), 'r=' + request, function()
+  ajaxPost(makeUrlNS('Special', 'AjimJson'), 'r=' + request, function(ajax)
     {
       if ( ajax.readyState == 4 && ajax.status == 200 )
       {
@@ -34,7 +34,7 @@
         response = parseJSON(response);
         ajim_handle_response(response);
       }
-    });
+    }, true);
 }
 
 window.ajim_handle_invalid_json = function(response)