Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
ranks to display in header question
Avatar
kevin calvelli
Member
Free Members
sp_UserOfflineSmall Offline
Nov 15, 2015 - 3:43 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 15, 2015 - 4:52 pm

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);
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626