Okay, I finally got around to doing this. Here's the threadsCMS.php file you'll need.
1) Upload threadsCMS.php to your inc/cmses directory. Edit this file and set any cookieprefix or threads database prefix if not the default "w3t_" settings. I seperated these from the config.srv.php file because I already had FlashChat installed and the prefixes didn't match.
2) In inc/common.php, you'll need:
include_once(INC_DIR . 'cmses/threadsCMS.php');
3) (Optional) I added some code to flashchat.php to auto login someone if they were already logged into the forums:
<?php // MDP - Added to auto login require ("../main.inc.php");
// ----------------- // Get the user info $userob = new user; $threadsuser = $userob -> authenticate('U_Status,U_LoginName'); // End MDP
include_once('inc/common.php');
$id = 'flashchat';
$params = array();
// MDP - added to auto login first time if ( $threadsuser['U_Number'] > 1 ) { $_REQUEST['username'] = $threadsuser['U_LoginName']; $_REQUEST['lang'] = $GLOBALS['fc_config']['defaultLanguage']; $_REQUEST['password'] = $threadsuser['U_Password']; $_REQUEST['room'] = 0; } // end MDP
if(isset($_REQUEST['username'])) {
Basically, this grabs the login info for a user who is already logged in and skips the initial username/password grab the first time someone enters.
Give it a try - I have it working on ViperAlley.Com.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.