Loading...
 
Small live chat box

Module minichat

This Module shows a small box for chat updated in real time without browser refresh. It functions similarly to the shoutbox. Since Tiki14 it displays the date of the timestamp for the messages from the previous days.

Parameters

Small live chat box

Go to the source code
Preferences required: feature_minichat

Parameters Accepted Values Description Default Since
channels any string except for HTML and PHP tags List of chat channels. Channel names are separated by a comma (","). Example value: english,french. By default, a single channel named "default" exists.


Usage

You will see it listed at ""Admin > Modules > Assign new module > minichat (drop down)" (tiki-admin_modules.php).

You can assign this Module to a side column (see the Module Admin page if needed), or you can include it within a wiki page, using the PluginModule, but not both simultaneously. The plugin will not display in a wiki page if it is also active in a side column.

Feature activation
The minichat must also be activated as a feature, which can be done at tiki-admin.php The preference system name is "feature_minichat".


The assigned module to a wiki page, as example, could be through this call to the module:

CODE
Copy to clipboard
!!# Chat We are considering to add a [http://doc.tiki.org/minichat|chat service] to allow synchronous communication with distant participants. More information will be provided here in the following days. {MODULE(module=>minichat,decorations=>y,rows=30,channels="#default,#BabelWiki08")}{MODULE}


Which would produce the minichat window in the middle of the column:

Image

CSS section

Q: is this still necessary? A: It is not necessary in a technical sense, but the style definitions make tabs show around channel names, for example (tested with Tiki 7.2).

In order to have the minichat work as expected, you have to make sure you have some entries like these on the CSS file of your theme style:

section at .css
Copy to clipboard
/* MiniChat */ div.box-minichat { width: 100%; } div.minichatchans { border-bottom: 1px solid #aaa; overflow-x: auto; } a.minichata_selected { text-decoration: none; background-color: #eee; padding: 1px; border-top: 1px solid #aaa; border-left: 1px solid #aaa; border-right: 1px solid #aaa; } a.minichata_unselected { text-decoration: none; padding: 1px; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; } div.minichatdiv { font-size: 9px; } span.minichat_ts { display: inline; letter-spacing: -1px; margin-right: 2px; } span.minichat_nick { color: #008; margin-right: 2px; } #role_main .box-minichat {width: 400px; max-width: 400px}


Data Storage & Display


Currently, the minichat data persist indefinitely in the database, with up to 100 (?) lines displayed in a channel window. There are no admin controls to clear out the data for a channel or the module.

Alternatively it is possible to purge the MiniChat from the database.
Just empty the tiki_minichat table so that all messages be deleted.
You can also just simply remove the message of your choice.

Smilie In URL Fix

The Mini Chat annoyingly puts a smilie in the URL of posted links because it reads the :/ in http://
The Mini Chat smilies are defined in tiki-minichat_ajax.php (while it should be coded to use the global ones).
Remove the line for the "confused" smilie around line 127

Copy to clipboard
$msgtotal = str_replace(":-/", "<img border='0' src='img/smiles/icon_confused.gif' width='15' height='15'>", $msgtotal);

TimeSet TZ


It is possible that the module does not display the correct TimeSet. In this case check the presence of "mod env" on the host server.
Search info.php TimeZone. If the latter is set by default to "CET". You con adjust your '.htaccess' by adding this variable:

Copy to clipboard
SetEnv TZ CET

Author


Thanks to niclone for writing this module!

Related pages

alias

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki