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 rank icons invisible?
Avatar
Jeremy Johnson
Member
Free Members
sp_UserOfflineSmall Offline
Jun 26, 2015 - 3:56 am

I didn't post this into the plugins section because the forum ranks came with the SP app itself and not the plugins.

I made about 8 forum ranks. The images were showing just fine on the forum. I also have a "contributor/donator/owner" medal that shows posters with those privileges. Unfortunately no matter what i do i can only get the special rank icons to show up and the regular ranks do not, even though they were at one point. 

The images are 32x32 and i checked they were uploaded into the correct directory, even tried replacing all the files to make sure it was all correct.

Unfortunately due to some issues right now the site isn't live, so if you can't help me i will get it up and link it but i just wanted to know if there was anything anyone could do to help, thanks!

Edit: By the way, when you click on the user's name and go to their profile it shows the rank icons there but not in the actual forum in thread view.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 26, 2015 - 4:45 am

Can we just start by confirming exactly what we are talking about here...

You are, if I follow it, referring here to the standard ranks based on number of posts? Biut I see you also have some special ranks defined.

Do ALL users have a Special Rank? And if there is a user that does NOT have a special rank, do you see their normal rank badge?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jeremy Johnson
Member
Free Members
sp_UserOfflineSmall Offline
Jun 26, 2015 - 8:10 pm

Thanks for the response.

There are four special ranks, donator, contributor, moderator, owner. I personally have the owner special rank. There are no other users assigned special ranks.

Because the site is not up there are just dummy users i have created. They all started out on the default standard rank set. My first rank is set to 0 posts is automatically assign to any new users. (I have also set it to 2 posts and posted twice to see if it has to register a post being made)

Everything was going fine and dandy, but then i noticed none of them were showing up. I disabled all recent plugins, and it didn't work still. Tried replacing all the image files with the same files or different files, (All PNG by the way)

When you click on the user picture, and it pulls up the pop up window that displays the info, it shows the picture there, just fine. But when i am actually in the thread of a forum, where there are 5 or so responses from all my dummy accounts, none of the "forum rank" icons show.

 

profile-help.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 27, 2015 - 3:06 am

The important question you did not answer was 'if there is a user that does NOT have a special rank, do you see their normal rank badge?'.

The reason for this question is that in the display function sp_PostIndexUserRank() - which is responsible for displaying the standartd forum ranks - there is an argument named 'hideIfSpecialRank'. If this is turned on (set to 1) then it will not display standard rank if a special rank for the user has been set up.

So I was trying to determine if this was the issue you were experiencing with that question.

Take a look at the template again - the standard rank function is just above the one we changed before. Depending on which So theme you are using then the hideIfSpecialRank argument may be included and just needs a change from the 1 to a zero. If not and you need help to make the change we can do that but let us know what the function DOES consist of.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jeremy Johnson
Member
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2015 - 8:43 pm

Thank you for your response. The answer to your question is no.

I did some investigating around the  spTopicViewMobile and spTopicViewDesktop.

Here is the Desktop

sp_ColumnStart('tagId=spColTopic1&tagClass=spUserSection spLeft&width=0&height=50px');
 sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user', $spThisPostUser);
 sp_PostIndexUserName('tagClass=spPostUserName spCenter');
 sp_PostIndexUserLocation('tagClass=spPostUserLocation spCenter');
 sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&showBadge=0&hideIfSpecialRank=1');
 sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');
 sp_PostIndexUserMemberships('tagClass=spPostUserMemberships spCenter');
 sp_PostIndexUserPosts('tagClass=spPostUserPosts spCenter', __sp('Forum Posts: %COUNT%'));
 if (function_exists('sp_PostIndexCubePoints')) sp_PostIndexCubePoints('tagClass=spPostUserCubePoints spCenter', __sp('CubePoints'));
 sp_PostIndexUserRegistered('tagClass=spPostUserRegistered spCenter', __sp('Member Since:<br /> %DATE%'));
 sp_PostIndexUserStatus('tagClass=spCenter spPostUserStatus', __sp('Online'), __sp('Offline'));
 sp_SectionStart('tagClass=spCenter', 'user-identities');
 sp_PostIndexUserWebsite('', __sp('Visit my website'));
 sp_PostIndexUserTwitter('', __sp('Follow me on Twitter'));
 sp_PostIndexUserFacebook('', __sp('Connect with me on Facebook'));
 sp_PostIndexUserMySpace('', __sp('See MySpace'));
 sp_PostIndexUserLinkedIn('', __sp('My LinkedIn network'));
 sp_PostIndexUserYouTube('', __sp('View my YouTube channel'));
 sp_PostIndexUserGooglePlus('', __sp('Interact with me on Google Plus'));
 sp_SectionEnd('', 'user-identities');
 sp_ColumnEnd();

Here is the mobile.

sp_PostIndexUserDate('tagClass=spLeft spPostUserDate&stackdate=0');
 sp_PostIndexUserRank('tagClass=spPostUserRank spRight&showBadge=0&hideIfSpecialRank=1');
 sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spRight&showBadge=0');
 sp_PostIndexUserMemberships('tagClass=spPostUserMemberships spRight');

I discovered changing the values does make the icons come back. I figured the spRight&showBadge is supposed to be 1.

I changed it but now the icons are not centered. They veer over to the left of the box, it is very unnatural looking but i can't seem to fix it.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2015 - 10:24 pm

yes, in reboot, if you want to show badges for the ranks, you need to set badge=1 instead of the 0... 

frankly, not sure why the default is 0 since its 1 for all our other themes...  will ask @ike if that was intentional...

do you have updated screenshot of its placement?  you did leave the spCenter intact for desktop, correct?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jun 30, 2015 - 4:53 pm

Hey Jeremy,

Could you please post a screenshot of your rank icons to highlight the problem - when you say 'they veer over to the left side of the box'?

I've just committed a fix for this to be released in the next version, just want to make sure I'm not missing anything.

Thanks.

Avatar
Jeremy Johnson
Member
Free Members
sp_UserOfflineSmall Offline
Jul 11, 2015 - 9:37 pm

Thank you for the responses. I figured it wasn't the coding on SP's behalf that made the images messed up. I did review it and get it sorted out. There were a few pieces of code i had tried editing to make work but never edited back, but i got it thanks, that answered my question!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 11, 2015 - 9:57 pm

glad we could help!

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