Support Forum
Hey forum!
I'm playing with custom icons on the forums, and realize that most can be done throug the wp-admin options.
However, i've run into a problem. I have 3 registered administrators on my forum, myself included. (administrator not moderators). Trouble is, that when i give a user "administrator" rights, the text "Administrator" is added below their nick when viewing a post.
I don't want that. I want an image displayed instead (much like the admins on this forum have), and to do that, i've created a custom rank, uploaded the image i wanted and added the admins to that rank. So now i have the image displaying, but beneath that, it still says "Administrator" in plain text - how to remove it?
This will require a small edit to the template display function controlling the display of Special Ranks. The file you beed is the spTopicView.php template in the /templates folder of your SP theme.
The function you need is called sp_PostIndexUserSpecialRank() and by default probably look something like:
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');
You need to add an argument to inhibit the display of the title which, by default, is turned on. You do that like this:
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&showTitle=0');
Note the ampersand!
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/.....g-a-theme/)
YELLOW
SWORDFISH
|
1 Guest(s)