Foren / Cotonti / Development / Chat plugin - need advice

ErsteVorherige12

rayblo
#16 17. März 2010, 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 17. März 2010, 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.

Dieser Beitrag wurde von tensh (am 17. März 2010, 17:01, vor 14 Jahre) bearbeitet
ez
#18 17. März 2010, 15:34
Are there screen shots ??

I am very interested !!!!
==- I say: Keep it EZ -==
tensh
#19 17. März 2010, 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.

Dieser Beitrag wurde von tensh (am 18. März 2010, 02:52, vor 14 Jahre) bearbeitet
rayblo
#20 18. März 2010, 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 18. März 2010, 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.

Dieser Beitrag wurde von tensh (am 18. März 2010, 14:06, vor 14 Jahre) bearbeitet

ErsteVorherige12