• 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

Embedding Chat

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

Post a reply
7 posts • Page 1 of 1

Postby greystone » Sun May 13, 2012 5:05 pm

I'm running a WordPress site. Trying to embed chat in a page. I've added
<?php

require_once "src/phpfreechat.class.php"; // adjust to your own path $params["serverid"] = md5(__FILE__); // used to identify the chat $chat = new phpFreeChat($params);

?>
At the top and below in the page
<?php $chat->printChat(); ?>
When I bring up the page I get
->printChat(); ?>
Echoed on the page and no chat. Any ideas?
greystone
New member
 
Posts: 8
Joined: Sun May 13, 2012 3:56 pm
Top

Postby re*s.t.a.r.s.*2 » Sun May 13, 2012 5:41 pm

Hi,

Wordpress wont parse the php code, you have to make a php page so you can put the code in...

regards.
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 greystone » Sun May 13, 2012 6:25 pm

So would I get that code out of index.php?
greystone
New member
 
Posts: 8
Joined: Sun May 13, 2012 3:56 pm
Top

Postby re*s.t.a.r.s.*2 » Sun May 13, 2012 7:38 pm

indeed,

There is a plugin for Wordpress , which we don't support here but if you make it standalone and connect the chat to your session management we can help you out...

You can read the integration in the sub forum below..

regards
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 greystone » Mon May 14, 2012 1:07 pm

Which sub forum? I would like to do it as a standalone but will I still be able to imbed it in an existing web page?
greystone
New member
 
Posts: 8
Joined: Sun May 13, 2012 3:56 pm
Top

Postby Myth024 » Sun Aug 05, 2012 4:41 am

I was actually working on doing the exact same thing and I found a workaround. What I did was use an ftp program to get directly into the file structure for the site. I then created a chat directory and put all the files there. Then in the worldpress page, I used an <iframe></iframe> set of tags to call the chat folder and had the chat room embedded with the inline frame. Worked perfectly without needing a plugin. The only downside is any modifications to the code will have to be done outside the wordpress environment.
Myth024
Member
 
Posts: 19
Joined: Sun Jun 03, 2012 3:35 am
Top

Postby pjnet » Sun Aug 12, 2012 3:35 pm

iframe like here:
http://pjn-il.net/chat.php

it's work's fine for me...
pjnet
New member
 
Posts: 6
Joined: Wed Aug 08, 2012 6:36 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 10 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