====== How to integrate phpfreechat in a dokuwiki page ? ====== This method is used on the [[:demo|demo page]]. - You have to install the [[http://www.dokuwiki.org/plugin:phpinc|phpinclude dokuwiki plugin]]. - You have to create a ''phpinclude/'' directory in the root directory of your dokuwiki installation and a ''phpincludes/pfc-pub-data/'' directory (public pfc data will be stored here). - You have to create these two scripts : * ''phpinclude/pfc-front.php'' : this script will load the chat interface when the dokuwiki page is loaded. * ''phpinclude/pfc-backend.php'' : this script will be contacted by ''pfc-front.php'' using ajax call to communicate with the pfc server. - Finally, in the desired dokuwiki page you have to insert this code: - That's all. ===== pfc-front.php ===== Here is an example you should of course adapt to your needs: printChat(); ?> ===== pfc-backend.php =====