You are not enjoying the benefits offered by registering. To register click here...
  
Forums | Prefs | Your Messages | Members | Recent | Search
Quick Search


Advanced Search
| Calendar | Doc | Dev' Blog! |
Chat (Alpha Version)

Guest, do not forget to login ( Register )
 Top > Forums > Mods & Skins Database > Mods/Hacks
 Integrating Darren

Skin Selection:
   
chris

The Culprit
Group: Admins
Posts: 1,541
Reputation: 38


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:
php Code:
  1. if($user == $this->CONFIG['masterAdminUsername']){

Replace with:
php Code:
  1. if($user == $this->CONFIG['masterAdminUsername'] && 1==0){


...go to the matching else statement...

Find:

php Code:
  1. if($DBconnection->numRows($userquery)){

Above line must read:
php Code:
  1. $userquery = $DBconnection->query("SELECT * FROM tate_users WHERE userid = '$user' AND (password = PASSWORD('$password') OR password='".md5($password)."')");


Find:
php Code:
  1. if($user == $this->CONFIG['masterAdminUsername'] || $DBconnection->rowsInResult($userquery)){

Above line must read:
php Code:
  1. $userquery = $DBconnection->query("SELECT * FROM tate_users WHERE userid = '$user'");


Simple as that! Now, members will be considered registered based on their nBBS information.

 
Top

Comments:

  Flat Mode | Threaded Mode  
Rating:
  • Currently
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Quick Jump:

         
Page generated in 0.04 seconds (Queries: 0.00) - Cpu: 0.10
Total DB [adodb:mysql] queries: 16
Total Strings Translated: 8
Powered by NextBBS SE v0.4.5 - Copyright © 2007 CFR & The NextBBS Team
Chatbox powered by smiletag