Support Forum

Badges not showing up

WM William Mikell
William Mikell
Member

I have uploaded and configured badges for my different groups but they are not showing up for the users?

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

these are badges for usergroups?  if so, by default, they are not shown opting instead for forum rank badges or special rank badges… but you can simply add the template tag for the badges to appear where you want…

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

this would be in your topic view template file… again, child theme recommended…

worth noting, that when 5.5.6 releases, we have updated all of our themes to by default output the usergroup badges as well… just means you might get three badges, but lets users decide which to keep…

WM William Mikell
William Mikell
Member

One more question

Got the group membership badge showing and centered but using

sp_PostIndexUserMemberships(‘tagClass=spCenter’);

but I only want to show the badge for the group and not the text title

I changed the line to this

sp_PostIndexUserMemberships(‘tagClass=spCenter’,’ showBadge => 1′,’ showTitle => 0′);

But no change. I’m not a programmer what am I missing or doing wrong?

MP Mr Papa
Mr Papa
Member

No, its a single argument list, not individual..  so

sp_PostIndexUserMemberships(‘tagClass=spCenter&showBadge=1&showTitle=0′);