PDA

View Full Version : require referer field on registration


jesus likes pie
07-30-2008, 08:05 PM
I have a forum which uses a product to make it invite only. When someone gets an invitation the mod automatically fills in the referer field so through a template edit I locked the field to make it unalterable.

Unfortunately I noticed that if there is an error during registration (like if passwords or emails don't match) when the page reloads to tell you there was an error it no longer has the referer field filled!

SO...is there a way to make registration fail if the referer field is empty? It is crucial that every user registers with a referer.

Thanks.

Opserty
07-30-2008, 08:49 PM
You could probably do a check with some PHP code in a Plugin. Check the code which handles the registration in register.php find a suitable hook location and which variables you'd need check.