show values on first post


Active member
Hi everyone !

I have a problem. I'm create a ******_ControllerPublic_Thread with a value $a="hello..."
how to show value $a only first post of thread ?

Sorry my english not good. Expect people to help! Thank


Well-known member
If you are getting posts from the same thread, position should not be all zero. Check xf_post table in the database to see what I mean


Active member
oh. I mean. I have a template. i register a value to template => add this template to hook on thread_view but it's show all post.
How to show only first post ? i'm using ControllerPublic_Thread .