Customizing SMF > Modifications and Packages
Thank-O-Matic (Updated for SMF 2.0.4)
shazoo!:
--- Quote from: shazoo! on July 12, 2012, 06:26:01 AM ---
--- Quote from: enik on July 10, 2012, 07:52:06 PM ---You have to give permissions to each group.
Regards enik...
--- End quote ---
I gave permissions to the group I wanted to have the permissions, The "Own Member" option is not working.
--- End quote ---
I realized my error.
I thought that option allowed you to remove your thanks from posts that you thanked. What it actually does is remove thanks from your posts. 2 different things
Pyrhel:
My problem is solved. It's due to PHP version and how it passes parameters in version 5.3 and 5.4. With an & before the variable name, the php passes it as reference to the variable, e.g.:
--- Code: ---//Admin Areas
function ThanYou_add_admin_areas(&$adminAreas)
--- End code ---
fulltimecasual:
Hey guys, I really dig this mod, but was wondering if anyone could give me a hand modifying it. Basically I want to change the thank you button, and the thank you message, to just the HTML star - and is there anyway of showing the list of people who thank you (or fabourited as it would be on my forum) in that little section under the post, instead having a link to click through?
Tomy Tran:
A pic for demo to imagize is better ;)
ChalkCat:
My Thank-o-matic is malfunctioning. Please can you point me in the right direction to fix it?
In a member's profile, when I click to view their "Thank you posts", I see four categories. "Mesages (become)", "Topics (become)", "Messages (given)" and "Topics (given)". Now I can click on Messages (become) and go through pages 1, 2,..., etc quite happily, but when I click on Messages (given) I see page 1, but clicking on page 2, or indeed any other page number under Messages (given) takes me instead to the corresponding page number of Messages (become).
Except with the admins. I don't know whether it's because we're admins or because we're with only ones with over a thousand thanks, but clicking on Messages (given) in an administrator's profile displays the error
--- Quote ---Column 'id_msg' in where clause is ambiguous
File: /home/chalkcat/public_html/Sources/Profile-ThankYouPost.php
Line: 199
--- End quote ---
where line 199 is the last line of the following - yes the );
--- Code: ---// Find this user's posts. The left join on categories somehow makes this faster, weird as it looks.
$looped = false;
while (true)
{
$request = $smcFunc['db_query']('', '
SELECT
b.id_board, b.name AS bname, c.id_cat, c.name AS cname, m.id_topic, m.id_msg,
t.id_member_started, t.id_first_msg, t.id_last_msg, m.body, m.smileys_enabled,
m.subject, m.poster_time
, m.thank_you_post_counter, m.thank_you_post
FROM ' . (!$context['is_given'] ? '{db_prefix}messages AS m' : '{db_prefix}thank_you_post AS tp
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = tp.id_msg)') . '
INNER JOIN {db_prefix}topics AS t ON (' . ($context['is_topics'] || $context['is_topics_given'] ? 't.id_first_msg = m.id_msg' : 't.id_topic = m.id_topic') . ')
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
WHERE ' . ($context['is_given'] ? 'tp' : 'm') . '.id_member = {int:current_member}
AND m.thank_you_post = 1
' . (!empty($board) ? 'AND m.id_board=' . $board : '') . '
' . (empty($range_limit) ? '' : '
AND ' . $range_limit) . '
AND {query_see_board}
' . ($context['user']['is_owner'] ? '' : 'AND m.approved = {int:is_approved} AND t.approved = {int:is_approved}') . '
ORDER BY m.id_msg ' . ($reverse ? 'ASC' : 'DESC') . '
LIMIT ' . $start . ', ' . $maxIndex,
array(
'current_member' => $memID,
'is_approved' => 1,
)
);
--- End code ---
Please help, this is the only issue now preventing my forum from being 100% perfect :'(
It has just been brought to my attention that also clicking on the topics (given) then on page 2 shows messages (become) page 2.
The other problem I'm having more and more frequently is that the Received Thank You stats on the memberlist and profiles keeps resetting itself and I have to keep running the recount to bring them back again :-\
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version