• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

integration with phpnuke

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Postby Arlin.Orlando » Thu Nov 02, 2006 8:00 pm

I am trying to integrate phpFreeChat with phpnuke, so I create a new phpnuke module with the folowing content:
Code: Select all
if (!defined('MODULE_FILE')) {
   die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

function theindex() {
   
   include("header.php");

   OpenTable();
require_once ("modules/Chat/phpfreechat-0.9.3/src/phpfreechat.class.php"); // adjust to your own path
$params = array();
$params["nick"] = "guest".rand(1,10);  // setup the intitial nickname
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$chat = new phpFreeChat( $params );


$chat->printJavascript();
$chat->printStyle();
$chat->printChat();

CloseTable();
   include("footer.php");
}


switch ($op) {

   default:
      theindex();
      break;

}

It looks good, but it does not connect...

Any clue !?

Thanks,
Arlin
Arlin.Orlando
New member
 
Posts: 1
Joined: Thu Nov 02, 2006 7:51 pm
Top

Post a reply
1 post • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 17 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub