The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Code for checking if user registration fields have been filled
Hi
I have removed most of the user registration fields and now want to check if fields not displayed are being filled in by spambots. In particular, I want to check if the 'homepage' field has been filled in and then discontinue the registration procedure. I have tried the following but it is not working - if ($_POST['homepage'] > ''){ exit(); } I have put this in register.php after this code > // ############################### start add member ############################### if ($_POST['do'] == 'addmember') { $vbulletin->input->clean_array_gpc('p', array( 'options' => TYPE_ARRAY_BOOL, 'username' => TYPE_STR, 'email' => TYPE_STR, 'emailconfirm' => TYPE_STR, 'parentemail' => TYPE_STR, 'password' => TYPE_STR, 'password_md5' => TYPE_STR, 'passwordconfirm' => TYPE_STR, 'passwordconfirm_md5' => TYPE_STR, 'referrername' => TYPE_NOHTML, 'imagestamp' => TYPE_STR, 'imagehash' => TYPE_STR, 'coppauser' => TYPE_BOOL, 'day' => TYPE_UINT, 'month' => TYPE_UINT, 'year' => TYPE_UINT, 'timezoneoffset' => TYPE_NUM, 'dst' => TYPE_UINT, 'userfield' => TYPE_ARRAY, 'showbirthday' => TYPE_UINT, )); Can anyone suggest some simple code to check whether 'homepage' has been entered and where to put this code in register.php? Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|