• 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

Is there a way to add phpfree to an existing website?

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

Post a reply
5 posts • Page 1 of 1

Is there a way to add phpfree to an existing website?

Postby midorialexandros » Mon Mar 18, 2013 12:41 am

Alright I know the short answer is YES.

I can do it through my cpanel.

But when I do this, it creates a whole new directory... this is not what I want. I want to take one of my preformatted pages ( I am currently using cbox ) and I want to replace the area cbox is taking up with phpfree. While it is like my inexperience with php in general, I have spent four days trying to make this happen and just cannot figure it out. I love this program and its features and would really love to add it to my website, but I don't want to loose the headers, footers, and other content I have already created when the user navigates to the page.

Anyone have experience with this? Advice? How to?
midorialexandros
New member
 
Posts: 2
Joined: Mon Mar 18, 2013 12:37 am
Top

Re: Is there a way to add phpfree to an existing website?

Postby OldWolf » Tue Mar 26, 2013 5:37 pm

Have you read through the FAQ stuff? I know this is covered somewhere in there. :)
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

Re: Is there a way to add phpfree to an existing website?

Postby midorialexandros » Fri Mar 29, 2013 1:10 pm

I scoured the internet and I am not finding very good resources.

It seems like I will need to manually install the chat, does anyone have a good walk through? Examples? Cheatsheets? The little I did find on the FAQ wasn't incredibly helpful to my situation.
midorialexandros
New member
 
Posts: 2
Joined: Mon Mar 18, 2013 12:37 am
Top

Re: Is there a way to add phpfree to an existing website?

Postby OldWolf » Fri Mar 29, 2013 8:06 pm

Shoot, that's my fault. I could have sworn we had this in there really clearly, but we definitely do not.

The chat is structured in two parts: the header includes, and the chat itself.

The basic form of the header includes look something like this:
Code: Select all
require_once "src/phpfreechat.class.php"; // adjust to your own path
  $params["serverid"] = md5(__FILE__); // used to identify the chat
  $chat = new phpFreeChat($params);

You'll note that the parameters will all be included there, after the 'require_once' but before the '$chat =' lines.
This whole section must come before any html output, and must be surrounded by php tags (or in a section of php)

The second part, the chat itself, is really just this one line:
Code: Select all
 <?php $chat->printChat(); ?>

It is simply placed in your HTML, wherever you want the chat to actually print.
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

Re: Is there a way to add phpfree to an existing website?

Postby Darni » Mon Jun 10, 2013 7:46 pm

What to do, when I have a page in PHP?
And side from chatem is in such a building site:
Code: Select all
if($page=="chat"){
echo("<div id=box_right style=height:580px><div class=belka_right><div class=napis_belka2>CHAT</div></div><div class=bg_right>");
echo("");
echo("</div></div>"); < --- How here to put this code? - PrintChat () <php $ chat->;>
}

How to put cottages in then?
Darni
New member
 
Posts: 3
Joined: Sun May 12, 2013 1:00 pm
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 14 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