Support Forum

Changing default registered "Member" rank label

KS Karthik Subramanian
Karthik Subramanian
Member

Hi guys,

 

Is there any way of changing the default user rank for a newly registered user from “Member” to something else?  The basic premise for my forum is so that the newly registered users will get the “Visitor” rank – which they can post in certain forum and when they’re approved from an application to being a member, I can change their rank to “Member” along with change in the usergroup.

 

Thanks.

10 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

In the forum admin > components > forum ranks there are two options – ranks that automatically change by the number of posts a member has made or special ranks where you manually allocate users into a rank. Does this cover what you need?

KS Karthik Subramanian
Karthik Subramanian
Member

Yellow Swordfish said
In the forum admin > components > forum ranks there are two options – ranks that automatically change by the number of posts a member has made or special ranks where you manually allocate users into a rank. Does this cover what you need?

Not really. I’d like newly registered users to have a “Visitor” rank rather than the default “Member” rank that is shown below the avatar portrait when a new account is created.

MP Mr Papa
Mr Papa
Member

guess we are not understanding what you want…  a rank of Member is just a name… change it to Visitor if you want on forum – components – ranks… I think we give you two New Member and Member, but you can make it whatever you want…  changing ranks is then based on number of forum posts… you can have as many different levels as you like…  Each rank can also have a badge…

Additionally, there is a category of special rank…  this are simply a rank you can assign users too…  they too have a badge…  there is no criteria for getting a special rank so you manually put users in special ranks…

KS Karthik Subramanian
Karthik Subramanian
Member

Hmm. Here’s the scenario which I wish to do:

 

1. New user registers to the forum

2. User is assigned user group “Visitor” automatically.

3. User is assigned “Visitor” rank automatically.

 

Here’s what is currently happening:

 

1. New registers to the forum

2. User is assigned user group “Visitor” automatically.

3. User is assigned “Member” rank automatically.

 

Ranks based on posts aren’t pertinent to my forums. I then manually change the rank to “Member” from the special ranks section.

YS Yellow Swordfish
Yellow Swordfish
Member

Looks like it is the ‘automatic’ bit that might be the issue. I am not as familiar with ranks as I perhaps should be so we really need Steve for discussion – but he is away for a couple days.

A new registrant will pick up the rank assigned in the first ‘Forum Ranks’ list. So ignoring the number of posts mechanism it sounds like you want to rename this one ‘Visitor’.

The next bit is the bit SP does not currently do which is to trigger a rank change upon a user Group change. so this means a manual movement into a Special Rank which you would call ‘Member’. Now I am going to raise this for discussion this end as I can see some sense in a possible linkage between User Group and Rank.

An alternative would be to display the User Group name as an alternative which is OK if users are restricted to single user group membership.

KS Karthik Subramanian
Karthik Subramanian
Member

Yellow Swordfish said

An alternative would be to display the User Group name as an alternative which is OK if users are restricted to single user group membership.

That would be a good idea 🙂 Any method on going about this change in the code?

BR Brandon
Brandon
Member

Here is an idea.

In Forum Ranks make the first entry “Visitor” and number of posts up to like 5000.

Then delete any other rank entries. That will give anyone a rank of Visitor after the first post. Change the default avatar if needed so it doesn’t have the word ‘Member” in it.

Under the regular ranks panel go to Special Forum Ranks and add a special rank called Member.

When someone is approved by you to be a Member then you can manually change their rank to Member by adding them to that rank on the same page.

YS Yellow Swordfish
Yellow Swordfish
Member

Or – if you would like to display the user group the poster belongs to then you could try this function:

sp_PostIndexUserMemberships('tagClass=spPostUserRank spCenter');

replacing the current ‘rank’ functions. Note – afraid I have not tried this myself tonight.

KS Karthik Subramanian
Karthik Subramanian
Member

Yellow Swordfish said

Or – if you would like to display the user group the poster belongs to then you could try this function:

sp_PostIndexUserMemberships('tagClass=spPostUserRank spCenter');

replacing the current ‘rank’ functions. Note – afraid I have not tried this myself tonight.

I’ve tried is and I get the following error (Note that it outputs the usergroup after the error)

 

Warning: Missing argument 3 for sp_PostIndexUserMemberships(), called in /problem-with-post-edit-buttonome/content/02/9101702/problem-with-post-edit-buttontml/wordpress/wp-content/sp-resources/forum-themes/default/templates/spTopicView.php on line 108 and defined in /problem-with-post-edit-buttonome/content/02/9101702/problem-with-post-edit-buttontml/wordpress/wp-content/plugins/simple-press/forum/content/sp-topic-view-functions.php on line 719

Members

 

I’ve tried the previous method (from Brandon) before but what I’ve noticed is that when a new user comes in, the other previous users rollback to the Visitor usergroup and don’t maintain the Member usergroup permissions.

YS Yellow Swordfish
Yellow Swordfish
Member

My apologies. It does need some parameters.

sp_PostIndexUserMemberships( 'tagClass=spPostUserRank spCenter', 'noMembership', 'admin' );

Replace the noMembership parameter with text to show if a user is being displayed who does not currently belong to any user groups. If not needed just pass an empty string.

Replace the admin parameter with the text to show for a forum admin who does belong to any user groups. Again you can leave this empty of you prefer.

Sorry about that – it is a recently added function I was unfamiliar with.