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

integration w/ wordpress

Integration help for Joomla, Drupal, and Wordpress

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

Post a reply
3 posts • Page 1 of 1

Postby kabewm » Tue Apr 10, 2007 8:20 am

Does anyone have instructions on integrating users w/ wordpress?
kabewm
New member
 
Posts: 1
Joined: Tue Apr 10, 2007 8:18 am
Top

Postby jachetto » Tue Jun 12, 2007 8:35 am

chat.php

require_once dirname(__FILE__)."/../src/phpfreechat.class.php";
require_once('wp-config.php');
$current_user = wp_get_current_user();
$user_name = addslashes($current_user->user_login);

$params = array();
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["title"] = "jaco.it chat";
$params["nick"] = $user_name;
$params["width"] = "150";
// setup urls
$params["data_public_url"] = "../data/public";
$params["server_script_url"] = "./chat.php";
$params["theme_default_url"] = "../themes";

// setup paths
$params["container_type"] = "File";
$params["container_cfg_chat_dir"] = dirname(__FILE__)."/../data/private/chat";

$chat = new phpFreeChat( $params );
$chat->printJavascript();
$chat->printStyle();
$chat->printChat();

?>

sidebar.php
<----snip here--->
require_once("chat.php")
<---end snip--->

anyway private msg don't work, dunno why. Nickname r protect with a /nick/ dunno why.

Any1 has a better solution?
jachetto
New member
 
Posts: 1
Joined: Tue Jun 12, 2007 8:31 am
Top

Postby ioni » Wed Mar 19, 2008 2:38 pm

Dear jachetto,

exactly where did you put the chat.php and made it available from within WP?

Regards,
ioni
ioni
New member
 
Posts: 2
Joined: Wed Mar 19, 2008 12:17 pm
Top


Post a reply
3 posts • Page 1 of 1

Return to Joomla, Drupal, and Wordpress (v1.x)

Who is online

Users browsing this forum: No registered users and 2 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