Join form sponsor field - force NOT unique

Hi - In Admin Field Builder on the Username field of the Join form there is this code that checks to make sure the new Username is unique

 

return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );

 

My question is ...
I have a field called Sponsorname.

I want to make the system check to make sure that the sponsorname DOES exist.

So the name they enter must be NOT unique.

 

Can anyone tell me how to adapt the above code to achieve this?

Of course even though the field is Sponsorname it has to check the Username to make sure it is not unique.

Can I just enter appropriate code in the Field popup AdvancedTab Check box ?? Or can you suggest a better way?

 

Thanks

Dan V

Quote · 25 Oct 2008

Hi, that your presented function check use's nickname that this will be correct, not unique if you will  want to add new unique field into join.php, just add it by self into admin menu!

We only have a unique modules for dolphin!
Quote · 25 Oct 2008

Hi Esase - I dont think you understood what I want to do.

I have a new field called SponsorName. I want to make it check to see that whatever they enter here DOES exist as a Nickname(Username).


It is the oposite of checking to see if its unique. Checkling to see if it does exist.


And the Sponsorname field has to check if the NickName field does exist!


So if the member enters johndoe as the Sponsorname and there is no member already registered called johndoe then they should get an error message and the registration should not go through till they fix it.


Is there an easy way to do this?


Thanks

Dan V

Quote · 25 Oct 2008

Hi - Please help. This question is really important to me as I am paying a programmer to integrate an affiliate system and each new member must list a sponsor who already exists as a member in the Dolphin database.


Thanks

Dan V

Quote · 29 Oct 2008

Please someone from Boonex must know the answer to this ?

Quote · 31 Oct 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.