Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Add-Ons & Blocks ⇒ CometChat integration?


CometChat integration?
Need help creating a block or add-on, or you have created or modified a block/add-on that works in Dragonfly CMS and it meets the CPG Security Requirements? Do you have feedback about a specific add-on? Here is the place to post. Read the announcements here first!.
Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & Blocks

View previous topic :: View next topic  
Author Message
heliown
Heavy poster
Heavy poster

Offline Offline
Joined: Jan 23, 2007
Posts: 250
Location: USA
PostPosted: Sun Jun 13, 2010 3:57 am
Post subject: CometChat integration?

Hi all,
I see that a Facebook like chat such as CometChat is very popular with some of the CMS websites. It can be integrated with many CMS scripts. I looked through the integration instructions, it seems like it can be done with Dragonfly until it is asking for "Friend" table. I couldn't be wrong but Dragonfly does not have a "Friend" table? Can our gurus here help develop the friend table and friend function because this seems to be the trend of the CMS websites these days. Any hints or suggestions are very appreciated.

_________________
RC heli hobby: www.rchelicoptertown.com
Khmer Community: www.angkorthom.us

heliown's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Mysql 5.1.41/php 5.2.5/CPGNuke 9.2.1
Back to top
View user's profile Visit poster's website
Dylert
Nice poster
Nice poster

Offline Offline
Joined: May 02, 2007
Posts: 108
Location: Norway
PostPosted: Mon Jun 14, 2010 7:36 am
Post subject: Re: CometChat integration?

WoW! This looks really great! To make this work with Drafonfly would be a dream for me and many others!

Heliown: I have tried to install the chat, but I haven't managed to make it work yet. Have you tried to install it on your DF site? For me it looked like I had to make a lot of changes in the config.php file. Is that right? I also got two codes.....should they be put in header.html or footer.html? And which version fits for DF? Standalone verson or.....?

I really hope that someone is interested in this, and that it will be possible to make it work with DF!


Dylert's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.34 / 4.1.13-standard / 4.3.11 / Dragonfly 9.2.1
Back to top
View user's profile Visit poster's website
earth
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 01, 2006
Posts: 268

PostPosted: Mon Jun 14, 2010 12:09 pm
Post subject: Re: CometChat integration?

how is it in comparison to tufats flash chat, as it may cost $5 for it, however it is a smooth chat and it does intergrate with cms's. DF in particular, am fyi.

_________________
dfaddons.com

earth's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS/Apache/Mysql/php/9.2.X/
Back to top
View user's profile Visit poster's website Photo Gallery
heliown
Heavy poster
Heavy poster

Offline Offline
Joined: Jan 23, 2007
Posts: 250
Location: USA
PostPosted: Tue Jun 15, 2010 3:27 am
Post subject: Re: CometChat integration?

earth, this is a Facebook style chat. The cool part of it has one to one chat almost like instant messenger and most of social network scripts such as Dolphin, Isocial or Kootali have it. I already have Flashchat integrated with Dragonfly but I like this to integrate with Dragonfly as many of my site members are also on Facebook and they love it.

Dylert, I have no technical knowledge at all and that is why I am asking for help here but from scanning through the instructions, it seems like you need to put the code in the header and footer. You seem to be ahead of me already so I am hoping that you could do it so I can do it too. I posted link to the instruction here in case someone can help point out something for you.

_________________
RC heli hobby: www.rchelicoptertown.com
Khmer Community: www.angkorthom.us

heliown's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Mysql 5.1.41/php 5.2.5/CPGNuke 9.2.1
Back to top
View user's profile Visit poster's website
Dylert
Nice poster
Nice poster

Offline Offline
Joined: May 02, 2007
Posts: 108
Location: Norway
PostPosted: Wed Jun 16, 2010 8:33 am
Post subject: Re: CometChat integration?

I have bought this chat and if someone wants to try to figure this out, I can send the files by mail.


Dylert's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.34 / 4.1.13-standard / 4.3.11 / Dragonfly 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Tue Jun 22, 2010 3:21 am
Post subject: Re: CometChat integration?

Done. Thanks to Dylert for providing a test license.

Tested and developed using cometchat version 1.60 using WAMP:
Apache 2.2, PHP 5.28 MySQL: 5.1.36

Instructions:

1) Download your files from the cometchat site.

2) Download the "config.php" file for dragon fly (see download).
3) Open config.php file for DragonFly and set the server path to the "dragonfly" directory on line:7:

$dragonfly_path ='/home/domainNameUsername/public_html/';

** Don't forget the trailing slash "/":

4) Set your ADMIN & PASSWORD for your Chat Admin Interface

5 Edit your preferences, plugins, default theme etc (NOT The database settings, the config files set the DB configuration based on dragonfly DB configuration).

By default his config file uses the $prefix_session table to display a "friend list", but if you're already using the Buddys Module for dragon file you can use it to generate the friend list for your chat.

To use the Buddy list option, find the getFriendsList function ( line 207 ) and un/comment the $sql lines (see instructions on the config file).

6) Save the confg file.

