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 Previous  1, 2
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & Blocks

View previous topic :: View next topic  
Author Message
prekill
Newbie
Newbie

Offline Offline
Joined: Dec 19, 2004
Posts: 8

PostPosted: Mon Aug 01, 2011 8:11 pm
Post subject: Re: CometChat integration?

lol,

how hard can it be to convert into Dragonfly?

can't the integration.php be easly modified to match all versions?

Thanks,


prekill's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
IPBnuke
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: Sun Sep 11, 2011 5:09 pm
Post subject: Re: CometChat integration?

Hi all,
I am trying to install Cometchat and I was having problem so I asked Comet Chat people to help and then they asked me to

create a cookie named 'cc_user_id' when a user logs in and destroy the cookie when the user logs out.

This cookie should contain the the userid (from the $userinfo array).

setcookie("cc_user_id", $userinfo['userid']);

Anybody here know what I need to do? I asked them for instruction, they said I should ask my developer.

_________________
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
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Sun Sep 11, 2011 8:44 pm
Post subject: Re: CometChat integration?

heliown wrote:
create a cookie named 'cc_user_id' when a user logs in and destroy the cookie when the user logs out.

I guess you'd have to amend /includes/classes/cpg_member.php which is where the login cookie is set.

After line 178 add this :-

Code::
setcookie('cc_user_id','',-1, $MAIN_CFG['cookie']['path'], $MAIN_CFG['cookie']['domain']);

And after line 184 (or what is now line 185) add this :-

Code::
 
setcookie('cc_user_id',$setuid,(gmtime()+15552000), $MAIN_CFG['cookie']['path'], $MAIN_CFG['cookie']['domain']);

I guess that would do it, but obviously have no means of testing myself.

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
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: Mon Sep 12, 2011 5:37 am
Post subject: Re: CometChat integration?

Thanks Kendle, I'll test it.

_________________
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
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & Blocks
Page 2 of 2
All times are GMT
Go to page Previous  1, 2



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