Support Forum
How do I get the thanks to show correctly? I currently have it set like this:
sp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanked %THANKED% times');
Though it shows up as white and you can't see it. I also want it to show the reputation. How can I add the reputation and change the color?
I tried this:
sp_thanks_post_user_reputation(
'tagClass=spCenter spPostUser',Thanks</span>Reputation'
,
'Reputation:'
);
When I tried the code above, it would crash the forum. I believe I have the code incorrect? I have it set in sptopicviewdesktop.php
Hey Alex,
I've just tried copying that snippet you pasted for 'sp_thanks_user_stats' and it seems to work fine. I put it just underneath the username under the avatar in spTopicViewDesktop.php.
I then realised that because the classes associated with the function don't specify a font colour, it's inherited from spTopicViewSection..
spTopicViewSection doesn't have a colour set in the first release version of Reboot, although it has been added to the next version which will be released soon, that doesn't help. So - as a fix you should add:
#spMainContainer .spTopicViewSection { font-color: #000000; }
- to your stylesheet. Child theme or not, this is already fixed in the next update so will remain working for you.
As for reputation, you can't cut off a function with <span>'s like that. Try something like:
sp_thanks_post_user_reputation('tagClass=spCenter spPostUser', 'Reputation:');
Hope that helps!
This is what I have:
sp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanked %THANKED% times'); sp_thanks_post_user_reputation('tagClass=spCenter spPostUser', 'Reputation:');
This is how it shows up in the forum:
#spMainContainer .spTopicViewSection { font-color: #000000; }
Is there a specific line I have to add it to?
Yellow Swordfish said
I already answered this above in post 4...
Thanks, but you really didn't address my follow-up question: I have added the code just like I was told, however it's showing up as this:
# load the rtl css file if needed if (isset($_GET['rtl'])) { include('reboot-rtl.php'); }
I did address the question., i said you need to have a specific class in the function call and showed you the code that was needed to show the stars. The code you are using is incorrect - it needs the class. copy and paste it from my post above.
As to the colour rule then paste it in anywhere after line 36 which is the closing php tag. It has to be somewhere with the rest of the actual CSS rules. There us a small php block at the top and the bottom so just make sure it is in the large middle section somewhere.
YELLOW
SWORDFISH
|
I have this as the code:
sp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanked %THANKED% times'); sp_thanks_post_user_reputation('tagClass=spCenter spPostUserThanksReputation', 'Reputation:');
It still shows up as this:
} else { include('base-reset.css'); } ?> #spMainContainer .spTopicViewSection { font-color: #000000; } /* -------------------- Links -----------------------*/ #spMainContainer a:link,
1 Guest(s)