7) Edit & save changes on:

/cometchat/cometchat_receive.php
find (about line 199)

PHP:
$link = getLink($chat['link']);

and change it to
PHP:
$link = cc_getLink($chat['link']);

Cool Edit & save changes on:

/cometchat/cometchat_getid.php

find : (about line 83)

PHP:
$link = getLink($chat['link']);

and change it to:

PHP:
$link = cc_getLink($chat['link']);


9) Upload the /comechat dir and its contents

10) CHMOD the following files and folder to 777

cometchat/config.php
cometchat/plugins/filetransfer/uploads

** Thats the cometchat instructions (suggestion) but for security you should set the permissions for the config file to 644 (once installed) and 755 for the cometchat/plugins/filetransfer/uploads dir

11) Go to yoursite.com/cometchat/install enter your comet chat username and password, click & and install the chat.

12) Once installed delete the install.php file and SET permissions to 644 to the config file

13) On your Dragonfly Theme dir, open header.html && BEFORE the "</head>" tag add:

<link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php" charset="utf-8" />

14) Open the footer.html for your theme(s) and Add just before the </body>:

if you are NOT using jquery on your site:

Code::
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 

AND
Code::
<!-- IF S_IS_USER -->
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- ENDIF -->

15) Save your templates and upload the modificated files (repeat steaps 13 & 14 for each theme on your site).

16) Go to yoursite.com/cometchat/admin & log in using your COMETCHAT Admin user and password and create some chat Rooms.

17) Buy me a Beer.

18) Enjoyt it. Optional, repeat 17 for yourself!

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)


Last edited by greenday2k on Wed Jun 23, 2010 8:14 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Dylert
Nice poster
Nice poster

Offline Offline
Joined: May 02, 2007
Posts: 108
Location: Norway
PostPosted: Tue Jun 22, 2010 8:34 am
Post subject: Re: CometChat integration?

Thanks a lot. Greenday2k! This is really great!

I'm trying to install this now, but I have some difficulties.

Quote::

$dragonfly_path ='/home/domainNameUsername/public_html/';

Should this be
$dragonfly_path ='/home/hellasforum.net/';
for me?

My DF-files are not in a public_html folder.

The footer.html_
There is no </body> tag in my footer.html. Where should i put the code then?? What is "jquery"? Maybe I don't need this code???

More questions to come (I think) Smile


Dylert's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.34 / 4.1.13-standard / 4.3.11 / Dragonfly 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Tue Jun 22, 2010 5:02 pm
Post subject: Re: CometChat integration?

The site path:

it could be:
/home/hellasforum.net/[DF files: header.php, footer.php etc]
/home/hellasforum.net/htdocs/[DF files: header.php, footer.php etc]
/home/hellasforum.net/public_html/[DF files: header.php, footer.php etc]:

Checked your site and seems that you use jquery for Your_Account (Plus) module. Theres lots of ways to solve this:

(With this fix) you'll be loading jquery (the java script library) on every page on your site). So, to avoid conflicts with other modules using jquery you have to edit the your_account files.

open

/modules/your_account/index.php

find and delete and then save:
lines 19-27

Code::
$modheader .= '<script src="includes/javascript/jquery.js" type="text/javascript"></script>';
$modheader .= '<script src="includes/javascript/jquery.corner.js" type="text/javascript"></script>';
$modheader .= '
<script type="text/javascript">
$(document).ready(function() {
	$("div.logi").corner("15px");
});
</script>
';

repeat on
/modules/Private_messages/index.php.
find, delete, and then save:

Code::
$modheader .= '<script src="includes/javascript/jquery.js" type="text/javascript"></script>';
$modheader .= '<script src="includes/javascript/jquery.corner.js" type="text/javascript"></script>';
$modheader .= '
<script type="text/javascript">
$(document).ready(function() {
	$("div.logi").corner("15px");
});
</script>
';

Now on your /themes/default/template/footer.html
On footer.html find:

Code::
<div style="text-align:center;">{S_FOOTER}</div>
<!-- IF S_DEBUG_SQL --><div class="table1">{S_DEBUG_SQL}</div><!-- ENDIF -->
<!-- IF S_DEBUG_PHP --><div class="table1">{S_DEBUG_PHP}</div><!-- ENDIF -->

The code could be different, but the important tag to find is: <!-- IF S_DEBUG_PHP --> and its <!-- ENDIF --> Paste the comet chat and this code code after that. and save:

So it will look like:

Code::
<div style="text-align:center;">{S_FOOTER}</div>
<!-- IF S_DEBUG_SQL --><div class="table1">{S_DEBUG_SQL}</div><!-- ENDIF -->
<!-- IF S_DEBUG_PHP --><div class="table1">{S_DEBUG_PHP}</div><!-- ENDIF -->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<!-- IF S_IS_USER -->
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- ENDIF -->
<script src="includes/javascript/jquery.corner.js" type="text/javascript"></script>
<script type="text/javascript">$(document).ready(function() {$("div.logi").corner("15px");});</script>


_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)


