Support Forum

Rank badges not assigning correctly

PJ Paul M Jerard Jr
Paul M Jerard Jr
Member

I have made the rank assignments and for example 100 and new member at 1 post.  But when I look at the front end, they are all at mega poster which is over 1000 at least.

I had edited the profile tags to this earilier:

sp_PostIndexUserSpecialRank(‘tagClass=spPostUserSpecialRank spCenter&showTitle=0’);
sp_PostIndexUserMemberships(‘tagClass=spPostUserMemberships spCenter&showTitle=0’);

And thought that may have been the problem (as it seemed to be working 2 days ago) so I put it back to default but that didn’t fix it.  

Any ideas? My settings are attached.

 

Thank you,

Meredith

ranks.pngranks1.png

14 Answers

New Answer

IK Ike
Ike
Member

It might be worth just clearing your browser cache. Just thinking on the off chance it was the first badge you uploaded.

Other than that, try running the user post recount task and if that doesn’t help the flush general cache task in Forum > Toolbox > Housekeeping > User Post Count Cleanup / Flush General Cache.

IK Ike
Ike
Member

See checking your site from the link you posted in the other topic I looked for a poster with over 100 posts and checked a topic they’d posted in and it shows me they have the ‘Registered’ badge. I know it should be the 100 badge but it’s definitely not the ‘Mega Poster’ badge that you are seeing.

Are you running any caching plugins? If we’re seeing something different then it would suggest to me that it’s something along those lines.

YS Yellow Swordfish
Yellow Swordfish
Member

Let’s also confirm about what display function you are using in your template as both those you mention above are not relevant to standard forum ranks. So – are you actually using the sp_PostIndexUserRank() template function?

PJ Paul M Jerard Jr
Paul M Jerard Jr
Member

Actually, I removed them all and re-added them again, and they seem to be working as they are showing different badges BUT they are still not reflecting the correct number of posts made.

I cleared the caches, website, browser, forum, forum points.  I don’t see any fix there.

Now instead of “mega poster” it’s just whatever…

See:  http://www.yoga-teacher-training.org/forum/new-teacher-questions/moving-meditation-sequence/

So weird.  I’ll post a screenshot in case you see something else.

Also, the registered you were seeing was the group assignment icon, I removed that to eliminate possible conflict.

Rank:

ranks3.png

 

Rank Settings, reset

ranks3reset.png

Thanks!!

Meredith

YS Yellow Swordfish
Yellow Swordfish
Member

If you take a look at the popup help for this it does clearly state:

enter the name and the number of posts up to which it applies.

Thus – looking at your settings – anyone with between 1 and 100 posts is going to have the 100 posts badge and name applied. You do not need the first entry. Just one that applies to users up to 1 post.

PJ Paul M Jerard Jr
Paul M Jerard Jr
Member

I feel like such an idiot.  Thanks for your help and your time, it seems to be working now rolleys

Meredith

(Please know this is all me, and no reflection on my esteemed employer Dr. Jerard laugh )

YS Yellow Swordfish
Yellow Swordfish
Member

No worries. Working right is the main thing.

PJ Paul M Jerard Jr
Paul M Jerard Jr
Member

Ok, so lastly, I need to hide the rank text name as it’s redundant with the rank badge.

members-issue-1.png

 

I have this in the child theme 

sp_PostIndexUserSpecialRank(‘tagClass=spPostUserSpecialRank spCenter&showTitle=0’);
sp_PostIndexUserMemberships(‘tagClass=spPostUserMemberships spCenter&showTitle=0’);

and removed this:

#sp_PostIndexUserRank(‘tagClass=spPostUserRank spCenter&showBadge=1&hideIfSpecialRank=1’);

but that removes both text and image…

YS Yellow Swordfish
Yellow Swordfish
Member

Why would you comment out the call to sp_PostIndexUserRank() ? As I said above – that IS the display function for the standard ranks.

And to hide the text name you do what those other functions do – add the showTitle argument and set it to zero.

Full details on that function can be found in the codex for more information:

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

PJ Paul M Jerard Jr
Paul M Jerard Jr
Member

Sorry about that Mr. Swordfish 😉   I think I became confused between the user type badges and the rank badges. There’s alot to take in all at once, as this is a very robust piece of software 🙂 

The reason I commented that line was that I was looking at your profile on this forum and was trying to model after that,  but now I realized that they are 2 different things. 

In saying that, is there a possible way to hide the rank text and keep the rank image?

duplicate-rank.png

 

Thank you!

Meredith

IK Ike
Ike
Member

Assuming you are now using sp_PostIndexUserRank() as Andy said above, looking at your last post on the last page your sp_PostIndexUserRank() function doesn’t contain the ‘showTitle’ argument as the others above it do. Add that in the same format and it should get rid of the text label.

PJ Paul M Jerard Jr
Paul M Jerard Jr
Member

Ah, yup, I got it now. All is well in the SP world 🙂

Thanks!!

Meredith