• 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

Users constantly timeout without being notified or aware of

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

Post a reply
6 posts • Page 1 of 1

Postby cheese » Sun Mar 27, 2011 3:27 am

Hi,

I'm having a real issue with users constantly timing out, sometimes without any notification. Once they finally realize they are timed out, they try to come back in only to get a "nickname not allowed" error.

This is a huge problem for us. I've tried upping the timeout limit (added like 3 zeros to the line!) but still no joy. Is there any way to address this? Anyone else have this problem?

Thanks in advance for any light anyone can shed on this problem. :)
cheese
New member
 
Posts: 4
Joined: Thu Mar 24, 2011 5:28 am
Top

Postby re*s.t.a.r.s.*2 » Sun Mar 27, 2011 6:34 pm

can you place you index code here, between the code tag...

also your version and a link to the chat.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby cheese » Sun Mar 27, 2011 7:45 pm

Code: Select all
<?php
require_once('./login/functions.php');
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
// we get from function IsAuthorized() the nick that the session holds
// dont discriminate between both guest and registered.
if(IsAuthorized()){$phpfreechatnick=IsAuthorized();}else{header('Location:./login/login.php');}
$params = array();
$params["title"] =$ChatTitle;
$params["language"] = $lenguage;
$params['channels']=$ChatChannel;
$params["nick"] =$phpfreechatnick;  // setup the intitial nickname
if(!isset($_SESSION['guestlogin']) && ($phpfreechatnick == $administrator)){$params["isadmin"] = TRUE;}
$params["height"] = "$ChatHeight.px";
$params["frozen_nick"] =$frozen_nick;
$params["max_nick_len"] = $maxnicklen;
$params["max_msg"] = $maxmessage;
$params["max_displayed_lines"] = $maxdisplaylines;
$params["short_url"] = $shorturl;
$params["short_url_width"] = $shorturlwidth;
$params['clock'] = $showclock;
$params['theme']= $ChatTheme;
$params['firstisadmin'] =FALSE;
$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params['skip_proxies'] = array('censor');
$params['skip_proxies'] = array('noflood');
$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title><?php echo $params["title"]; ?></title>
  <link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="./login/login.css" /> 
 </head>
 <body>

<div class="header">
      <img alt="phpFreeChat" src="style/logo.gif" class="logo2" />
</div>

<div class="menu">
      <div style="background-color:#669933;">
     <p class="sub title"><?php echo $phpfreechatnick; ?></p>
     <?php if(!isset($_SESSION['loggeduser'])){
     echo "<h4 class="w-h">Welcome $phpfreechatnick</h4>";
    echo '<p class="w-p">You are in the chat as guest.</p>';
    echo '<p class="w-p">Please <a href="./login/login.php" onclick="pfc.connect_disconnect()">Login</a></p>';
    }else{
    echo "<h4 class="w-h">Welcome $phpfreechatnick</h4>";
    echo '<p class="w-p">Thank you enjoy the chat.. <a href="./login/login.php" onclick="pfc.connect_disconnect()" >Logout</a></p>';
    }
    ?>
     </div>
      <ul>
        <li class="sub title">General</li>
        <li>
          <ul class="sub">
            <li class="item">
              <a href="">Demos</a>
            </li>
            <?php if (file_exists(dirname(__FILE__)."/checkmd5.php")) { ?>
            <li>
              <a href="">Check md5</a>
            </li>
            <?php } ?>
            <!--
            <li class="item">
              <a href="admin/">Administration</a>
            </li>
            -->
          </ul>
        </li>
        <li class="sub title">Documentation</li>
        <li>
          <ul>
            <li class="item">
              <a href="">Overview</a>
            </li>
            <li class="item">
              <a href="">Quickstart</a>
            </li>
            <li class="item">
              <a href="">Parameters list</a>
            </li>
            <li class="item">
              <a href="">FAQ</a>
            </li>
            <li class="item">
              <a href="">Advanced configuration</a>
            </li>
            <li class="item">
              <a href="">Customize</a>
            </li>
          </ul>
        </li>
      </ul>
      <p class="partner">
        <a href="http://www.phpfreechat.net"><img alt="phpfreechat.net" src="style/logo_88x31.gif" /></a><br/>
      </p>
</div>

<div class="content">
  <?php $chat->printChat(); ?>
</div>

<div class="footer">
  <span class="partners">phpFreeChat partners:</span>
  <a href="">jeux gratuits</a> |
  <a href="">jeux flash</a> |
  <a href="">pronofun</a> |
  <a href="">areno</a> |
  <a href="">micropolia</a> |
  <a href="">zeitoun</a> |
  <a href="">federation</a>
</div>
   
</body></html>

Version is 1.3

I've been asked not to link to it (it's private and meant for just a few people). I know that sounds silly, but it's what they asked me to do.
cheese
New member
 
Posts: 4
Joined: Thu Mar 24, 2011 5:28 am
Top

Postby re*s.t.a.r.s.*2 » Sun Mar 27, 2011 8:02 pm

