History: Mod phpfreechat
Source of version: 17 (current)
Copy to clipboard
{syntax type="markdown" editor="wysiwyg"} {BOX()} This is all deprecated. Anything interesting has been moved to the main code base. Please see: ((Mods)) and ((XMPP)) {sign user="marclaporte" datetime="2018-04-22T16:27:54+00:00"} {BOX} ## Mod phpfreechat This ((Mod)) plugin displays a chat (using phpfreechat) in a wiki page. {img src=http://www.phpfreechat.net/images/logo2_88x31.png } phpFreeChat is a free, simple to install, fast, customizable and multi languages chat that uses a simple filesystem for message and nickname storage. It uses AJAX to smoothly refresh (no flicker) and display the chat zone and the nickname zone. It supports multi-rooms (/join), private messages, moderation (/kick, /ban), customized themes based on CSS and plugins systems that allows you to write your own storage routines (ex: Mysql, IRC backends …), and you own chat commands ! {BOX()}{img src="img/wiki_up/phpfreechat_00.png" } <br /> {img src="img/wiki_up/phpfreechat_01.png" }{BOX} Checkout the phpfreechat demo: http://www.phpfreechat.net/demo ## Usage To display a module in a wiki page, use the syntax: {CODE(wrap=1)} {PHPFREECHAT(title=title, channel=name)}{PHPFREECHAT} {CODE} {FANCYTABLE(head=**Parameter**|**Accepted values**|**Effect**|**Since**)} *title* |text |title for the chat window | *channel* |text |chat channel name | {FANCYTABLE} ## To install Checkout the ((Mods)) section. - Additionally, and if it's not you available elsewhere, you can download the files from svn directly: - [https://sourceforge.net/p/tikiwiki/code/HEAD/tree/mods/trunk/wiki-plugins/phpfreechat/] - [https://sourceforge.net/p/tikiwiki/code/HEAD/tree/mods/trunk/lib/phpfreechat/] - Copy the file tiki-phpfreechat_ajax.php from the lib/phpfreechat folder and paste it to the root of Tikiwiki. - Take all the content that is in the first thing you downloaded from svn (http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki/mods/trunk/wiki-plugins/phpfreechat/) and put everything in the wiki-plugins/phpfreechat folder. - In your Tiki, create a new Wiki page with the title "chat" (per example) and insert this content : {CODE(wrap=1)}{PHPFREECHAT(title=title, channel=name)}{PHPFREECHAT}{CODE} - In the file lib/setup/**js_detect.php**, start by finding these lines: {CODE(wrap=1)} // NB replace "normal" speeds with int to workaround issue with jQuery 1.4.2 $headerlib->add_js($js, 100);{CODE} - After this section, add these lines:{CODE(wrap=1)} $jsPrototype = 'if (Prototype) jQuery.noConflict();'; $headerlib->add_js($jsPrototype, 101); {CODE} - {BOX()}N.B.: This procedure has been tested on a Tiki 6.0-6.1. Perhaps this line of code is going to be added in next versions.{BOX} - {BOX()}G.I.: In tiki version 9.1, the file **js_detect.php** has been renamed to **javascript.php** and portion of the code has changed. I have yet to test where to put the aforementioned lines of code.{BOX} ## Related pages - ((Wiki Plugin)) - ((Mods Type Wikiplugins)) - ((Chat)) - ((PluginSkype)) - ((PluginJabber)) - [http://www.phpfreechat.net] {DIV(class=titlebar)}Alias{DIV} (alias(PluginPhpfreechat))