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
Forum Post Ranks + Special Ranks
Avatar
Cringe Channel
Member
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2013 - 6:12 pm

Hey, I was wondering if there was any way to make it so that the forum post rank badge shows up in addition to any special rank badges someone's been given, such as moderator. It is possible to give them multiple special badges that show up at the same time, however, whenever I assign someone a special rank, the rank that's determined by their post count disappears and is replaced by whatever the first special rank I assign them is.

 

Thanks in advance!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2013 - 6:14 pm

yes...

see:  http://codex.simple-press.com/.....xuserrank/

in particular, the hideIfSpecialRank argument...

Avatar
Cringe Channel
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 12:11 am

I have never coded anything in my life. 

Please give me step by step instructions on what I need to do. 

The link you provided obviously has the relevant information but I feel like I'm reading a foreign language. Please help. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 12:23 am

putting a template tag or adjusting arguments in a template tag is not really coding... ;)

find this template function in your sp theme... the topic view template file... spTopicView.php

sp_PostIndexUserRank()

and add the hideIfSpecalRank argument... so change something like:

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

to

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&hideIfSpecalRank=0');

that will change the default from hiding if special ranks to showing both...

Avatar
Cringe Channel
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 10:41 am

So I went into theme editor and modified my theme as you said. I replaced that the text as you suggested but it did not work. There do not appear to be any changes. What do I try now?

here is an example of a thread where you cansee that there are no changes

 

http://www.cringechannel.com/f.....festation/

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 10:42 am

please show me exactly what your template function call looks like now...

Avatar
Cringe Channel
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 10:54 am

I pasted the surrounding functions as well for context

sp_PostIndexUserLocation('tagClass=spPostUserLocation spCenter');
sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&hideIfSpecalRank=0');
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 11:13 am

you (maybe it was me) spelled special wrong..

hideIfSpecialRank

Avatar
Cringe Channel
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 1:53 pm

fixed typo; still no luck :(

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 10, 2013 - 2:40 pm

OK - just want to check as you said you are a beginner coder!

hideIfSpecialRank=0

Did you put a zero on the end there or a capital o? As it must be a zero/number.

andy-signature.png
YELLOW
SWORDFISH
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