MyBB Community Forums

Full Version: Report Once Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2015-02-14, 10:09 PM)Omar G. Wrote: [ -> ]Weird then, I can recall multiple reports not being allowed in 1.8

Can you try to report my post? http://community.mybb.com/thread-167056-...pid1139931

yes possible...
appear message that already reported....
but continue appearing button to report...
Well that is not something that can easily be changed. Checking this plugin and just noticed it doesn't check for it in postbit either. So unsure what it is supposed to achieve.
Thats weird... on my local forum, I see the dialogue box for selecting report type. Also, modcp counts the number of reports --- it even shows the number!

(2015-02-14, 10:46 PM)OmarĀ G. Wrote: [ -> ]Well that is not something that can easily be changed. Checking this plugin and just noticed it doesn't check for it in postbit either. So unsure what it is supposed to achieve.

It does the check AFTER the report type has been selected


Also, this plugin applies to the profile reports and reputation reports too, not just posts.
For those who are confused - the author didn't specify that the plugin stops reporting stuff twice by anyone. MyBB core checks only for the same user: https://github.com/mybb/mybb/blob/featur...t.php#L143

EDIT: as for the error() bug Ben_Conway probably experiences - you shouldn't use the function if you want it to be proper. Instead globalize $error and assign something to it, just like it's done in the core https://github.com/mybb/mybb/blob/featur...t.php#L220
Is there any way that i can get this working for 1.6 ?
I'm only using 1.6 because the majority of my plugins aren't supported on 1.8 Sad
(2015-02-17, 03:43 PM)Konsy Wrote: [ -> ]Is there any way that i can get this working for 1.6 ?

Basically you'd have to rewrite the whole plugin, at least the whole function which checks if a report already exists.
There should be an old plugin on the old mods.mybb.com site
(2015-02-17, 05:36 PM)Destroy666 Wrote: [ -> ]
(2015-02-17, 03:43 PM)Konsy Wrote: [ -> ]Is there any way that i can get this working for 1.6 ?

Basically you'd have to rewrite the whole plugin, at least the whole function which checks if a report already exists.

im kind of a useless person when it comes to editing stuff lol :c
would anyone be able to help Toungue
Here's the old 1.6 plugin; note that my plugin and the 1.6 plugin are different and not edited to fix compatibility issues; I made mine from scratch:

http://mods.mybb.com/view/report-once
Pages: 1 2