2015-02-14, 03:40 AM
I know I posted about this before, but I think I understand the plugins and hooks system better plus it was like 6 months ago....
To create a warning for reporting an administrator, I would hook to something such as do_report_start, check if the reporter and reportee is an admin, and if reportee is admin, but reporter is not, I would create a warning entry in the database using the format as done in warnings.php, right?
One thing, how would I get the reportee's information (I can get the reporter through $mybb->user).
To create a warning for reporting an administrator, I would hook to something such as do_report_start, check if the reporter and reportee is an admin, and if reportee is admin, but reporter is not, I would create a warning entry in the database using the format as done in warnings.php, right?
One thing, how would I get the reportee's information (I can get the reporter through $mybb->user).