Loading...
 
Skip to main content

PluginXMPP


New in Tiki19 is a way to embed an XMPP chatroom in a wiki page, powered by ConverseJS. See also Module XMPP

Example:

Copy to clipboard
{xmpp room="general" view_mode="embedded"}


A chatbox will appear in the middle of the page. This chatbox is a group chat, where many users can send messages. You can create a room for each discussion topic.

Practical usage examples


Embedded in the page:

wiki
Copy to clipboard
{xmpp room="general" view_mode="embedded"}


Popup (overlay) opened by default for anonymous visitors:

wiki
Copy to clipboard
{xmpp room="support" visibility="anonymous" view_mode="overlayed" show_controlbox_by_default="y"}

  • visibility="anonymous" → allows guest login through the guest XMPP domain.
  • view_mode="overlayed" → shows a floating popup like Messenger.
  • show_controlbox_by_default="y" → opens the popup automatically when the page loads, instead of just showing the small chat icon.

Parameters

Chat using Xmpp
Introduced in Tiki 19. Required parameters are in bold.
Go to the source code
Preferences required: wikiplugin_xmpp

Parameters Accepted Values Description Default Since
room text Room to auto-join 19
archiving (blank)
y
n
If room messages will be stored y
groups alpha
separator: ,
Allowed groups to use this resource
height imgsize Chat room height in CSS units 400px 19
secret (blank)
y
n
If the room will be listed on public chat room list n
moderated (blank)
y
n
If room is moderated y
persistent (blank)
y
n
If room will continue to exist after last user leaves y
width imgsize Chat room width in CSS units 100% 19
can_anyone_discover_jid anyone
moderator
If just moderator or anyone else can fetch information about an occupant.If just "moderator", anonymous user will not be able to change their nicknames. anyone 20
show_controlbox_by_default (blank)
y
n
If controlbox should be shown after page load. This preference only works when view mode is overlayed n 20
show_occupants_by_default (blank)
y
n
If occupants window should be visible by default This preference only works when view mode is embedded y 20
view_mode (blank)
embedded
fullscreen
overlayed
embedded 19
visibility members_only
anonymous
This room is visible to anyone or only for members anonymous 20


Collapse/expand modules below