MyBB Community Forums

Full Version: Theme disabled warning button. What's warn user URL string?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It seems a theme I am tailoring to see if works for my site doesn't have a button being generated for warning a user. If someone can give me the manual URL string to warn a user that would be fine for right now.


I did search the forums and didn't find anything showing what the url string is to warn a user, or a way to fix the theme.. but I did find a useful thread that shows how to display warning levels to all users incase anyone is interested.
Is your warning system turned on (ACP -> Configuration -> Settings -> Warning System Settings -> Enable Warning System to yes) ?


And warning url is definied in postbit_warn template.
Yes it's on, and found the string in default theme:
<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>
The template I'm editing has:
<a class="button" href="warnings.php?action=warn&amp;uid={$post['uid']}&amp;pid={$post['pid']}" title="{$lang->postbit_warn}">Warn</a>
so reverting to standard default string still didn't work.. eh..
so appending the address bar manually to:
warnings.php?action=warn&uid=(user ID)&pid=(post ID)

But the real issue was here that the group in question didn't have receive warnings from other users checked off in Users&Groups>Groups>Edit Group>Users and Permissions! DOH!! no wonder! With that checked everything works now...