? loadShouts_in_subdir.patch
Index: shoutbox-form.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/shoutbox/shoutbox-form.js,v
retrieving revision 1.3.2.4
diff -u -p -r1.3.2.4 shoutbox-form.js
--- shoutbox-form.js	19 Jul 2007 07:12:37 -0000	1.3.2.4
+++ shoutbox-form.js	30 Jul 2007 19:12:28 -0000
@@ -89,7 +89,7 @@ Drupal.shoutbox.startTimer = function(de
  * Reloads all shouts from the server.
  */
 Drupal.shoutbox.loadShouts = function() {
-	$("#shoutbox-posts").load("/shoutbox/js/view");
+	$("#shoutbox-posts").load(Drupal.shoutbox.baseUrl + "shoutbox/js/view");
 }
 
 /**
@@ -130,6 +130,7 @@ if (Drupal.jsEnabled) {
 			Drupal.shoutbox.defaultNick = (shoutboxSettings['defaultNick']);
 			Drupal.shoutbox.defaultMsg = (shoutboxSettings['defaultMsg']);
 			Drupal.shoutbox.defaultUrl = (shoutboxSettings['defaultUrl']);
+			Drupal.shoutbox.baseUrl = (shoutboxSettings['baseUrl']);
 			Drupal.shoutbox.attachForm();
 			Drupal.shoutbox.attachShoutAddForm();
 			if( shoutboxSettings['refreshDelay'] > 0) {
Index: shoutbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/shoutbox/shoutbox.module,v
retrieving revision 1.18.2.5
diff -u -p -r1.18.2.5 shoutbox.module
--- shoutbox.module	19 Jul 2007 07:12:37 -0000	1.18.2.5
+++ shoutbox.module	30 Jul 2007 19:12:29 -0000
@@ -770,6 +770,7 @@ function _shoutbox_get_view() {
                 .', defaultNick : "' . $default_nick
                 .'", defaultMsg : "' . $default_msg
                 .'", defaultUrl : "' . $default_url
+                .'", baseUrl : "'    . base_path()
                 .'"} ','inline');							
   
       // -----------------------
