Registration, unique keys and user groups

beregond 25 Mar, 2013
Hello folks,

got a question regarding the new CC and CF so I was wondering if it's doable with the new versions, or doable at all for that matter.🙂

Basically what I need is the following:
- the user registers on the site in normal fashion
- once the registration is complete, the user can access a form where he can enter a certain Key (imagine it as a product Key)
- this unique, one-time-use Key should assign the user to a specific user group that's defined through J! ACL or some 3rd party component (like Access-Manager)
- the user can enter as many keys as he wants, hence gaining access to more groups.
- for each Key the admin during generation should have a chance to enter an expiration time in days
- also, for the administrator, the Keys should be easy viewable/printable to see which are unused, or used (and by whom).
- also mass generation is a must (there will be a large number of Keys per group)

So, I'm wondering is something like this doable through the CC/CF combo? If yes, I could really use some help building it, and if needed, I'm ready to compensate for the whole turn-key solution for anyone who is willing to get their hands dirty.🙂

In essence, I need a way to limit access to certain areas of the site based on the product the costumer/user bought offline, so if anyone has any idea how to pull this off, I'm more then open to suggestions🙂

Thanks!
GreyHead 28 Mar, 2013
Hi beregond,

I think all of that is possible. The one exception is that I can't immediately see a simple way to set an expiry date on a User group membership. One way might be to use a cron job to update group memberships from time to time.

Bob
beregond 28 Mar, 2013
Hello Bob,

the expiry system could be integrated at a later point, so it's not a mandatory issue at this time.🙂

Could you give me a few pointers where to start out so I see if I could do this whole process alone or eventually come back crying in dire need of help? 🤣
GreyHead 29 Mar, 2013
Hi Bergond,

Start out by creating the Key Form. Use the Authenticator action in the On Load event to check the user is logged in. In the On Submit event use the DB Record Loader to look up the key info (see below) and then the Joomla! User Create/Update action to add the User to the appropriate User group.

And create a second form limited to Admins only to create new keys. I have an action here that will generate a key for you. Add boxes to the form to set the expiry date, related groups, etc. Save the results to a new DB table.

That's the two main pieces. You don't say here how keys get to the users.

Bob
This topic is locked and no more replies can be posted.