• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

show values on first post

vinavb

Active member
#1
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
 

xfrocks

Well-known member
#4
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
 

vinavb

Active member
#5
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 .