Fullscreen
[Show/Hide Right Column]

Module minichat

This Module shows a small box for chat updated in real time without browser refresh. It functions similarly to the shoutbox.


Usage

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

You can assign a this Module to a side column (see theModule 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 also must be activated as a feature, which can be done at tiki-admin.php The preference system name is "feature_minichat".

Parameter name
description
options
decorations whether to show decorations in the module or not y,n
rows number to indicate the number of rows to show (acting here as height of the module box) number (integer)
channels name of channel/s in tabs of the minichat window "#channel_name1,#channel_name2,..."
nochannelbar displaying the channel bar, default: n (, so yes there is a channel bar by default) Tiki6.0+ y,n


The assigned module to a wiki page, as example, could be through this call to the module:
CODE
!!# Chat
We are considering to add a [http://doc.tikiwiki.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 made sure you some entries like these on the css file of your theme style:

section at .css
/* 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.

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
$msgtotal = str_replace(":-/", "<img border='0' src='img/smiles/icon_confused.gif' width='15' height='15'>", $msgtotal);

Author


Thanks to niclone for writing this module!


Related pages



Contributors to this page: xavi67974 points  , SysAdmin of bbash.de16 points  , Marc Laporte9140 points  , Gergely593 points  , luciash d' being2161 points  , Kent Barrett1351 points  , Gary Cunningham-Lee1539 points  , Connor MacLeod of the Clan MacLeod439 points  , mlpvolt4388 points  and system .
Page last modified on Tuesday 11 October, 2011 09:35:39 UTC by xavi67974 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

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



Tiki Newsletter

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