Topic: Remove quote link for last post in a thread

Hello.
I am looking for a solution to remove "quote link" only under last post of a thread.
Do you have an idea?

Re: Remove quote link for last post in a thread

hook vt_qr_get_topic_info

$query['SELECT'].=', t.last_post_id'

hook vt_row_pre_post_actions_merge

if ($cur_post['id'] == $cur_topic['last_post_id'])
  unset($forum_page['post_actions']['quote']);

I have not tested this code.

ForkBB
I speak only Russian  :P

Re: Remove quote link for last post in a thread

Thank you very much, It works!

<hooks>
      <hook id="vt_qr_get_topic_info"><![CDATA[
              $query['SELECT'].= ', t.last_post_id';
      ]]></hook>
      <hook id="vt_row_pre_post_actions_merge"><![CDATA[
              if ($cur_post['id'] == $cur_topic['last_post_id'])
                  unset($forum_page['post_actions']['quote']);
      ]]></hook>
</hooks>