SH0CKER
Member
I'm trying to pull the current thread ID for a thread to use to create a link in the message_macro template so that the user can click the generated link to see all of their posts in that thread. This is what I was using, which works... but only if you are looking at the newest thread. I've figured out that $__globals.forum.last_thread_id isn't the variable that I needed since it points to another thread. Any ideas?
Thanks!
Code:
<a href="{{ link('search/search', null, {'c[users]': $user.username, 'search_type': 'post', 'c[thread]': $__globals.forum.last_thread_id}) }}" rel="nofollow">
Thanks!