vinavb Active member Apr 10, 2012 #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
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 Apr 10, 2012 #3 but value $post not exist. i'm using foreach($posts as $post). Value $post['position'] always is 0. Pl! fix for me.
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 Apr 10, 2012 #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
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 Apr 10, 2012 #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 .
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 .