MyBB Community Forums
[Pushed] Can't report content to a moderator - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Pushed (https://community.mybb.com/forum-183.html)
+----- Thread: [Pushed] Can't report content to a moderator (/thread-218439.html)

Pages: 1 2 3


RE: Can't report content to a moderator - kbilly - 2018-07-09

(2018-07-09, 04:07 AM)effone Wrote: Its not 'sometimes'.

If you are trying to report a user whose usergroup settings " Can be reported (profile, posts and reputation)?" is unchecked you will get the error. No matter who you are - admin, mod or just a user ...

Well,the error has been reported from the same user and the thread were also in the same forum,so,settings have nothing to do with this.

I am talking about thread reporting not reporting an user.

After that,i also tried to use the report button on that thread,didn't work for me too.

Regards.


RE: Can't report content to a moderator - babak - 2018-07-10

Looks like this problem still exists for posts sent by guests in forums where guests are allowed to post. In my forum's settings "Can be reported (profile, posts and reputation)?" is checked for Guests and this problem still exits.


RE: Can't report content to a moderator - Wires - 2018-07-10

(2018-07-10, 03:56 AM)babak Wrote: Looks like this problem still exists for posts sent by guests in forums where guests are allowed to post. In my forum's settings "Can be reported (profile, posts and reputation)?" is checked for Guests and this problem still exits.

This works fine for me...


RE: Can't report content to a moderator - effone - 2018-07-10

Thanks for confirming Wires.
I guess people are confused about the community forums activity. Once again, latest patches are not applied yet to community forums.


RE: Can't report content to a moderator - babak - 2018-07-11

(2018-07-10, 09:08 AM)effone Wrote: Thanks for confirming Wires.
I guess people are confused about the community forums activity. Once again, latest patches are not applied yet to community forums.

No, I was not referring to the community forum. I don't think guests have permission to post in the community forum. I was referring to my own board where guests are allowed to post. The only way I managed to get reporting to work for posts by guests was to remove the main permission check from reports.php lines 120 to 124:

$permissions = user_permissions($checkid);
if(empty($permissions['canbereported']))
{
 	$error = $lang->sprintf($lang->error_invalid_report, $report_type);
}



RE: Can't report content to a moderator - effone - 2018-07-11

Alright babek. I got what you said. This is not a bug related to report system. I suggest you to restore the removed code. Removing that will allow everyone to report anyone's post ignoring the group settings.

This is a completely different bug related to group permissions. Do the following modification and you will be fine:

Open inc/functions.php. Go to line number 1215 and locate this code under function `user_permissions()'

	if($uid == 0)
	{
		$uid = $mybb->user['uid'];
	}

Change it to

	if($uid == 0)
	{
		return $groupscache[1];
	}

Save the file and you will be good to go ...

Edit: Or see the complete fix here:
https://github.com/mybb/mybb/pull/3338/files


RE: Can't report content to a moderator - iifeskilz - 2019-02-02

(2018-07-05, 11:06 AM)effone Wrote: Extremely sorry for the inconvenience.

I have posted a fix at Github.
https://github.com/mybb/mybb/pull/3299/files

However you can download and replace the attached report.php with the packaged one. Hope this will fix the issue ...
Just downloaded and replaced the report.php file on my site. It is still not working. Using the latest mybb


RE: Can't report content to a moderator - FaridAzhar777 - 2019-04-15

after update to 1.8.20, report button not working like this


RE: Can't report content to a moderator - effone - 2019-04-15

(2019-04-15, 09:10 AM)FaridAzhar777 Wrote: after update to 1.8.20, report button not working like this

I just tried to report this post and its working.
Check permissions.