2019-06-23, 01:32 PM
2019-06-23, 01:43 PM
Currently there is a PR awaiting for even enhanced appearance of the report button which likely to be included in 1.8.22.
I am referring that to give you a future-proof solution:
https://github.com/mybb/mybb/pull/3701/files
In that PR,
https://github.com/mybb/mybb/pull/3701/f...30deacR691 << Here, insert:
I am referring that to give you a future-proof solution:
https://github.com/mybb/mybb/pull/3701/files
In that PR,
$skip_report
array is used for determination. You can insert user ID in that array for the thing you wanna accomplish.https://github.com/mybb/mybb/pull/3701/f...30deacR691 << Here, insert:
$skip_report[] = $mybb->user['uid'];
2019-06-23, 02:14 PM
So if i modified the files to this commit change, then that would remove the report button? That is a lot of files to manually edit if it breaks and i need to back out of it. Im also using mybb 1.8.7 still so im not sure if things would be applicable. An upgrade is out of the question.
2019-06-23, 03:36 PM
Open
Goto line number ~682, find
(I am not sure what exact code you have there since there were some changes after the version you are using ...
inc/functions_post.php
Goto line number ~682, find
if($mybb->user['uid'] != "0")
and replace with if(!in_array($mybb->user['uid'], array(0, $post['uid])))
(I am not sure what exact code you have there since there were some changes after the version you are using ...
2019-06-24, 01:00 AM
awesome thanks!!!!
for completion forgot the ending quote in uid
for completion forgot the ending quote in uid
//if($mybb->user['uid'] != "0")
if(!in_array($mybb->user['uid'], array(0, $post['uid'])))
{
eval("\$post['button_report'] = \"".$templates->get("postbit_report")."\";");
}