Support Forum
have you added the template tag to make it show up where you want it??
Visit Cruise Talk Central and Mr Papa's World
To show the number of thanks you can use
sp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanked %THANKED% times in %POSTS% posts')
Will be adding more info on that tomorrow but that's the basic setting for putting in the display. Like under the member's avatar in TopicView, Default Theme.
Brandon C said
To show the number of thanks you can usesp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanked %THANKED% times in %POSTS% posts')Will be adding more info on that tomorrow but that's the basic setting for putting in the display. Like under the member's avatar in TopicView, Default Theme.
I wanted to show thanks given as well as thanks earned, so I had to add some custom code to a couple of files.
Here's the code I added to spTopicView.php right after the forum posts line:
sp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanks Given: %THANK%'); sp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanks Earned: %THANKED%');
I added lines 1 and 4 below to the sp-thanks-user-stats.php file like so:
if (empty($user->thank)) $user->thank = 0; if (empty($user->thanked)) $user->thanked = 0; $label = str_ireplace('%THANK%', $user->thank, $label); $label = str_ireplace('%THANKED%', $user->thanked, $label); $label = str_ireplace('%POSTS%', $user->posts, $label);
Can y'all add the thank code to sp-thanks-user-stats.php in the next update?
reading/replying via email, so cannot see everything you are doing... but did you try using the built in hooks/filters to that function to get the desire result? would save editing the core plugin files...
will read it in more detail tomorrow when I can visit the site...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)