MyBB Community Forums

Full Version: Only show div on OP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im trying to display a number fetched from the database (which i can do just fine) but how do I only display it on the original post? Im using the postbit hook. What I want basically is for a user set number to show up on the threads OP. Any idea?
if($postcounter == 1)
{
    //do something
}
or
if($thread['dateline'] == $post['dateline'])
{
    //do something
}