Associates
A visitor of the site can be:
– user: a visitor not registered
– associate: a visitor with a membership (regular member or member student). The membership can be active or expired not more than a certain period. This period (in years) is stored in the table topic_parameters, field topic_delay_membership.
– registered: the membership is expired longer than the same period
– honorary: a user without membership, but with a flag in his profile
– administrator
The degree of membership is determined by the class Membership.php (wp-content/themes/estore/classes).
Input: user id and delay membership
output:
0: user
1: member and associate
2: administrator
3: registered but not associate
4: honorary member.
The status of honorary member is managed by setting to yes the field forum with the edit function in the membership page. The field forum is a custom field (Ultimate Membership Pro, Showcases, Custom fields).
Every day a program (create_associates.php) is scheduled via Cron jobs to recreate the table moisa_associates with the list of the associates and of the honorary members (a flag states this condition).
The forum emails are sent to all the associates and to the honorary members.
The lists of associates (item Membership in the menu and item Associates in the Utilities) don’t report the honorary members.
Besides, the program create_associates.php delete the log records (table: topic_log and topic_email) inserted more than 1 year before the current date.
English
Italiano 