Support Forum
I added a rank badge that is just the user group - like on this forum for the level.
It shows that, and below it still shows the text version of the user level. So I have badge showing "administrator" and below it the text saying "Administrator".
How do I get the text to not show below the badge?
Thank you!
when you call the template tag, just add an argument of showTitle=0
Visit Cruise Talk Central and Mr Papa's World
no worries... in the file spTopicView.php of your sp theme, find this line:
sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');
and change it to
sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&showTitle=0');
to learn more about how themes work and template files and template tags, check out: http://codex.simple-press.com/.....ex/themes/
Visit Cruise Talk Central and Mr Papa's World
The topic view uses the appropriately named spTopicView.php template in your SP theme. You can edit this template using the theme editor editor.
If you look through the template you will see the top to bottom display elements of the topic page.
Locate the call to the template function sp_PostIndexUserSpecialRank(). If currently set as the we supply it then it will probably be:
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');
To hide the title you need to add an argument called 'showTitle' and set it to false - like this:
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&showTitle=0');
Note that ampersand in there and no spaces. That will instruct the title not to be displayed.
YELLOW
SWORDFISH
|
noticing that you said 'user group' in the original post... so if you are doing this with the badges for the usergroups, the template tag would be:
sp_PostIndexUserMemberships()
and its the same showTitle=0 argument...
Visit Cruise Talk Central and Mr Papa's World
To not show the word 'Administrator' in your example that would be
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank&showTitle=0 spCenter');
in spTopicViiew.php around line #108
But what if you have:
1. Badges for moderators and administrators, and don't want to show the titles, you can put:
sp_PostIndexUserMemberships('tagClass=spPostUserMemberships&showBadge=1&showTitle=0 spCenter');
2. You have set up different User ranks, and want to show "New Member", "Very Active Member" and such. This line:
sp_PostIndexUserRank('tagClass=spPostUserRank spCenter' );
...also seems to trigger the Moderator-rank, even though I've removed it with "showBadge=1&showTitle=0" in the first example above.
See image:
Any Ideas?
1 Guest(s)