1
baraxas
XOOPS 2.0.10 Beta 2 who's online block bug + fix
  • 2005/3/28 1:10

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


Clicking on "more" to see a list of online users open the popup but in the parent page appears the message:

[object Window]

and the url point to

javascript:openWithSelfMain('http://localhost/~franz/xoops-2.0.9.2/html/misc.php?action=showpopups&type=online','Online',420,350);

both with fiefox and IE.
Solution: modify the file xoops.js in include dir, at line 32 substitute this:

function openWithSelfMain(url,name,width,height) {

    var 
options = "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no";



    var 
new_window = window.open(url, name, options);

    
window.self.name = "main";

    
new_window.focus();

    return 
new_window;

}

with this:

function openWithSelfMain(url,name,width,height) {

    var 
options = ",width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no";



    
new_window = window.open(url, name, options);

    
window.self.name = "main";

    
new_window.focus();

}