Support Forum

Adding more then 3 standard forum ranks.

NH Nicholas Heinig
Nicholas Heinig
Member

As the title states I am trying to add more standard forum ranks, but cannot figure out where the option is hiding.

Could someone point me to where the option is to increase the amount of standard forum ranks?

 

Thanks in advance

Nicholas

15 Answers

New Answer

MP Mr Papa
Mr Papa
Member

on the forum – components – forum ranks admin panel… just add the new rank, and adjust the various number of posts required to achieve that rank…

NH Nicholas Heinig
Nicholas Heinig
Member

Yeah, this was caused by my own stupidity, with naming things inappropriately.

Oddly thought it’s not giving the badges to the various members who have fulfilled the post requirement

 

Edit: It seems to be awarding the post count badges on some and not on others, so I must have messed up the groups somehow.

NH Nicholas Heinig
Nicholas Heinig
Member

Edit: Managed to answer my own question.

Is there anyway to push SP to allow badges per post and special rank badges?

YS Yellow Swordfish
Yellow Swordfish
Member

So is all well with the exception of that last question?

And if so – can you explain what you mean by ‘badges per post’ and how that would work?

NH Nicholas Heinig
Nicholas Heinig
Member

Yes, thanks Yellow the original issues were resolved when I RTFM’ed

As far as badges go though, I trying to “Gamify” my site as much as possible.

I have “leveling” badges that change as you post more, showing your leveling “progression”. But I also created special ranks that I was awarding to veterans managers and otherwise which I also set a badge for.

When I was reading the nice help buttons I read that if you assign a member a “special forum rank” that it will over ride the standard ranks.

I would really love to have both the standard forum rank badge and the special forum rank badge displayed on the user info next to the post at the same time instead of only one or the other.

MP Mr Papa
Mr Papa
Member

you can choose to display both if you like… by default, special ranks override…

see:  http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/topic-view/sp_postindexuserrank/

for the template function to modfiy if you want both.. namely, the hideIfSpecialRank argument..

YS Yellow Swordfish
Yellow Swordfish
Member

I have opened a ticket to get that help changed as it is a little out of date. You CAN have both but you will need to make a small edit to the display template. Simple stuff.

The template in this case is spTopicView.php in the /templates folder of the SP theme you are using.

Locate the call to the function sp_PostIndexUserRank(). It will probably looks like this:

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

You need to add an argument (hideIfSpecialRank) to this function call exactly as shown below:

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&hideIfSpecialRank=0');

Note the ampersand… That should allow for both to display successfully.

YS Yellow Swordfish
Yellow Swordfish
Member

Oh by the way… As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/)

NH Nicholas Heinig
Nicholas Heinig
Member

Thank you both for your help

I should be able to pin it down from there.

ML Mark Lyons
Mark Lyons
Member

All,

Good afternoon/evening! I located this solution that allows the inclusion of the two available ranking methods on member profiles & posts:

1) Standard Ranking (based on the number of posts)
2) Special Ranking (based on who they are)

Unfortunately, replacing the code in the spTopicView.php file as noted above did not solve the problem. The Special Ranking replaces the Standard Ranking … both are not showing.

Any suggestions on how to resolve this issue?

Also, is there a way to remove the ranking titles? That is, have the ranking badges show only … not the words describing them (“Moderator”, “Admin”, etc, etc).

Thanks in advance,
Mark

ML Mark Lyons
Mark Lyons
Member

All,

Actually, the solution worked for posts … but not for profiles. Is there a way to make it work for profiles?

Again, the other issue is removing the badge title from both ranking methods … hopefully there’s an easy solution for that.

Thanks again,
Mark

IK Ike
Ike
Member

Hey Mark,

For starters, what theme are you using as it will play a part in how the rank badges are displayed.

My guess would be that the reason it works for posts and not profiles is that you’ve only edited the spTopicView.php template. For profiles, you will need to do the same for spProfilePopupShow.php and spProfileShow.php.

Without knowing more, another guess would be that you need to add the argument ‘showTitle=0‘ to your functions sp_UserForumRank and sp_UserSpecialRank.

reference:

https://simple-press.com/documentation/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_userforumrank/

https://simple-press.com/documentation/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_userspecialrank/

ML Mark Lyons
Mark Lyons
Member

Hi Ike,

That worked perfectly! While I was at it, I also added the ‘showTitle=0‘ argument to the following functions:

sp_PostIndexUserRank
sp_PostIndexUserSpecialRank

Using these references:

https://simple-press.com/documentation/codex/api/template-functions-and-the-api/display-template-functions/topic-view/sp_postindexuserrank/

https://simple-press.com/documentation/codex/api/template-functions-and-the-api/display-template-functions/topic-view/sp_postindexuserspecialrank/

This, of course, removed the rank titles from the posts … a much cleaner(and less repetitive) look!

By the way, I’m using the Stacked theme.

Much thanks!
Mark