the info in the fact is outdated on the pun set up, anyone have a working version for integrating phpfree with the latest punbb distro? I believe its version 1.34
if ($_SESSION['punbb_to_pfc_nickname'] == "Guest") { header("Location: http://tdah.us/pun/login.php"); // adjust this path to your forum login from http:// }
}
require_once "src/phpfreechat.class.php"; $params = array(); $params["title"] = "T-dah Support chat";
$params["nick"] = $_SESSION['punbb_to_pfc_nickname']; // setup the initial nickname
$params['firstisadmin'] = false; $params["channels"] = array('Support'); $params["serverid"] = 'Tdah'; // this is the cache file name and chat ID $params["debug"] = false; $chat = new phpFreeChat( $params );
notice you might have problems with browser cache when logging out and back in, I couldn't get around this so far
Last edited by todhend on Fri May 21, 2010 5:31 pm, edited 1 time in total.
to add a link to the chat in the forum to only logged in users look in header.php around the line 115 add this
$forum_head['chat'] = '<link rel="chat" href="./chat/index.php" target="_blank"'.$lang_common['Chat'].'" />'; //adjust this path to your chat index file
also /include/funtions.php around the line 452
$links['chat'] = '<li id="navchat"'.((substr(FORUM_PAGE, 0, 7) == 'chat') ? ' class="isactive"' : '').'><a href="'.forum_link("./chat/index.php" ).'">'.$lang_common['Chat'].'</a></li>'; //adjust this path to your chat index file
Last edited by todhend on Fri May 21, 2010 6:04 pm, edited 1 time in total.