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
Hide forum ranks
Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Feb 12, 2016 - 7:58 am

Hello Andy, Ike, Steve

I hope all is well with you!

Have not been here at the SP forum for an long time, since my own forum have worked flawless.

Lets get to business.

I have a user group called "medlem" (members in swedish. I am not using forum ranks, but the forum displays the forum rank "medlem" (default i think).

This results in every member displaying "medlem" twice. Example: http://friskyttarna.eu/forum/b.....m/#p102039

It would be great if i could hide the forum ranks, since i am not using them anyway.

Cheers

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2016 - 9:46 am

Hey Meztli,

Good to know all has been well with your forum!

The function that displays memberships as default displays the text title. You can fix this one nice and quickly with a additional argument 'showTitle'.

It's been a while, but I'm pretty sure you're running a child theme right?

Edit your spTopicViewDesktop.php template - Around line 139 you should have 'sp_PostIndexUserMemberships'. Add 'showTitle=0' so:

sp_PostIndexUserMemberships('tagClass=spPostUserMemberships spCenter&showTitle=0');

And that should do it!

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Feb 12, 2016 - 2:15 pm

It works like a charm.

Thanks a lot Ike, much appricated.

Cheers!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 12, 2016 - 3:19 pm

glad tp help as always

andy-signature.png
YELLOW
SWORDFISH
Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Feb 15, 2016 - 4:15 am

Hi guys,

I want to do an update, that could be useful to other SP members.

Ike, your suggestion removed both the forum rank and the user group name (but left the badge).

I did however accomplish what i wanted by edit below line:

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&showBadge=1&hideIfSpecialRank=1');

And simply add 'showTitle=0'

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&showBadge=1&hideIfSpecialRank=1&showTitle=0');
Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 15, 2016 - 9:25 am

Fantastic, thanks for sharing!

I admit, it's sometimes hard to envisage what users want from the user info area hence the array of options there, but glad you got it working how you want it.

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