Ok,

This should not be like so :
$params['skip_proxies'] = array('censor');
$params['skip_proxies'] = array('noflood');

should be:
$params['skip_proxies'] = array('censor','noflood');

rehash the chat and see if works..

now you need to put the settings.php for me to see whats there, if it doesn't work..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby cheese » Sun Mar 27, 2011 8:56 pm

Thanks again for your help!

I changed that and am testing to see if the problem keeps happening (although we had this problem before I added that value). I hope it works!

Here's the settings.php in case it doesn't:

Code: Select all
<?php
/**
* Created specially for phpfreechat, forviden the use in other project without explicit permition.
* This is the Database and chat settings.
* Mininimun username length, Maximun username length,Maximun username chars
* Minimun password length, guest login (differentiated by prefix []).
* Created by Neu Valle Aka UTAN, RE*S.T.A.R.S.*2 emails:vcomputadoras@yahoo.com, utan@radioscatrachas.info.
* If you like the script, I only ask to put a link back to my sites radioscatrachas.info, vcomputadoras.com
* Minimun mysql user privileges are: SELECT, CREATE, INSERT, UPDATE, DELETE, FILE
*/
   
    // N_V- Database information make sure is correct or will get you a connection error..
             $hostServer="localhost"; // server address ussualy localhost.
             $MysqlUser="censor";  // mysql username.
             $MysqlPass="censor"; // the password for the mysql user.
             $DataBaseName="censor";// N_V- please change it to the databasename you wanna use
             $connect= mysql_connect($hostServer,$MysqlUser,$MysqlPass);
         
   // N_V- here goes the settings to thight up the registration and login form
   
             $guestlogin=FALSE;// N_V- Set it as FALSE to disable the guest login.
             $MinUserlength=4;// N_V- Minimun quantitie of characters for username var
             $MaxUserlength=20;// N_V-Maximun length of characters for username var
             $MinPasslength=4;// N_V- Minimun password length, more characters more secured..
             $question=TRUE; // TO show the for html , true or false
             $clanText="Enter the code";// to tell them to answer
             $clanAnwser="censor";// here the secret question..
         
   // N_V- This are some setting for the chat , very basic stuff and needs to rehash the chat /rehash
   
            $administrator=""; // N_V-set the default admin, change name to the one registered.
              $lenguage=""; // set the lenguage of the chat, example es_ES empty is the default.
              $ChatTitle="censor"; // N_V-set the in chat title.
             $ChatTheme="msn"; // themes are: msn,blune,cerutti,green,phoenity,phpbb2,zilveer
            $ChatChannel=array('Chat'); // N_V- set the name of the room put it between ('hello,room')
                  $shorturl=TRUE; // makes links shorter in the chat room, TRUE or FALSE
            $frozen_nick=TRUE; // N_V- set it to true to enable it and false to disable it.
              $showclock=TRUE; // show the clock in chat TRUE or false.
             $maxnicklen=20; // N_V- Set the nick length for the chat.
             $maxmessage=150; // N_V- show previous chat message before you went to chat.
         $maxdisplaylines=150; // N_V- maximun lines of messages that will be shown in the chat.
              $ChatHeight=400; // N_V- set the chat height must be set integrer without "px".
          $shorturlwidth=25; // define the width of the link must be an integrer.
           $params['admins'] = array('censored'  => 'censored',
                                                    'censored' => 'censored');
                          $params['skip_proxies'] = array('noflood');
                                                    
    // N_V- login form text naming Settings
   
             $lftitle="Login";
             $lfH5title="Knock three times...";
             $lfnick="NickName";
          $lfpass="Password";
          $lfguest="Enter chat as guest?";
             $lfp='<p><a href="./register.php">Register</a></p>';
         
    /* This variable is set in both forms*/
   
  // commented out because this image doesn't display and I don't want it at all - $phpfreechatlogo='<img class="phpfreechatlogo"       //src="../style/logo2_80x15.png" />';
         
    // N_V- registration text form naming Settings
   
             $rftitle="Registration";
             $rfH5title=" registration";
             $rfnick="*NickName";
            $rfpass="*Password";
            $rfrpass="*Re/type Pass";
             $rfmail="*Email";
           $rfrfield="<p>*Required Fields</p>";
             $rfp='<p><a href="./login.php">Log in</a></p>';
   
?>
Last edited by cheese on Sun Mar 27, 2011 9:05 pm, edited 1 time in total.
cheese
New member
 
Posts: 4
Joined: Thu Mar 24, 2011 5:28 am
Top

Postby re*s.t.a.r.s.*2 » Sun Mar 27, 2011 9:44 pm

This
$params['admins'] = array('censored' => 'censored',
'censored' => 'censored');
$params['skip_proxies'] = array('noflood');

are not intended to go in settings.php they must go below the $params= array();
in the index.php not in settings.php..

please fix that and see if that make any difference..
don't forget to rehash.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 30 guests

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