Support Forum

Forum Post Ranks + Special Ranks

CC Cringe Channel
Cringe Channel
Member

Hey, I was wondering if there was any way to make it so that the forum post rank badge shows up in addition to any special rank badges someone’s been given, such as moderator. It is possible to give them multiple special badges that show up at the same time, however, whenever I assign someone a special rank, the rank that’s determined by their post count disappears and is replaced by whatever the first special rank I assign them is.

 

Thanks in advance!

24 Answers

New Answer

MP Mr Papa
Mr Papa
Member

yes…

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

in particular, the hideIfSpecialRank argument…

CC Cringe Channel
Cringe Channel
Member

I have never coded anything in my life. 

Please give me step by step instructions on what I need to do. 

The link you provided obviously has the relevant information but I feel like I’m reading a foreign language. Please help. 

MP Mr Papa
Mr Papa
Member

putting a template tag or adjusting arguments in a template tag is not really coding… ;)

find this template function in your sp theme… the topic view template file… spTopicView.php

sp_PostIndexUserRank()

and add the hideIfSpecalRank argument… so change something like:

sp_PostIndexUserRank(‘tagClass=spPostUserRank spCenter’);

to

sp_PostIndexUserRank(‘tagClass=spPostUserRank spCenter&hideIfSpecalRank=0’);

that will change the default from hiding if special ranks to showing both…

MP Mr Papa
Mr Papa
Member

please show me exactly what your template function call looks like now…

CC Cringe Channel
Cringe Channel
Member

I pasted the surrounding functions as well for context

sp_PostIndexUserLocation(‘tagClass=spPostUserLocation spCenter’);
sp_PostIndexUserRank(‘tagClass=spPostUserRank spCenter&hideIfSpecalRank=0’);
sp_PostIndexUserSpecialRank(‘tagClass=spPostUserSpecialRank spCenter’);

MP Mr Papa
Mr Papa
Member

you (maybe it was me) spelled special wrong..

hideIfSpecialRank

YS Yellow Swordfish
Yellow Swordfish
Member

OK – just want to check as you said you are a beginner coder!

hideIfSpecialRank=0

Did you put a zero on the end there or a capital o? As it must be a zero/number.

MP Mr Papa
Mr Papa
Member

next question… who is this not working for?   just tested and worked fine for me…  but be aware the forum admins wont get badges for forum rank…

CC Cringe Channel
Cringe Channel
Member

So an admin can’t have a forum rank badge PLUS the admin badge?

What about moderators? Can they have rank badge plus mod badge? 

Is there a work-around for this?

So only regular users can have multiple badges?

MP Mr Papa
Mr Papa
Member

correct on admins… frankly, dont know why… but has been that way since the beginning… but any non admins can have forum rank badge and special rank badge…

CC Cringe Channel
Cringe Channel
Member

Well mods should still have the feature then, right?

Can i send you my login info privately and you can check this out yourself?