Last edited by greenday2k on Wed Jun 23, 2010 8:15 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
earth
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 01, 2006
Posts: 268

PostPosted: Tue Jun 22, 2010 8:19 pm
Post subject: Re: CometChat integration?

greenday2k wrote:
The site path:

it could be:
/home/hellasforum.net/[DF files: header.php, footer.php etc]
/home/hellasforum.net/htdocs/[DF files: header.php, footer.php etc]
/home/hellasforum.net/public_html/[DF files: header.php, footer.php etc]:

Checked your site and seems that you use jquery for Your_Account (Plus) module. Theres lots of ways to solve this:

(With this fix) you'll be loading jquery (the java script library) on every page on your site). So, to avoid conflicts with other modules using jquery you have to edit the your_account files.

open

/modules/your_account/index.php

find and delete and then save:
lines 19-27

Code::
$modheader .= '<script src="includes/javascript/jquery.js" type="text/javascript"></script>';
$modheader .= '<script src="includes/javascript/jquery.corner.js" type="text/javascript"></script>';
$modheader .= '
<script type="text/javascript">
$(document).ready(function() {
	$("div.logi").corner("15px");
});
</script>
';

repeat on
/modules/Private_messages/index.php.
find, delete, and then save:

Code::
$modheader .= '<script src="includes/javascript/jquery.js" type="text/javascript"></script>';
$modheader .= '<script src="includes/javascript/jquery.corner.js" type="text/javascript"></script>';
$modheader .= '
<script type="text/javascript">
$(document).ready(function() {
	$("div.logi").corner("15px");
});
</script>
';

Now on your /themes/default/template/footer.html
On footer.html find:

Code::
<div style="text-align:center;">{S_FOOTER}</div>
<!-- IF S_DEBUG_SQL --><div class="table1">{S_DEBUG_SQL}</div><!-- ENDIF -->
<!-- IF S_DEBUG_PHP --><div class="table1">{S_DEBUG_PHP}</div><!-- ENDIF -->

The code could be different, but the important tag to find is: <!-- IF S_DEBUG_PHP --> and its <!-- ENDIF --> Paste the comet chat and this code code after that. and save:

So it will look like:

Code::
<div style="text-align:center;">{S_FOOTER}</div>
<!-- IF S_DEBUG_SQL --><div class="table1">{S_DEBUG_SQL}</div><!-- ENDIF -->
<!-- IF S_DEBUG_PHP --><div class="table1">{S_DEBUG_PHP}</div><!-- ENDIF -->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>
<script src="includes/javascript/jquery.corner.js" type="text/javascript"></script>
<script type="text/javascript">$(document).ready(function() {$("div.logi").corner("15px");});</script>

way to go greenday!

_________________
dfaddons.com

earth's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS/Apache/Mysql/php/9.2.X/
Back to top
View user's profile Visit poster's website Photo Gallery
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Wed Jun 23, 2010 8:17 pm
Post subject: Re: CometChat integration?

Update:

The chat should be only visible to registred users, since it causes a conflict with registration of new users ( the security::check_post() on my_account )

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
heliown
Heavy poster
Heavy poster

Offline Offline
Joined: Jan 23, 2007
Posts: 250
Location: USA
PostPosted: Thu Jul 01, 2010 3:32 am
Post subject: Re: CometChat integration?

Thank you for working on this.

_________________
RC heli hobby: www.rchelicoptertown.com
Khmer Community: www.angkorthom.us

heliown's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Mysql 5.1.41/php 5.2.5/CPGNuke 9.2.1
Back to top
View user's profile Visit poster's website
heliown
Heavy poster
Heavy poster

Offline Offline
Joined: Jan 23, 2007
Posts: 250
Location: USA
PostPosted: Sat Jan 29, 2011 10:02 pm
Post subject: Re: CometChat integration?

Hi greenday2k,
I installed the CometChat today. Now it is 2.0.4 so I can't use the config.php you provided. I modified the CometChat standalone config.php and integration.php.

I got the bar to show and connected to the database but I think I have problem with the user authentication as when I click on chat room, it says Log in to use the chat room even I am already logged in. I use the default, any tip as on how to make the authentication to work?

_________________
RC heli hobby: www.rchelicoptertown.com
Khmer Community: www.angkorthom.us

heliown's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Mysql 5.1.41/php 5.2.5/CPGNuke 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Fri Apr 15, 2011 6:57 pm
Post subject: Re: CometChat integration?

Been busy, sorry. I'll be working on the 3.01 version today.

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
prekill
Newbie
Newbie

Offline Offline
Joined: Dec 19, 2004
Posts: 8

PostPosted: Mon Aug 01, 2011 7:29 pm
Post subject: Re: CometChat integration?

hey,

any idea which changes needed to the integration.php file?

for phpnuke? or ravenuke?

Version 3.0.1

Thanks!


prekill's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
IPBnuke
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Mon Aug 01, 2011 7:44 pm
Post subject: Re: CometChat integration?

Changes needed for phpnuke & ravennuke:

1. Convert your site to Dragonfly and you're ready.

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & Blocks
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy