MyBB Community Forums

Full Version: Scanning memberlist to check if member exists?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As the referral system does,

[Image: qTVRc3q.jpg]

I would like the button for user upgrades to check to see if the user that they entered is actually a user.

I have been stuck on this for a while and am looking for someone to help me out Huh
You need to check if the username exists in the DataBase just like it is done during registration. You can check the verify_username_exists() method in the inc/datahandler/user.php to get an idea.
(2013-12-16, 04:26 AM)Omar G. Wrote: [ -> ]You need to check if the username exists in the DataBase just like it is done during registration. You can check the verify_username_exists() method in the inc/datahandler/user.php to get an idea.

How would an example of the be incorporated into the form?
Depends on the form itself. Does it runs any kind of code to start with or is it just a template edit? What plugin/modification are you using?
(2013-12-16, 05:07 AM)Omar G. Wrote: [ -> ]Depends on the form itself. Does it runs any kind of code to start with or is it just a template edit? What plugin/modification are you using?



<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RSM6M7R2FM2J6">
<table>
<tr><td><input type="hidden" name="on0" value="Enter Username:">Enter Username:</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>


It is a functioning script from paypal. I just need to verify that the entered usernames are legit accounts and aren't already upgraded to the usergroup
You will require a plugin to achieve this then.
(2013-12-16, 06:31 AM)Omar G. Wrote: [ -> ]You will require a plugin to achieve this then.

Do you know the name of the plugin I will need?
He meant you need to create a plugin yourself (or ask someone else) as there is none available yet for what you want to achieve.

Though I believe that is fairly easy, making a plugin to perform that.
(2013-12-17, 12:19 AM)Tankey Wrote: [ -> ]He meant you need to create a plugin yourself (or ask someone else) as there is none available yet for what you want to achieve.

Though I believe that is fairly easy, making a plugin to perform that.

Alright, I'll try to make a plugin. Thanks!

If anyone can help me create the plugin please message me