[ThinkTank] Access by unique code which sets user role
-
Since I just registered, I’m new to WordPress and just wrote my first topic I thought it might be a good idea to ask the community if my idea was any good.
So, we offer excel sheets with commodity supplier data (wood, metal etc.) and functions (calc etc.). Our business partners get access to these after they signed a contract processing of these commodities by us.
We offer these contracts for 3 months, 6 months, 1 year and 2 years. The codes are quite automatically send to them by e-mail within 24 hours.
So right now, after endless hours of plugin-testing, errors and screaming this is what it looks like right now:
There’s four user groups. I used Members and Pie Register to restrict the visibility of our sites content. So guests need to register, which is only possible with one of 20000 invitation codes. Usage of the codes has been limited to 1. So every code is unique and can only be used one time.
After registration with the invite code, a user role is assigned (based on the used code): “3 months member”, “6 months member” etc.
As you may have read in the other topic, my idea is now to implement a plugin which allows to stay in a user role only for a certain time period (ofc 3, 6, 12, 24). After the time is up, the user will automatically be set back to default user and will see a notice that, to read posts, he has to get another code. Under the notice or somewhere else should be an “invite code” field, which allows the now default user to put in another code whereafter the user role is changed again according to the code used.
As mentioned in the other topic, I’m still not sure how to do that, but that shall not be part of this topic.
I’d just like to know what you all think. Is this too inelegant? Did I overcomplicate this?
I’m totally new to WordPress, so your opinion really matters to me.
Kind regards
Alex
The topic ‘[ThinkTank] Access by unique code which sets user role’ is closed to new replies.