Quote:
Originally Posted by brahn
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.
|
I'v managed to do this with search results, using the same ideia with the hooks search_results_query_threads and search_results_threadbit.
Any ideia to do the same with tag search results?
Thanks.