Hi there,
I am trying to integrate the phpfeechat into wordpress.
It works fine as a standalone - my congrats on that!
But i just cannot figure out how to put it inside WP
So far I have created the template file as follows:
<?php
/*
Template Name: Chat
*/
?>
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php include (TEMPLATEPATH .'chat.php'); ?>
</div>
<?php get_footer(); ?>
Which allows me to create the chat on Page
Chat.php that I am including is very simple (since all teh necessary styles are read from WP:
<?php
require_once dirname(__FILE__)."/../src/phpfreechat.class.php";
$params["serverid"] = md5(__FILE__);
$params["language"] = "ru_RU";
$chat = new phpFreeChat( $params );
$chat->printJavascript();
$chat->printStyle();
$chat->printChat();
?>
I suppose the problem is with the
require_once dirname(__FILE__)."/../src/phpfreechat.class.php";
Where do i put the installation of PFC? Shall i need to put it into the wp-content or plugins or themes or separate dir altogether?
Would appreciate,
ioni