MyBB Community Forums

Full Version: How to warn users posts?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So say the user has posted something against our rules...

I don't want to warn him from his profile including a link because it looks un-professional and half-lime*d.

How would I warn a user from his post, so add a "Warn" button to the post.

Thanks Smile
(2015-02-23, 03:49 PM)Voltaic Wrote: [ -> ]add a "Warn" button to the post.

isn't that already available..... are you using any custom theme... check if its there in default theme...
(2015-02-23, 04:13 PM)mmadhankumar Wrote: [ -> ]
(2015-02-23, 03:49 PM)Voltaic Wrote: [ -> ]add a "Warn" button to the post.

isn't that already available..... are you using any custom theme... check if its there in default theme...

Good point. I'm using a custom theme.

How would I add this to the posts then? Because the theme I use doesn't show the button.
ACP >> Templates >> Post Bit Templates >> postbit

add {$post['button_warn']} where you want... probably after {$post['button_report']}
(2015-02-23, 04:19 PM)mmadhankumar Wrote: [ -> ]ACP >> Templates >> Post Bit Templates >> postbit

add {$post['button_warn']} where you want... probably after {$post['button_report']}

This is odd.

The code is already there...Yet the button doesn't show.
could you post the content of postbit_warn template....
(2015-02-23, 05:16 PM)mmadhankumar Wrote: [ -> ]could you post the content of postbit_warn template....

For the theme we are using there's nothing in the template, but for global there is:

<a href="warnings.php?action=warn&amp;uid={$post['uid']}&amp;pid={$post['pid']}"><img src="{$theme['imglangdir']}/postbit_warn.gif" alt="{$lang->postbit_warn}" title="{$lang->postbit_warn}" /></a>
Isn't this fixed already? :3
Solved Big Grin