We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Invitation Only-Registrations
Topic Started: Aug 11 2012, 04:58 PM (749 Views)
Lewis
Member Avatar
Designer.
[ *  *  * ]
Board Address: None
Board Software: ZetaBoards
Description:

I'm looking for a code that creates an 'invite only' community. However, I don't want the community to have to rely on people finding us, I want to be able to send out invitations and have some sort of invitation code that members receive allowing them to register (and therefore taking away the need for admin approval all the time). Here's a brief outline of something like the process I imagine.

Step 1: Generate a random code (this step could be manual).
Step 2: This code can then be mailed to a potential user (this step could be manual).
Step 3: The user attempts to register with this code.
Step 3.5: If the code matches one previously generated (or added to an approved list or something): member can register. If the code does not match, the member is unable to register.

Of course, if this is too complicated (or something) then any similar system would be awesome. I don't mind discussing. :)

Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I believe it would require a lot of manual work to get a system like this to work. A system like this probably wouldn't be secure enough with JavaScript. How I see it being done with JavaScript is an administrator manually emails a random code to a user and if they insert that code in a custom profile field on the registration page and it matches one of the codes being used in the script, then they will be able to register. Disabling JavaScript or viewing the page source is a simple way to deter it. Admin validation is probably your best option.
Offline Profile Goto Top
 
Lewis
Member Avatar
Designer.
[ *  *  * ]
Cory
Aug 11 2012, 05:34 PM
an administrator manually emails a random code to a user and if they insert that code in a custom profile field on the registration page and it matches one of the codes being used in the script, then they will be able to register.
That's pretty much what I'm looking for.

Cory
Aug 11 2012, 05:34 PM
Disabling JavaScript or viewing the page source is a simple way to deter it. Admin validation is probably your best option.


The amount of people that would (a) know this and (b) actually do it, are minimal I think. If they know this, then we'd probably want them on board anyway.

It's more just an easier way to manage those people whom are allowed to post. If a few slip through the net, I'm sure moderators and admins could hold them off and ban them.


If this is possible, despite the faults, I would still like it to be completed, please.
Edited by Lewis, Aug 11 2012, 05:39 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Users & Groups Posted Image Profile Fields

Create a new 1 line text profile field:

Title: Invitation Code
On Registration: Yes
Show field in topics: No
Admin Only Edit: No
Maximum input length: 100

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
var invitationCodes = ['INVITATION_CODE', 'INVITATION_CODE', 'INVITATION_CODE'];

$('table.register').closest('form').submit(function (e) {
var value = $(this).find('td.c_desc:contains(Invitation Code)').next('td').find('input').val();

if (invitationCodes.indexOf(value) == -1) {
e.returnValue = e.preventDefault && e.preventDefault() ? false : false;
alert('Your invitation code does not match the one that was emailed to you');
}
});

$('#edit_profile td.c_desc:contains(Invitation Code), table.profile td.c_desc:contains(Invitation Code)').parent('tr').remove();
</script>
Edit INVITATION_CODE as necessary, the example will input three invitation codes, you can add or remove as many as you like.

Thank Quozzo for the if statement.
Offline Profile Goto Top
 
Lewis
Member Avatar
Designer.
[ *  *  * ]
Works perfectly.

Appreciate it. Thanks :D
Offline Profile Goto Top
 
Ardy
Member Avatar
.
[ *  *  *  *  * ]
Awesome job, Cory! :)

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic