User Group hook?
Quote from time2talk on July 12, 2018, 3:39 pmI have been searching for a forum plugin for a while and so far Asgaros seems to be the best option for my application. I can see why it is gaining popularity!
I run a non-profit website where I would like to give donors access to additional forum categories so I created a “members” user group. Is there a hook that would allow me to toggle the users status in this group? For example, a donation will allow that user to access the “members” category for one year. After a year, they will not be able to access the “members” category until they make another donation. I don’t want to remove them as a user on the site since they may donate again in the future. I hope to have hundreds of users someday so the process of setting and clearing the “members” user group status will need to be automated.
Thanks for your help and for a great plugin!
I have been searching for a forum plugin for a while and so far Asgaros seems to be the best option for my application. I can see why it is gaining popularity!
I run a non-profit website where I would like to give donors access to additional forum categories so I created a “members” user group. Is there a hook that would allow me to toggle the users status in this group? For example, a donation will allow that user to access the “members” category for one year. After a year, they will not be able to access the “members” category until they make another donation. I don’t want to remove them as a user on the site since they may donate again in the future. I hope to have hundreds of users someday so the process of setting and clearing the “members” user group status will need to be automated.
Thanks for your help and for a great plugin!
Quote from Asgaros on July 12, 2018, 8:11 pmHello @time2talk
So basically you use a donation-plugin for WordPress which you want to “connect” with Asgaros Forum so that the donator will automatically get added to a specific usergroup? In this case you can do this automatically if this plugin has some kind of “after-donation-complete”-action where you could call the inserting-function:
AsgarosForumUserGroups::insertUserGroupsOfUsers($user_id, $usergroup_id)To remove users automatically after one year you have to save additional user meta data (maybe the donation date) for that user and use some daily cronjob which – for example – could check the date and remove it from the group after 360 days.
Hello @time2talk
So basically you use a donation-plugin for WordPress which you want to “connect” with Asgaros Forum so that the donator will automatically get added to a specific usergroup? In this case you can do this automatically if this plugin has some kind of “after-donation-complete”-action where you could call the inserting-function:
AsgarosForumUserGroups::insertUserGroupsOfUsers($user_id, $usergroup_id)
To remove users automatically after one year you have to save additional user meta data (maybe the donation date) for that user and use some daily cronjob which – for example – could check the date and remove it from the group after 360 days.