On websites how do you make it so the members can have an upgrade? Answered

for exampe members on instructables can become pro members

Discussions

0
None
frollard

8 years ago

Through various internet technologies, secure sections can be built that allow various different users to do/access different things. There are hundreds of such login schemes. I recommend a web-design course. Instructables is tailor built in this case to have users stored in a database, and if you pay or win a pro membership, that user account is flagged as pro for a given amount of time. Various other parts of the website read this database and display different pages based on the member status.

0
None
seandogue

8 years ago

A series of permissions are set for a user. In my case (not an ibles webcoder) I use a combination of check boxes, pulldown selections, and text fields to determine user account permissions. If the permission allows access to a particular area, the user may access it, if not, they can't. It's based on what they purchase and/or who they are. Examples of the type might include names like client, administrator, guest, etc.. Each has his/her own permissions, some have all (like certain forms of administrator)

In the case of Instructables, a time limited permission for "pro" status is assigned once a user has completed purchase of a time limited license (subscription). In my case, that was a two year license (subscription). At the end of that period, I can choose to reset the timer by purchasing more time, or I can allow it to lapse and move on to another pursuit.

The back of the napkin view of the code looks something like this (Again I don't work for Instructables and do not know their code, I just know code):

If credit card accepted, set_pro_access = true, (where set_pro_access is a boolean variable (true false))

I don't recall exactly how I chose a two year license, but setting the time allotment would be linked to the checkbox or radio button in the subscription form.