MyBB Hacks

Full Version: If condition for posts that aren't the first?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Heya, I'm trying to figure out how to create a php if conditional for posts that aren't the first in a thread but I'm having trouble with that. I assume it involves usage of MySQL but that's something I know nothing about. Tongue

Code:
<if $postcounter > 1 then>
...
</if>

Or I'd do:

PHP Code:
if($post['pid'] != $thread['firstpost'])
{
// not first
}
else
{
// first
}


But either should work.

Reference URL's