Thanks YS 🙂
Yellow Swordfish said
I do tend to think we could do with perhaps a more basic version for the document but it is actually up to date and accurate as best we know.
While I see if I can look at your zip file why don’t you tell us what you need and what you did…
I made changes a while back to the spTopicView.php. My page is very thin and the way I have it now with the columns makes it nice. Every time I update the theme I have to redo that. Last time I tried to update the Stacked Theme I couldn’t correct it anymore using the same corrections as below.
I think you (Yellow Swordfish) did this for me way back in the day….
_____________________________________________
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’);