show values on first post

vinavb

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
 

vinavb

Active member
but value $post not exist.
i'm using foreach($posts as $post). Value $post['position'] always is 0. Pl! fix for me.
 

xfrocks

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
 

vinavb

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 .
 
Top