[Phpfreechat-svn] SF.net SVN: phpfreechat: [1180] trunk
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-09-06 15:40:35
|
Revision: 1180 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1180&view=rev Author: kerphi Date: 2007-09-06 08:39:43 -0700 (Thu, 06 Sep 2007) Log Message: ----------- New display_ping parameter used to show/hide the ping information near the phpfreechat linkback logo Modified Paths: -------------- trunk/data/public/js/pfcclient.js trunk/src/pfcglobalconfig.class.php trunk/themes/default/chat.html.tpl.php Modified: trunk/data/public/js/pfcclient.js =================================================================== --- trunk/data/public/js/pfcclient.js 2007-09-06 15:18:01 UTC (rev 1179) +++ trunk/data/public/js/pfcclient.js 2007-09-06 15:39:43 UTC (rev 1180) @@ -196,7 +196,7 @@ // calculate the ping and display it this.ping = this.last_response_time - this.last_request_time; - $('pfc_ping').innerHTML = this.ping+'ms'; + if ($('pfc_ping')) $('pfc_ping').innerHTML = this.ping+'ms'; if (cmd == "connect") { Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2007-09-06 15:18:01 UTC (rev 1179) +++ trunk/src/pfcglobalconfig.class.php 2007-09-06 15:39:43 UTC (rev 1180) @@ -370,6 +370,14 @@ * (Default value: 40)</p> */ var $short_url_width = 40; + + /** + * <p>Used to show/hide the ping information near the phpfreechat linkback logo. + * The ping is the time between a client request and a server response. + * More the ping is low, faster the chat is responding. + * (Default value: true)</p> + */ + var $display_ping = true; /** * <p>Used to hide the phpfreechat linkback logo. Modified: trunk/themes/default/chat.html.tpl.php =================================================================== --- trunk/themes/default/chat.html.tpl.php 2007-09-06 15:18:01 UTC (rev 1179) +++ trunk/themes/default/chat.html.tpl.php 2007-09-06 15:39:43 UTC (rev 1180) @@ -49,7 +49,10 @@ title="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" /> </a> <?php } ?> + +<?php if ($display_ping) { ?> <span id="pfc_ping" title="<?php echo _pfc("Ping"); ?>"></span> +<?php } ?> <div class="pfc_btn"> <img src="<?php echo $c->getFileUrlFromTheme('images/logout.gif'); ?>" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |