MyBB Community Forums

Full Version: Prevent the referer field in the registation from filling from the database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For a "secret" forum I want to use the referrerfield so anyone wanting to join needs a referrer.

When I start guessing usernames in that field it starts to fill with names from the database.

How can I prevent this field from showing names from the database but still have it active to check wether the filled in field is a valid current member.


As a bonus question, it would be nice if the form required the field to be filled..
I agree with Leefish, the invitation mod is probably your best bet. Plus it makes it very easy to manage.
Tried it before but seems way to elaborate for my use.
Still in doubt, other answers to the original question are welcomed.
If you go to the member_register_referrer template you will see this html:

<script type="text/javascript" src="jscripts/autocomplete.js?ver=1400"></script>
<script type="text/javascript">
<!--
	if(use_xmlhttprequest == "1")
	{
		new autoComplete("referrer", "xmlhttp.php?action=get_users", {valueSpan: "username"});
	}
// -->
</script>

Remove that. It will prevent the autocomplete. I have no idea if it will still check if the username exists though.