OMG you're not kidding!! ME TOO!
I'm trying to wrap my head around the new phpbb3.
I swear EVERY function requires about 4-5 other pages! lol
If I get it worked out first I promise an update for both roster1 AND roster2.
TankGirl wrote:Thanks Zanix, but that just syncs up the groups/ranks to DF phpbb. Although I'm waiting for the to go fully phpbb3 compatible.. That's not what we need here.
We need phpbb3 to check if a person is in the WoWRoster (1 or 2) database, BEFORE letting them complete registration.
PHPBBsync was not designed for that, although Jaffa is doing a fantastic job on it.
$sql = 'SELECT username
FROM ' . USERS_TABLE . "
WHERE username_clean = '" . $db->sql_escape($clean_username) . "'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if ($row)
{
return 'USERNAME_TAKEN';
}
$sql = "SELECT name
FROM roster_members
WHERE LOWER(name) = '" . $db->sql_escape($clean_username) . "'";
if ($result = $db->sql_query($sql))
{
if ($db->sql_numrows($result) < 1)
{
$db->sql_freeresult($result);
return 'USERNAME_TAKEN';
}
}
$db->sql_freeresult($result);
Users browsing this forum: No registered users and 0 guests