Mibew Messenger Community

General => Support => Topic started by: chrisb123 on November 03, 2009, 09:54:08 PM

Title: Operator pop up window rersize
Post by: chrisb123 on November 03, 2009, 09:54:08 PM
Please can you let me know the file to modify to change the size of the pop up for the operator.

Many thanks in advance Chris.
Title: Re: Operator pop up window rersize
Post by: Inspirer on November 07, 2009, 11:33:36 AM
Please can you let me know the file to modify to change the size of the pop up for the operator.

For operator:

/webim/js/source/users.js (lines 73, 80 and 86):  replace 640, 480 => your size

1. Adjust 3 lines:
gen += HtmlGenerationUtils.popupLink( (cantakenow||!canview) ? link : link+"&viewonly=true", localized[canopen ? 0 : 1], "ImCenter"+id,username, 640, 480, null);
gen += HtmlGenerationUtils.popupLink( link, localized[0], "ImCenter"+id, '<img src="'+webimRoot+'/images/tbliclspeak.gif" width="15" height="15" border="0" alt="'+localized[0]+'">', 640, 480, null);
gen += HtmlGenerationUtils.popupLink( link+"&viewonly=true", localized[1], "ImCenter"+id, '<img src="'+webimRoot+'/images/tbliclread.gif" width="15" height="15" border="0" alt="'+localized[1]+'">', 640, 480, null);

2. Recompile JavaScript (see the instructions http://mibew.org/forums/index.php?topic=329.0)
Title: Re: Operator pop up window rersize
Post by: chrisb123 on November 18, 2009, 09:31:46 AM
Thanks Inspirer,

By how much would it affect speed by not recompiling?
Title: Re: Operator pop up window rersize
Post by: Inspirer on November 23, 2009, 07:49:49 PM
About 22 Kb vs 37 Kb for operator, 15 Kb vs 26 Kb for visitor. I'm trying to get everything work as fast as possible, but it is not critical.
Title: Re: Operator pop up window rersize
Post by: rhavinga on June 17, 2011, 11:26:11 AM
There is a simpler way than recompiling Javascript. If you go into the '16*' folder and open users.js there will be an option with width='+width+', height='+height+' within onclick="this.newWindow

Then you change Width and heigh to your desired inputs