• 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

How to clear history

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

Post a reply
5 posts • Page 1 of 1

Postby augsburger » Tue Dec 19, 2006 7:32 pm

How might I regularly remove the chat history from a channel, so that future users or connections will start fresh?

(We use the chat intermittently, and do not want to see history from previous sessions.)

Thanks.
augsburger
New member
 
Posts: 3
Joined: Tue Dec 19, 2006 7:26 pm
Top

Postby phpfreechat » Tue Dec 19, 2006 8:24 pm

Currently this is not possible. But a new command should be fesable. Feel free to contribute.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby theworld » Wed Dec 27, 2006 1:12 am

Hello,

I have cleared older messages by deleting files in
/data/private/chat/system directory/channelid-to-msg/room-directories/

Typically, the files use sequentially numbered filenames. It should be easy for me to develop a script or a cron to remove these files. I hope this file removal will not cause problems later? What other files might be affected because of this?

Mine is a new installation. So far everything seems to be fine. I am still poring over the source code, but so far I like the application. Thank You.
theworld
Member
 
Posts: 10
Joined: Wed Dec 27, 2006 12:54 am
Top

Postby bitcloud » Wed May 02, 2007 7:14 am

so it's not at all possible to manually clear the chat history kerphi
bitcloud
New member
 
Posts: 9
Joined: Wed Apr 04, 2007 4:54 pm
Top

Postby blazevic » Sun May 13, 2007 7:20 pm

$ct =& pfcContainer::Instance();
$ct->rmMeta('channelid-to-msg'); //óäàëÿåì âñå ñîîáùåíèÿ

Make new command, for example based on commands/clear.class.php and add this code
Notice: this code will remove all message in all channels
blazevic
New member
 
Posts: 8
Joined: Tue May 01, 2007 2:54 pm
Location: Russia
  • Website
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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