The code on line 222 of the module should be like this:

parent.nicklist.location.href = "'. url("chatbox/nicklist", NULL, NULL, 1) . $rand .'";

With the rand after the url function. Before the url function was causing the rand variable to be urlencoded which caused the browser to not find the correct page and therefore the list didn't show up. Hope this helps. Sorry this isn't in patch form. I didn't download this from CVS.

CommentFileSizeAuthor
#3 chatbox-userlist.patch1.02 KBdarren oh

Comments

ricmadeira’s picture

It works fine! Thanks for the patch!!

alexmarkley’s picture

I too had this problem. My fix is to use the url() function correctly:

(At line 211)

$rand = 'forcerefresh=' . rand(1000, 9999);

(Instead of '&forcerefresh...')

(At line 222)

parent.nicklist.location.href = "'. url("chatbox/nicklist", $rand, NULL, 1) .'";

(Instead of putting $rand in the drupal path argument.)

Since the second argument is designed for query strings, url won't escape the query characters. :-P (Additionally, it shouldn't randomly break later on...)

If you're curious, check the url() documentation.

ttyl
--Alex Markley

darren oh’s picture

Assigned: musepwizard » darren oh
StatusFileSize
new1.02 KB

Here is an actual patch. I will review this soon.

darren oh’s picture

Status: Needs review » Fixed

Patch applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)