• 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

Not able to display chat info by Javascript

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

Post a reply
2 posts • Page 1 of 1

Postby veda » Tue Mar 30, 2010 2:32 pm

My issue is the following:

My website is based on wordpress and pages are cached.

Hello team,

Actually I display on my website home page : the number of user online on chat.

It works but only if the cache (wordpress super-cache for me) is disabled. This is normal because I use server side code to display this information (so if the number of user change, i don't see the change).

I need to do the same but by client side in Javascript.

Here my server code


Code: Select all
require_once dirname(__FILE__)."/../../../../src/pfcinfo.class.php";
$serverId = "website";
$chatinfo= new pfcInfo($serverId );
$users = $chatinfo->getOnlineNick(NULL,10);
return count($users);

How could i do this? Can I call something in pfcclient.js which could do this?

Thank you for your help. It's a real issue. Regards.
veda
Member
 
Posts: 13
Joined: Sun Jan 28, 2007 2:59 pm
Top

Postby veda » Mon Apr 05, 2010 6:51 pm

Solved here: http://www.phpfreechat.net/forum/viewto ... 877#p14877 :-)
veda
Member
 
Posts: 13
Joined: Sun Jan 28, 2007 2:59 pm
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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