• 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

Personal chat room for each site page.

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

Post a reply
7 posts • Page 1 of 1

Postby webgeist » Thu Dec 02, 2010 10:39 pm

Hi.

I am using phpfreechat plugin for wordpress. I am trying to create for each site page their own chat room (depending from url). I have found that solution:

on each page I set:
$my_input['serverid'] = md5($page_url);
$my_input['channelname'] = $page_url;
$my_input['channels'] = array($page_url);

and then:
update_option('phpfreechat',$my_input);

It works fine, but not in firefox. In Firefox after updating chat option 'channels', chat has no those options that I set. For example: I set $my_input['channels'] = array('page2'), but if I get chat options I will see 'pag3'. This problem only in firefox, Opera and Crhome works fine.

Can you tell what the cause of this strange behavior? And how personal chat rooms can be done?
webgeist
New member
 
Posts: 3
Joined: Thu Dec 02, 2010 9:49 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Dec 03, 2010 12:23 am

webgeist wrote:Hi.

I am using phpfreechat plugin for wordpress. I am trying to create for each site page their own chat room (depending from url). I have found that solution:

on each page I set:
$my_input['serverid'] = md5($page_url);
$my_input['channelname'] = $page_url;
$my_input['channels'] = array($page_url);

and then:
update_option('phpfreechat',$my_input);

It works fine, but not in firefox. In Firefox after updating chat option 'channels', chat has no those options that I set. For example: I set $my_input['channels'] = array('page2'), but if I get chat options I will see 'pag3'. This problem only in firefox, Opera and Crhome works fine.

Can you tell what the cause of this strange behavior? And how personal chat rooms can be done?

Put it on sessions and see if that makes it work, PHPFREECHAT don't like POST and GET global..
Hope I am on the right track
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 webgeist » Sat Dec 04, 2010 9:22 am

Look, there is a very interesting thing.
As I wrote above, for each page we set its own serverid. So that for each page creates its own cashe. If we use IE, Opera or Chrome cashe creates correctly and chat works fine. If we use firefox: firstly, creates cashe with correct serverid, then creates ANOTHER cashe with another serverid (in the right way this serverid should be use for creating cashe for another page). And Firefox gets chat options from second wrong cashe.
Does anyone have an explanation?
webgeist
New member
 
Posts: 3
Joined: Thu Dec 02, 2010 9:49 pm
Top

Postby re*s.t.a.r.s.*2 » Sat Dec 04, 2010 2:47 pm

Try deleting Firefox cache, I have seem Firefox with weird behavior due to its cache..

/rehash the chat -> delete Firefox's cache, close it and reopen a new Firefox and check if that worked..
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 webgeist » Sat Dec 04, 2010 3:09 pm

Do you really think that I did not do all these things? ;)
webgeist
New member
 
Posts: 3
Joined: Thu Dec 02, 2010 9:49 pm
Top

Postby re*s.t.a.r.s.*2 » Sat Dec 04, 2010 4:01 pm

Just shutting to something, because I have no more Ideas (tired).
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 OldWolf » Sat Dec 04, 2010 11:59 pm

I suspect that it might be passing a slightly modified page_url on the queries. It's difficult to say given that you didn't provide anywhere near enough of your code to debug. Kinda like bringing a car mechanic your keys alone and explaining that the car wont start when you use them. He can take some guesses that you can try to follow up on yourself, but ultimately if you want him to fix it, you need to bring him the car...
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 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 28 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