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
WPAchievements Ranks
Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2015 - 11:37 am

Yes Ike, same code. What should I use for showTitle=?

Thanks 🙂

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2015 - 11:40 am

Basically showTitle will display a text label for the usergroup / special rank etc.. showTitle=1 will display a text label as well as an image, and showTitle=0 will not.

Again, hopefully that's the right one!

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2015 - 11:46 am

That would be easy to check. 🙂

The only thing is that I don't want the other text that has been showing up such as Members Regulars and such.

Thanks, I'll give it a shot.

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2015 - 11:54 am

That didn't work 🙁

It just showed the titles of the Badges which is not good.

Screen-Shot-2015-06-29-at-11.50.02-AM.pngImage Enlarger

Screen-Shot-2015-06-29-at-11.51.38-AM-1.pngImage Enlarger

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

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

OK, sorry..

Those labels (Members, Regulars etc..) should be coming from sp_PostIndexUserMemberships

I can't see that in your code from the last page, but can you confirm that you do have that function in there? If so check the showTitle argument. My guess would be that it's either set to 1, or the showTitle argument isn't present. If the latter, you could add it i.e:

sp_PostIndexUserMemberships('tagClass=spPostUserMemberships spCenter&showTitle=0');
Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2015 - 12:59 pm

I tried changing:

sp_PostIndexUserMemberships('tagClass=spPostUserMemberships spCenter');
to
sp_PostIndexUserMemberships('tagClass=spPostUserMemberships spCenter&showTitle=1');

and

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

Still couldn't see the speical Forum Rank Name.
I don't have the PostIndexUserMemberships code in my new code though. It's located earlier.

sp_ColumnEnd();
sp_InsertBreak();
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&stacked=0&showTitle=0&imgClass=spUserBadge');
sp_SectionEnd('tagClass=spClear');

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2015 - 2:03 pm

sp_PosIndexUserMemberships is responsible for outputting the 'Members' and 'Regulars' labes, so using showTitle=0 was supposed to hide the 'Members' and 'Regulars' labels as you mentioned you wanted to do, did it do that?

I think there is some confusion here which is easily done.. In your original question you said 'but the Forum Rank Names based on # of posts don’t show up' - These are just standard forum ranks not special forum ranks, although I think I was looking at the wrong thing when I first read it myself..

I've just re-read the last page and must have missed this. If you are showing special ranks then standard forum ranks are hidden by default. You will need to add the argument hideIfSpecialRank to sp_PostIndexUserRank to get them to show up.. i.e:

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&hideIfSpecialRank=0');
Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Dec 18, 2015 - 6:55 am

OK, I'm back to this problem. Updated my stacked theme and tried to edit the spTopicView.php file to show our badges in a row. I've been able to fix it in the past using the guide below but the new stacked theme is different. Please help!!!

__________________________________________

Find the section that starts with the comment: # User Info post row. You will see that it starts with the function sp_SectionStart(‘tagClass=spUserSection’); and ends with sp_SectionEnd(‘tagClass=spClear’);

Within that section locate the call to:

 

sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');

 

We need to remove this line of code as it needs to be both modified and moved to a new location.

Now at the bottom of the section we need to add a break AND the function we have removed but with different arguments. So – the end of this section needs to look like this:

 

sp_ColumnEnd();
sp_InsertBreak();
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&stacked=0&showTitle=0&imgClass=spUserBadge');
sp_SectionEnd('tagClass=spClear');

This will centre your badges and remove the text label (necessary at the moment I am afraid). If you want them to be ranged over on the left then you will need to use:

sp_ColumnEnd();
sp_InsertBreak();
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&stacked=0&showTitle=0&imgClass=spUserBadge spLeft');
sp_SectionEnd('tagClass=spClear');

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 18, 2015 - 7:30 am

Just because I am up to my eyeballs with things at the moment and I might have to set up test data and spend some time etc., to see what this is all about - can you shed a little light on what you mean by the latest 'stacked' theme is different? Might help me ascertain what I am supposed to be looking for.

If you make edits every update why do you not make a child theme?

and perhaps I should ask what this has to do with the WP Achievements plugin... bit confused on that one?

andy-signature.png
YELLOW
SWORDFISH
Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Dec 18, 2015 - 9:25 am

The latest stacked theme update(1.2.17) has been changed to the point that I cannot find something similar enough to this to be able to replace and get the same result.

sp_ColumnEnd();
sp_InsertBreak();
sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&stacked=0&showTitle=0&imgClass=spUserBadge');
sp_SectionEnd('tagClass=spClear');

There is much new code and I have failed in my experiments editing the stacked theme file.

If it clearer, I can PM, or paste here, the edited stacked theme spTopicView.php code that I used from version 1.2.16

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

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