Quote:
Originally Posted by weeno
I've been trying to use this code to integrate a wiki and vbulletin.
There's a mistake in the initUser function... note the database query isn't correct. I fixed it here:
HTML Code:
function initUser( &$user ) {
$vb_find_user_query = "SELECT email FROM user WHERE LOWER(username)=LOWER('" .
addslashes($user->mName) . "')";
$vb_find_result = mysql_query($vb_find_user_query, $this->vb_database);
if(mysql_num_rows($vb_find_result) == 1) {
$vb_user_info = mysql_fetch_array($vb_find_result);
$user->mEmail = $vb_user_info['email'];
}
else {
// ERROR?
}
}
is no one else working on this/ interested in this?
So, it seems the "_" underscore is the one of the forbidden chars in mediawiki.... so might cause some collision issues with vb's user database.
still working on this to see how to best resolve these issues.
arn
|
well I'm glad someone is working on it. Sorry I can't contribute on that end. but just wanted to say I think this would be a KILLER hack if ya got it work.
<<< keeps fingers crossed.