Forums / Cotonti / Development / Chat plugin - need advice

<<<12

rayblo
#16 2010-03-17 02:14
Tensh willing to share it when finished?
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
tensh
#17 2010-03-17 09:09
But of course! Otherwise I would not write it here :)

Added 4 hours later:

Here you go:

ajax_chat_253.zip

Installation:

REQUIRED STEP: change the $cfg['system_dir'] in your datas/config.php to reflect the absolute path to the system folder (like: $cfg['system_dir'] = '/path/to/your/cotonti_root/system'; - note lack of "dot" at the beginning, don't forget to remove it when typing down the absolute path). Otherwise, the includes in external chat script won't work. Don't worry, it won't mess your Cotonti installation.

1. Copy the folder structure as is to the Cotonti root
2. Run COTONTI_ROOT/chat/install.php - it will install database tables. Should work okay... if not, execute the chat.sql file in your mySQL client.
3. Install plugin ajaxchat
4. Add the tags where applicable (Index and Header available out of the box)
5. Enjoy. :)

I made this chat a popup window. Guests are set to autologin, but it can be changed in chat/lib/config.php. Developers, please test if it's an okay integration. All credits to Kaan.

I added "last messages" functionality on index page.

Tip: in chat/lib/class/CustomAJAXChat, there's a function getValidLoginUserData() at the very bottom. It assigns different user roles depending on Group Level. Be sure to adjust it accordingly, both in your Cotonti administration and in this function.
This post was edited by tensh (2010-03-17 17:01, 14 years ago)
ez
#18 2010-03-17 15:34
Are there screen shots ??

I am very interested !!!!
==- I say: Keep it EZ -==
tensh
#19 2010-03-17 15:35
See it in action on www.manjikai.com (my site)

Complete feature list:

- logged-in user autologin
- last chat messages on index
- showing online users on index / in header
- guests can chat (guest username marked differently)

Added 4 hours 48 minutes later:

Now I see that this chat has some unique smileys. I'll add the automatic bbcode install as I go home.

Added 6 hours 2 minutes later:

The zip is updated.

Added:
- sed_parse chat messages
- added smiley bbcodes that are missing in clean Cotonti installation.
This post was edited by tensh (2010-03-18 02:52, 14 years ago)
rayblo
#20 2010-03-18 06:10
One thing autorefresh of messages after .. seconds would be nice aswell
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
tensh
#21 2010-03-18 13:59
I have seen it in minichat and I don't like it, it tends to generate errors.
The idea of last messages is to encourage somebody to open chat, not to track the conversation.
This post was edited by tensh (2010-03-18 14:06, 14 years ago)

<<<12