Hi All,
I have written a Joomla (http://joomla.org) component that integrate phpfreechat.
The project is at: http://www.utopiart.com/utchat/index.php
EDIT : Joomla Extension "utChat" approved!
http://extensions.joomla.org/component/ ... Itemid,35/
Moderators: OldWolf, re*s.t.a.r.s.*2
require_once ($mosConfig_absolute_path.'/administrator/components/com_utchat/admin.utchat.conf.php');
$utparams['serverid'] = md5(__FILE__);
$utparams['title'] = $mosConfig_sitename;
$utparams['language'] = $mosConfig_locale;
$utparams['nick'] = iconv("ISO-8859-1", "UTF-8", $uid);
$chat = new phpFreeChat($utparams);
$utparams['serverid'] = md5(__FILE__);
$utparams['title'] = $mosConfig_sitename;
$utparams['language'] = $mosConfig_locale;
$utparams['nick'] = iconv("ISO-8859-1", "UTF-8", $uid);
require_once ($mosConfig_absolute_path.'/administrator/components/com_utchat/admin.utchat.conf.php');
$chat = new phpFreeChat($utparams);
<script type="text/javascript">
// <![CDATA[
<br />
<b>Fatal error</b>: Cannot redeclare class services_json in <b>/home/u6/euradmin/html/components/com_utchat/lib/json/JSON.php</b> on line <b>0</b><br />
Karn_Edge wrote:My Chat:
http://www.eve-underground.com/index.ph ... Itemid=137
Karn_Edge wrote:If you get the source from the page it says:
- Code: Select all
<script type="text/javascript">
// <![CDATA[
<br />
<b>Fatal error</b>: Cannot redeclare class services_json in <b>/home/u6/euradmin/html/components/com_utchat/lib/json/JSON.php</b> on line <b>0</b><br />
Anything I'm doing wrong with this UTChat?
Index: src/pfcjson.class.php
===================================================================
--- src/pfcjson.class.php (révision 993)
+++ src/pfcjson.class.php (copie de travail)
@@ -28,7 +28,8 @@
{
// if the php5-json module is not available, use a software json implementation
if (!function_exists('json_encode')) {
- require_once(dirname(__FILE__)."/../lib/json/JSON.php");
+ if (!class_exists('Services_JSON'))
+ require_once(dirname(__FILE__)."/../lib/json/JSON.php");
$this->json = new Services_JSON();
}
}
Return to Joomla, Drupal, and Wordpress (v1.x)
Users browsing this forum: No registered users and 33 guests