• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Joomla, Drupal, and Wordpress (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Joomla integration

Integration help for Joomla, Drupal, and Wordpress

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

Post a reply
16 posts • Page 1 of 2 • 1, 2

Postby syan » Thu Mar 08, 2007 1:56 pm

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/
Last edited by syan on Thu Mar 08, 2007 3:41 pm, edited 1 time in total.
syan
Member
 
Posts: 15
Joined: Thu Mar 08, 2007 1:50 pm
Top

Postby Edi » Thu Mar 08, 2007 11:09 pm

Thank you very much! I have installed the component and like it!

There are two minor bugs:

1) xajaxDefaultIncludePlugin.inc.php000644 should be xajaxDefaultIncludePlugin.inc.php.

2) The language can not be configured in admin.utchat.conf.php (so I have done it in utchat.php).
Edi
Member
 
Posts: 14
Joined: Thu Mar 08, 2007 10:59 pm
Top

Postby syan » Fri Mar 09, 2007 9:44 am

hi,
2)
in utchat.php, to replace this code :
Code: Select all
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);

by this one

Code: Select all
$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);
syan
Member
 
Posts: 15
Joined: Thu Mar 08, 2007 1:50 pm
Top

Postby Edi » Fri Mar 09, 2007 9:55 am

Thank you for the fast reply!
Edi
Member
 
Posts: 14
Joined: Thu Mar 08, 2007 10:59 pm
Top

Postby Karn_Edge » Sat Mar 10, 2007 1:07 am

I cannot seem to get this component to work at all with Joomla. For one, I use en_GB locale so it tells me I'm invalid and I have to choose something else so I change Joomla to en_US. Now it gets the "Chat Loading..." page and it never moves from there.

My Chat:
http://www.eve-underground.com/index.ph ... Itemid=137

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 />

So it's stuck there, the weird thing is... I can load PHPFreeChat by itself from the latest version here and it works fine on my server. I've edited all sorts of things in the files I just can't seem to get it to work with Joomla.

Anything I'm doing wrong with this UTChat?
Karn_Edge
New member
 
Posts: 4
Joined: Sat Mar 10, 2007 1:00 am
  • Website
Top

Postby Edi » Sat Mar 10, 2007 1:33 am

Karn_Edge wrote:My Chat:
http://www.eve-underground.com/index.ph ... Itemid=137

Do you have the chat installed as Joomla component? The URL seems to be a installation outside of Joomla.
Edi
Member
 
Posts: 14
Joined: Thu Mar 08, 2007 10:59 pm
Top

Postby Karn_Edge » Sat Mar 10, 2007 3:01 am

umm yes other wise you wouldn't be able to pull it up as a option=com_utchat

why would you think otherwise?
Last edited by Karn_Edge on Sat Mar 10, 2007 3:03 am, edited 1 time in total.
Karn_Edge
New member
 
Posts: 4
Joined: Sat Mar 10, 2007 1:00 am
  • Website
Top

Postby phpfreechat » Sat Mar 10, 2007 12:31 pm

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?

Could you try this patch ?

Code: Select all
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();
     }
   }
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby keh » Sat Mar 10, 2007 3:21 pm

I've got the same problem as Karn_Edge, I tried to patch pfcjson.class.php and now it start to load inside the joomla template (before patch it started to load on a blank page), but I get an error box saying "Unknown Function loadChat."

Any other ideas?
keh
New member
 
Posts: 1
Joined: Sat Mar 10, 2007 3:15 pm
Top

Postby Karn_Edge » Sat Mar 10, 2007 10:02 pm

Awesome, it actually worked. :) Thanks alot!
Karn_Edge
New member
 
Posts: 4
Joined: Sat Mar 10, 2007 1:00 am
  • Website
Top

Postby seb » Fri Mar 23, 2007 2:11 pm

i also installed the component (v1.0.8) and ik works fine. But i made some misstakes with the configurationfile in the folder src. For example: what do i have to fill in for the admin => in admin.utchat.config.php? Now nobody is admin on the chat.
And how do i rehash? because if i change the settings in de admin.utchat.config.php file the values are saved, but the cachefile stays the same.

Thnx.

Seb.
seb
Member
 
Posts: 12
Joined: Fri Mar 23, 2007 12:24 pm
Top

Postby cgdesign » Wed Jun 06, 2007 2:20 pm

I installed the utChat (0.2.2 | 1.0b10) component.
Joomla Version 1.0.12
But every time i try to open the chat i get this alert box "Unknown Function LoadChat".

Anybody got an idea?
Still tried the changes above.

Regards
Carsten
Last edited by cgdesign on Wed Jun 06, 2007 3:02 pm, edited 1 time in total.
cgdesign
New member
 
Posts: 2
Joined: Wed Jun 06, 2007 2:08 pm
Top

Postby cgdesign » Thu Jun 07, 2007 6:52 pm

Ok, so now for me everything works fine...
There was an mambot "XAJAX System Mambot For Joomla" that was activated...after i deactivated it everything works fine..
But i don´t know with what for an component the mambot was installed...so keh just take a look at your mambots overview to see if there also will be this mambot installed.

Regards
Carsten
cgdesign
New member
 
Posts: 2
Joined: Wed Jun 06, 2007 2:08 pm
Top

Postby anita999 » Sun Jun 17, 2007 3:41 am

Can UTchat and XAjax mambot co-exist? I have another component that needs XAjax but it will not work with UTChat. I like both components. Is there a workaround for this? Any feedback would be great.

THanks,
ANita
anita999
New member
 
Posts: 4
Joined: Sun Jun 17, 2007 3:37 am
Top

Postby ooaykac » Mon Jul 02, 2007 3:44 pm

Hi,
I have utchat for joomla installed. last version from http://www.utopiart.com/projets-opensource/index.php
I use joomla 1.0.12

After I had installed Utchat, I opened my site..İt works good..But tha chat opens only when I join as Admin.As registered Member it can't be oppened.
I need help.Do I have to configure a file?
ooaykac
New member
 
Posts: 2
Joined: Mon Jul 02, 2007 3:36 pm
Top

Next

Post a reply
16 posts • Page 1 of 2 • 1, 2

Return to Joomla, Drupal, and Wordpress (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • 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