WoWRoster Registration Check. v1.1 For WoWRoster 1 and 2 to work with phpbb2. PHPBB2 MOD by TankGirl Special thanks sneakimp from PHPBuilder for all the help! Only works in WoWRoster/phpBB2 tables sharing the same database. OPEN forums/language/lang_english/lang_main.php AFTER *********************************** $lang['Empty_message_email'] = 'You must enter a message to be e-mailed.'; *********************************** ADD *********************************** // //------------------- WoWRoster Check BEGIN ------------------ // $lang['GuildMember_invalid'] = 'This username is not yet a valid Guild Member.'; // //------------------- WoWRoster Check END ------------------ // *********************************** OPEN forums/includes/functions_validate.php AFTER *********************************** $username = phpbb_clean_username($username); *********************************** ADD note: 'roster_' is the default prefix and MUST be changed if it has been altered. *********************************** // //------------------- WoWRoster Check BEGIN ------------------ // $rostersql=" SELECT name FROM roster_members WHERE LOWER(name)='" . strtolower($username) . "'"; if ($result = $db->sql_query($rostersql)) { if ($db->sql_numrows($result) < 1) { $db->sql_freeresult($result); return array('error' => true, 'error_msg' => $lang['GuildMember_invalid']); } } $db->sql_freeresult($result); // //------------------- WoWRoster Check END ------------------ // *********************************** SAVE AND CLOSE ALL