Index: C:/Repository/labs.bloggingsystems.com/implementations/cms.bloggingsystems.com/sites/all/modules/chatblock/chatblock.module
===================================================================
--- C:/Repository/labs.bloggingsystems.com/implementations/cms.bloggingsystems.com/sites/all/modules/chatblock/chatblock.module	(revision 538)
+++ C:/Repository/labs.bloggingsystems.com/implementations/cms.bloggingsystems.com/sites/all/modules/chatblock/chatblock.module	(working copy)
@@ -229,7 +229,7 @@
     return $output;
   }
   if (user_access('view chat')) {
-    $output = '<iframe name="chatblock" src="'.$url.'/chatblock/view" style="display: block; height: 200px; width: 200px; overflow-x: hidden;">';
+    $output = '<iframe name="chatblock" src="'. base_path() .'chatblock/view" style="display: block; height: 200px; width: 200px; overflow-x: hidden;">';
     $output .= '</iframe>';
     if (user_access('join chats')) {
       $output .= drupal_get_form('chatblock_chat_form');
@@ -274,7 +274,7 @@
     $output = "<head>\n";
     $output .= "<title>Chatbox Iframe</title>\n";
     $output .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"$url/css/chatblock.css\" />\n";
-    $output .= "<script type=\"text/javascript\" src=\"". base_path() ."/misc/jquery.js\"></script>\n";
+    $output .= "<script type=\"text/javascript\" src=\"". base_path() ."misc/jquery.js\"></script>\n";
     $output .= "<script type=\"text/javascript\">\n";
     $output .= "function chatboxInitScroll() {
                   if (document.body.scrollHeight){
@@ -287,7 +287,7 @@
                 function chatboxGetMessage() {
                     var messageid = document.getElementById('chatblocklastmessage').innerHTML;
                     var message = 'messageid=' + messageid + '&chatboxtoken=' + Math.random();
-                    $.ajax({ type: 'POST', url: '$url/chatblock/view', data: message, success: chatblockResponse });
+                    $.ajax({ type: 'POST', url: '". base_path() ."chatblock/view', data: message, success: chatblockResponse });
                 }
 
                 function chatblockResponse(text) {
@@ -337,7 +337,7 @@
  *  This function filters the messages and adds the smileys and extra if any.
  */
 function chatblock_filter_message($message) {
-  $url = drupal_get_path('module', 'chatblock');
+  $url = base_path() . drupal_get_path('module', 'chatblock');
   $message = chatblock_find_url($message);
   $message = preg_replace("/>\:>/" , '<img src="'.$url.'/images/twisted.gif" alt=":twisted:" />', $message);
   $message = preg_replace("/\?\:\)/" , '<img src="'.$url.'/images/think.gif" alt=":think:" />', $message);
@@ -471,7 +471,7 @@
 
 function chatblock_help_page() {
   $output = '';
-  $url = drupal_get_path('module','chatblock');
+  $url = base_path() . drupal_get_path('module','chatblock');
   if ($url == '') {
     $output = 'In order for this page to be useful for your users, enter the base_url at admin/settings/chatblock';
     return $output;
