Posted on Apr 7, 2007, 9:32 pm by chris
| |
Integrating Darren
|
Note: It seems that this script was recently rolled up in a skin for Flashchat.
Make sure that nBBS and AMFiChat use the same database.
Open services/chatService.php
Find:
if($user == $this->CONFIG['masterAdminUsername']){
|
Replace with:
if($user == $this->CONFIG['masterAdminUsername'] && 1==0){
|
...go to the matching else statement...
Find:
if($DBconnection->numRows($userquery)){
|
Above line must read:
$userquery = $DBconnection->query("SELECT * FROM tate_users WHERE userid = '$user' AND (password = PASSWORD('$password') OR password='".md5($password)."')");
|
Find:
if($user == $this->CONFIG['masterAdminUsername'] || $DBconnection->rowsInResult($userquery)){
|
Above line must read:
$userquery = $DBconnection->query("SELECT * FROM tate_users WHERE userid = '$user'");
|
Simple as that! Now, members will be considered registered based on their nBBS information.
|