Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Special Rank Badges and Names
Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2015 - 12:01 pm

Hi there

Could you please teall me how could I remove Special Ranks names in topic view? I would like to see only badges and not their associated rank name.

Thanks

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2015 - 12:25 pm

Hey Weltall,

Have you taken a look at the function reference in the Codex for Special Ranks? You should be able to do it with the showTitle argument.

Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 24, 2015 - 8:03 am

Uhm It seems not working for me

I change showtitle to 0 of sp_PostIndexUserRank function in topic-view-functions.php and also in sp_UserSpecialRank function of common-view-functions.php

Did I do something wrong?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 24, 2015 - 8:19 am

You should not be editing core code but making changes to your theme templates - the spTopicView template. What SP theme is this you are using and have you made a child theme so you can make changes safely?
But - if you changed the actual functions themselves then it should work so - are we talking about the same thing? And are you using any caching plugin that might be showing old data?
Perhaps a screenshot of what you are referring to would be helpful just so we know...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 24, 2015 - 8:30 am

Immagine-1.jpg

Here it is

I'm not using any cache plugin. My template is reboot.

In topicview.php of my template, what should I change? My knowledge of php is basic, i have to add something here

sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');

right?

Also, can you please tell me what is difference between child theme and default themes?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 24, 2015 - 8:45 am

In reboot you will find the spTopicViewDesktop.php file in the 'desktop' folder under the main templates folder. Both the normal and special forum rank functions are defined in there. You need to add a showTitle argument to that. As in:

sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&showTitle=0');

Note the ampersand in there. And no spaces.

A child theme will save any changes you make from being lost in subsequent updates of the software and are  very easy to create - we do supply frameworks downloadable from our download pages. See this codex article for in-depth help: 

https://simple-press.com/docum.....ild-theme/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 24, 2015 - 9:02 am

Thanks so much! it works! 😉

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 24, 2015 - 11:55 am

Good news. Thanks for the update

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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625