I’m guessing there is a good solution that someone will be super happy to help me out with.
Support Forum
Its going to take more time than I have tonight… but this weekend, I should have time…
I can work this up for you… But – if you are likely to have multiple badges for a user like this then you will have to lose the text underneath each badge. We can perhaps address that later but for now it would be necessary. So – is that OK?
Also – how will you want these? Ranged over on the left or centered?
Let’s just got for it and you can see what you think. I don’t recall whether you already have a custom theme but after this you will need one – either custom or child.
So the theme template to edit – in the /templates folder of your SP theme – is spTopicView.php.
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');
instead….
Thanks Andy.
I tried to the best of my ability to get it right but all the posts got screwed up every time so I had to revert to default.
No problem finding the code but
Yellow Swordfish said
<br />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:
Where do we need to move it? Where at the “end of this section”? I tried in several places but no success.
Thanks a million for doing this.
I look forward to getting it to work.
when you copied Andy’s code, did you use the raw code button and copy? if not, you might have copied dorked up (charset stuff) single or double quotes…
Does this look right to you?
Thanks
_________________________________________________________________
# User Info post row
# ———————————————————————-
sp_SectionStart(‘tagClass=spUserSection’);
sp_ColumnStart(‘tagClass=spAvatarSection spLeft&width=10%&height=60px’);
sp_UserAvatar(‘tagClass=spPostUserAvatar spCenter&context=user’, $spThisPostUser);
sp_ColumnEnd();
sp_ColumnStart(‘tagClass=spRankSection spLeft&width=20%&height=60px’);
sp_PostIndexUserName(‘tagClass=spPostUserName spCenter’);
sp_PostIndexUserLocation(‘tagClass=spPostUserLocation spCenter’);
sp_PostIndexUserRank(‘tagClass=spPostUserRank spCenter’);
sp_ColumnEnd();
sp_ColumnStart(‘tagClass=spInfoSection spLeft&width=30%&height=60px’);
sp_SectionStart(‘tagClass=spLeft’, ‘user-dates’);
sp_PostIndexUserDate(‘tagClass=spCenter spPostUserDate&stackdate=0’);
sp_PostIndexUserRegistered(‘tagClass=spPostUserRegistered spCenter’, __sp(‘Member Since: %DATE%’));
sp_PostIndexUserPosts(‘tagClass=spPostUserPosts spCenter’, __sp(‘Forum Posts: %COUNT%’));
if (function_exists(‘sp_PostIndexCubePoints’)) sp_PostIndexCubePoints(‘tagClass=spPostUserCubePoints spCenter’, __sp(‘CubePoints’));
if (function_exists(‘sp_PostIndexMyCred’)) sp_PostIndexMyCred(‘tagClass=spPostUserMyCred spCenter’, __sp(‘MyCred ‘), __sp(‘MyCred’));
sp_SectionEnd(”, ‘user-dates’);
sp_ColumnEnd();
sp_ColumnStart(‘tagClass=spIdentitySection spRight&width=30%&height=60px’);
sp_SectionStart(‘tagClass=spRight’, ‘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_InsertBreak();
sp_PostIndexUserStatus(‘tagClass=spRight spPostUserStatus’, __sp(‘Online’), __sp(‘Offline’));
sp_ColumnEnd();
sp_InsertBreak();
sp_PostIndexUserSpecialRank(‘tagClass=spPostUserSpecialRank spCenter&stacked=0&showTitle=0&imgClass=spUserBadge’);
sp_SectionEnd(‘tagClass=spClear’);
Yeeeeee Haaaaaaa!!!!
I figured it out. I never noticed a repeat command. Had this twice: sp_ColumnEnd(); 
Looks great now. Even made the badges 20 points smaller to have them all fit in one row.
This is what it now looks like:
Thanks a million Andy
yup… that would do it… works fine… just pasted your code into the sp stacked theme…
key is the sp stacked theme which is what you said you were using…

