I am trying to create a tiny plugin that gets evaluated for each post in a thread.
This code should be executed for each post:
PHP Code:
if ($post['userid'] == 1) {
$admin_has_posted++;
}
I want to access the $admin_has_posted variable in the postbit template for the following conditional statement.
Code:
<if condition="$admin_has_posted == 1">
do this...
<else />
do that...
</if>
Where should I put this hook so that it is executed properly?
thanks
eric