Quote:
Originally Posted by Marco van Herwaarden
You're doing it wrong, you should be using User Titles for this.
|
Quote:
Added the user manually to the subscription from the AdminCP.
- His userrank now changed to "Mod Rank". No need to update counters or anything.
|
Great. You're close, but you've only done the first half.
Now, go to the user profile (in Admin CP) of the test user that moved from rank "Reg Rank" to "Mod Rank", and edit the active Paid Subscription for this user. Set it to Active: No and click Save. (Edited To Add: This simulates expiry of Paid Subscription)
This should make the user go back from Mod Rank to Reg Rank, correct? But this doesn't get updated. You can confirm this by doing the above with your test user and looking at the user's profile (regular view from forum). Note that you will still see Mod Rank displayed for your test user.
But if you go back to the test user's profile in Admin CP and just click Save, the test user's rank will now show as Reg Rank (you can again confirm by looking at the regular forum view of the user's profile). This is a manual update to the rank. I want to automate this.
You can repeat the test by:
Setting the subscription back to Active: Yes (check rank, it should be Mod Rank)
Then setting the subscription to Active: No (check rank, it should be Reg Rank but it is still Mod Rank)
Now just go back to the user's profile (Admin CP view) and click Save (check rank, it now correctly updates to Reg Rank)
Repeat if necessary to check again. Same thing happens each time.
Thanks for your efforts. Let me know if you get any ideas after you test the above.