HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Removing old roles when promoting?

This discussion is related to the Yet Another Gamification Application addon.

Using Vanilla 3.3 and Yaga 2.0.2 (although I probably changed a thing or two).

I would like to set up an automatic promotion for new members and was experimenting with using Ranks to do that. Basically, a new member shows up and gets a New Member role, which lets them browse the forums and post stuff, but they can't edit profiles or signatures yet. This is to combat dodgy SEO outfits from opening up a bunch of profiles, stuffing their links in all the text fields and then leaving them there uglying up my nice members list in hopes of scoring some search engine points. Was especially popular back in the vBulletin days. Anyway, once a new member makes a few legit posts and sticks around for a while, I'd like to promote them to a regular Member who can access all the features.

This is easy enough. Just set up a rank that requires a few posts, a week since registration and dishes out the Member role. The problem is the New Member role sticks around after the promotion, so people that go through the process end up having New Member, Member in their profiles. Functionally not a big issue, since the permissions work like they're supposed to, but it does look a little silly. I could always go around removing the New Member roles manually, but that sort of defeats the purpose of automating it in the first place.

Can anyone think of any way to remove old roles when awarding new ones with a new rank?



Sign In or Register to comment.