MyBB Community Forums

Full Version: Postbit button for thread author only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys, could you help me to solve this problem?

I created a custom button in postbit {$post['button_close']} and added new template postbit_close with button's code. Then I added
eval("\$post['button_close'] = \"".$templates->get("postbit_close")."\";");
into ../inc/functions_post.php

This button shows up on every post in the thread, but I want it to show up only for thread author.
How to do that?
that's not exactly what I wanted but it gave me right direction Smile anyway I solve it and thank you Smile
This button shows up on every post in the thread, but I want it to show up only for thread author.
How to do that?



__________________
watch online movies
Install Template Conditionals plugin, then open postbit template and wrap all the {$post['BUTTONS']} with the following code;
<if $mybb->user['usergroup'] == $thread['uid'] then>{$post['BUTTONS']}</if>