MyBB Community Forums

Full Version: Can't register without referrer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Recently I've upgraded MyBB to the latest version.
And when the users are trying to register to my forum, they can't register without specifying a valid referrer. Angry

[Image: DXSDk5z.png]
Have you edited your signup page at all?
"File Verification: No Problems Detected.
Congratulations! No corrupt files have been found on your installation."

Didn't edit anything. Maybe Javascript thing? Does it matter if the server enables GZIP compression?

[Image: 1xemIqX.png]

I disabled the referral system. The image verification is now a bit up, but doesn't matter as problem solved. Not entirely, but ok.
GZip compression has nothing to do with it.

In the Admin CP go to Configuration. Then go to General Configuration Settings. Near the bottom there is a setting called Disable All Plugins. Select 'Yes' and see if that fixes your issue. If it does, a plugin is the cause, which is what I suspect.
Still the same. I've one plugin which I'm the one who built it.
Please list the url and make sure the default theme is the theme you are having issues with.
How is it on the default theme? Have you checked for updated templates?
I'm going to take a guess and say that the problem is here
<script type="text/javascript">
<!--
	regValidator = new FormValidator('registration_form');
	regValidator.register('username', 'notEmpty', {failure_message:'You must enter a username'});
    regValidator.register('email', 'regexp', {match_field:'email2', regexp:'^([a-zA-Z0-9_\\.\\+\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$', failure_message:'You need to enter a valid email address'});
	regValidator.register('email2', 'matches', {match_field:'email', status_field:'email_status', failure_message:'You need to enter the same email address again'});
	regValidator.register('referrer', 'ajax', {url:'xmlhttp.php?action=username_exists', loading_message:'Checking if referrer username exists.'});
	regValidator.register('imagestring', 'ajax', { url: 'xmlhttp.php?action=validate_captcha', extra_body: 'imagehash', loading_message: 'Checking whether or not you entered the correct image verification code.', failure_message: 'You need to enter the text in the image above'} );
	regValidator.register('password', 'length', {match_field:'password2', min: 6, failure_message:'Your password must be 6 or more characters long'});
	regValidator.register('password', 'ajax', {url:'xmlhttp.php?action=complex_password', loading_message:'Checking password complexity'});
	regValidator.register('password2', 'matches', {match_field:'password', status_field:'password_status', failure_message:'The passwords you enter must match'});
	regValidator.register('username', 'length', {min: 3, max: 30, failure_message:'Usernames must be between 3 and 30 characters long'});

	regValidator.register('username', 'ajax', {url:'xmlhttp.php?action=username_availability', loading_message:'Checking if username is available'}); // needs to be last
// -->
Now I changed to the default theme. Problem still persists. I don't know how to fix that problem.

regValidator.register('referrer', 'ajax', {url:'xmlhttp.php?action=username_exists', loading_message:'Checking if referrer username exists.'});

Well I don't know how is this a problem?
Pages: 1 2