PDA

View Full Version : First Post In Thread


1Unreal
03-09-2009, 09:59 PM
In a plugin Im trying to do something but I want it to only effect the first post in a thread. I know in templates I can use $post[postcount] but is there a PHP equvilent?

I tried this but it didn't work...


if($this->post[postcount] == 1){
//Do something to the post...
}

Could someone point me in the right direction please :)

Lynne
03-09-2009, 10:31 PM
Which hook location are you using? Have you tried changing it?

1Unreal
03-09-2009, 11:09 PM
Postbit_display_complete