• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Chat Loading Window Message

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Postby waiheke » Fri Oct 29, 2010 1:45 pm

Internet Explorer can take up to 3 times longer than Firefox, Chrome, or Safari to load.

This can be disconcerting to the 50% of users who do use IE.
Add this to their loading window and they might not think it's hung - more, they know that it's okay to click refresh if need be.

In chat.js.tpl.php
Insert after the line <div id="pfc_loader">

Code: Select all
<?php
function ae_detect_ie()
{
    if (isset($_SERVER['HTTP_USER_AGENT']) &&
    (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
        return true;
    else
        return false;
}


if (ae_detect_ie()) {
$msg = "<br><i>Internet Explorer detected ...</i><br>click refresh if no entry within 1 minute";
 } else {
$msg = "<br>... Loading Chat ...";
}

?>
Last edited by waiheke on Fri Oct 29, 2010 1:46 pm, edited 1 time in total.
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top

Post a reply
1 post • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 24 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub