Quote:
Originally Posted by brahn
On a related note -- how can I show post_thanks_amount in the threadbit template? [...]
|
Well, I guess all that needed was a little more time to figure it out -- apologies for jumping the gun. In case it's useful for others, here's what worked for me...
Step 1: create a plugin with hook location forumdisplay_query and the code
PHP Code:
$hook_query_fields .= ", thread.firstpostid AS firstpostid";
This makes the thread's firstpostid available in threadbit.
Step 2: create a plugin with hook location threadbit_display and the code
PHP Code:
$firstpostinfo = fetch_postinfo($thread[firstpostid]);
$thread_thanks_amount = $firstpostinfo[post_thanks_amount];
This makes the number of thank-yous applied to the thread's first post available to the threadbit template.
Step 3: use $thread_thanks_amount in the threadbit template to your heart's content.