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

dontremember_userchannels property

Post a bug fix, a new feature, a theme ...

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

Post a reply
2 posts • Page 1 of 1

Postby h4ever » Tue Jun 08, 2010 11:16 pm

New Parameter to cancel remembering of user channels ... This maybe would need to bring to end

index.php:

$params["dontremember_userchannels"] = true; // New Parameter to cancel remembering of user channels ... This maybe would need to bring to end

* * * * * * * * * * *
src/pfc_globalconfig.class

/**
* <p>Don't remember user channel when user comes on page or updates page.
* The goal is to prevent chatters leaving pages without closing the channels.
* Benefits are 1) user need not to close all channels if he has 20 rooms open...
* 2) I hope this will help to get better performance... (I want to make users not having open the rooms if they don't use them!)
* @TODO - WILL BE USERS LOGOUT FROM CHANNELS? MAYBE NEED A FIX?
* (Default value: 10)</p>
*/
var $dontremember_userchannels = true;

* * * * * * * * * * *
src/commands/connect.class (L 62 - start of block IF changed):

if ($ret)
{
if ($c->dontremember_userchannels == false) { if ($c->dontremember_userchannels) $chanlist = (count($u->channels) == 0) ? $c->channels : $u->getChannelNames(); }
else $chanlist = $c->channels;
for($i = 0 ; $i < count($chanlist) ; $i++)
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby h4ever » Sun Jun 13, 2010 7:26 pm

2 errors:

1) Nick name list not showed :-(
2) I need to close all channels after F5 (or just reopen index.php)
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top


Post a reply
2 posts • Page 1 of 1

Return to Contributions (v1.x)

Who is online

Users browsing this forum: No registered users and 3 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