Support Forum

ranks to display in header question

KC kevin calvelli
kevin calvelli
Member

hi I am trying to display the forum rank in the buddypress header …..the mycred plugin lets you and I think it would be a great idea to display the simple press rank in the header either the special rank or the Standard Forum Ranks ….also when you do the ultimate member plugin do the same thing. thanks

1 Answer

New Answer

MP Mr Papa
Mr Papa
Member

you can display the forum rank wherever you want..

function sp_UserForumRank($args='', $ranks) {
    $defs = array('tagClass'    => 'spForumRank',
                  'titleClass'    => 'spForumRank',
                   'badgeClass'    => 'spForumRank',
                  'showTitle'    => 1,
                  'showBadge'    => 1,
                  'echo'        => 1,
                  );

is the template prototype…  or for special rank

 

function sp_UserSpecialRank($args='', $ranks) {
    $defs = array('tagClass'    => 'spSpecialRank',
                  'titleClass'    => 'spSpecialRank',
                   'badgeClass'    => 'spSpecialRank',
                  'showTitle'    => 1,
                  'showBadge'    => 1,
                  'echo'        => 1,
                  );

if you mean in forum header, than in you spHead.php template file, just put it where you want it to dispaly…

so for example: 

sp_UserForumRank('showTitle=0', $spThisUser->rank);