MyBB Hacks

Full Version: Check OP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I check for the OP ID and display one button for ONLY the OP and admin using Template Conditionals?

Thank you.
In what template?

Thread starter can be retrieved through $thread['uid'].
showthread

So.. Would be like this?

PHP Code:
<if in_array($GLOBALS['mybb']->user['uid'], array($thread['uid'],ANOTHERID)) then> 
SOMETHING
<else>
SOMETHING
</if>

Why not try it?
Can't hurt.
hehe Yes.. Don't hurt!
Worked like a charm Smile
Reference URL's