https://github.com/jbroadway/chat
Member chat box for the Elefant CMS
https://github.com/jbroadway/chat
Last synced: about 2 months ago
JSON representation
Member chat box for the Elefant CMS
- Host: GitHub
- URL: https://github.com/jbroadway/chat
- Owner: jbroadway
- Created: 2012-02-24T20:00:32.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-27T18:36:02.000Z (over 12 years ago)
- Last Synced: 2025-01-13T12:26:39.302Z (3 months ago)
- Language: PHP
- Homepage: http://www.elefantcms.com/
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat for Elefant
This is a simple member chat app for the [Elefant CMS](http://www.elefantcms.com/),
powered by the [Pusher](http://www.pusherapp.com/) realtime messaging service.To install, drop the app into your Elefant `apps` folder and edit the file
`apps/chat/conf/config.php`. Enter your APP ID, API Key and API Secret values from
Pusher. You can now access the default chat at the URL `/chat` on your website.
Please note that chats are members-only, so if you're not logged in you will be taken
to the member login screen first.## Embedding the chat box
Chats can be embedded into any page via the Dynamic Objects menu in the WYSIWYG editor,
or into any application via the following code:```php
run ('chat/index', array ('channel' => 'channel-name'));?>
```Or in a view template:
```html
{! chat/index?channel=channel-name !}
```If no channel is specified, the channel name will be `default`. Channels can be
used in your apps to create separate chat rooms for different groups of users.## Styling the chat box
The chat box can easily be styled through CSS, and some very basic CSS is included
in `/apps/chat/css/default.css`. For reference, here is what the HTML of the chat
box looks like:```html
Johnny:
Hello, world!
World:
Hi Johnny!
```