MyBB Community Forums

Full Version: Use of $postcounter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Can someone tell me how to use $postcounter, please?

Thank You!
That variable is used to show any thing on your desired post number. e.g.
function any_name()
{
global $postcounter;
if ($postcounter == "3")
{
   $code = 'What you want to show?';
}
else
{
   $code = '';
}
}

This'll show "What you want to show" on post number 3. Note the $postcounter variable in global. If you didn't added there, it'll not work.
Thanks