Support Forum
I'm guessing there is a good solution that someone will be super happy to help me out with.
"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
Its going to take more time than I have tonight... but this weekend, I should have time...
Visit Cruise Talk Central and Mr Papa's World
You're the man Steve.
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
me? nah... bet Andy beats me to it tomorrow...
Visit Cruise Talk Central and Mr Papa's World
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?
YELLOW
SWORDFISH
|
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....
YELLOW
SWORDFISH
|
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.
"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
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...
Visit Cruise Talk Central and Mr Papa's World
Definitely raw code button.
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
so please post the changes you made so we can see if we can spot the issue...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)