• 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

clear chat cache

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

Post a reply
7 posts • Page 1 of 1

Postby bpk » Sat Aug 25, 2007 10:56 am

hello,
i'm using utchat with joomla and i was wondering if i can clear what was previoulsy entered?
currently, when i log in and log out and log in again, text that was previously entered still shows in the chat window.
is there a way of preventing this?
thanks.
bpk
New member
 
Posts: 7
Joined: Sat Aug 25, 2007 10:47 am
Top

Postby cls » Sat Aug 25, 2007 2:07 pm

Add the following to your configuration:

Code: Select all
$params['max_msg'] = 0;

The default value for this is 20 (lines to display when entering the chat).
cls
Member
 
Posts: 57
Joined: Sat Aug 18, 2007 10:29 pm
Location: Germany
  • Website
Top

Postby bpk » Sat Aug 25, 2007 4:30 pm

i can't seem to find that line?
is it under joomla/components/com_utchat/utchat.php?
bpk
New member
 
Posts: 7
Joined: Sat Aug 25, 2007 10:47 am
Top

Postby cls » Sat Aug 25, 2007 5:49 pm

I'm not familiar with Joomla or this component, but I had a look.
It's a bit different from the original.

Open utchat.php and add the line
Code: Select all
   $utparams['max_msg'] = 0;

after
Code: Select all
   $utparams['nick']      = iconv("ISO-8859-1", "UTF-8", $uid);

This should do it.

Don't forget to "/rehash".
cls
Member
 
Posts: 57
Joined: Sat Aug 18, 2007 10:29 pm
Location: Germany
  • Website
Top

Postby bpk » Sat Aug 25, 2007 6:19 pm

i'm sorry but i'm really new with this.
what does rehash mean? and where and what do i put in for rehash?
bpk
New member
 
Posts: 7
Joined: Sat Aug 25, 2007 10:47 am
Top

Postby cls » Sat Aug 25, 2007 9:49 pm

Have a look at the FAQ ;)

http://www.phpfreechat.net/faq.en.html#rehash
cls
Member
 
Posts: 57
Joined: Sat Aug 18, 2007 10:29 pm
Location: Germany
  • Website
Top

Postby bpk » Sat Aug 25, 2007 11:18 pm

/rehash goes into the chat area or in the php file?
bpk
New member
 
Posts: 7
Joined: Sat Aug 25, 2007 10:47 am
Top


Post a reply
7 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • 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