Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Auto Unapprove Reported Posts
#1
Eine neue Erweiterung wurde veröffentlicht: Auto Unapprove Reported Posts

Zitat:Compatible with MyBB 1.4.x and MyBB 1.6.x

DESCRIPTION
===========
This plugin allows you to set up how many times a post needs to be reported before it should be unapproved automatically. In the settings you can set:
- the amount of reports needed
- the cut-off time in which those reports need to be done
- whether or not reports for users should be only counted once
- whether or not to unapprove the complete thread as well as the reported post

SUPPORT
======
Please only report bugs or any other problem in the plugin thread or the Plugin Support subforum on the MyBB Community Forum. I can not respond to comments/reviews on mod site.

DONATE
=====
This plugin will always be free but if you like this plugin and want to support the further development of this and my other plugins, feel free to donate. Not doing it doesn't restrict you or the functionality of this plugin in any way.
Donate. Thank you!

SPREAD THE WORD
=============
You can help to spread the word and promote this plugin:
- share the link to either the thread or this page on social networking sites (Facebook, Twitter, ...)
- give this plugin a good review on the mod site.
- rate this plugin on the mod site.
- comment in the plugin thread on the MyBB Community Forum
- tell your friends about the plugin
Zitieren
#2

Ich habe das Plugin getetet. Wenn ein Beitrag gemeldet wird, kommt aber die Fehlermeldung

"Fatal error: Call to a member function update_reportedposts() on a non-object in /home/www/kunden/MEINESEITE.de/inc/plugins/autounapprove.php on line 227"

Hat jemand eine Idee, was da schief gelaufen ist ? Liegts an meinem Forum oder am Plugin ?
Zitieren
#3
Da scheint ein Fehler im Plugin.
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#4
Komisch ist allerdings, dass in dem Support-Thread bei mybb.com dieser Fehler bislang nicht gemeldet wurde....
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren
#5
Ich nutze das Plugin nicht. Habe es mal überflogen. Vielleicht hilft es:
PHP-Code:
        $cache->update_reportedposts(); 
durch
PHP-Code:
        require_once MYBB_ROOT."inc/class_datacache.php";
        
$cache = new datacache;
        
$cache->update_reportedposts(); 
zu ersetzen.
Zitieren
#6
Der Cache wird standardmäßig benötigt. Wahrscheinlich fehlt ein global $cache.
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#7
genau so ist es, global $cache fehlt.

Damit solltest Du Zeile 210:
global $mybb, $db, $thread, $reportedpost;

ersetzen mit:
global $mybb, $db, $cache, $thread, $reportedpost;
Zitieren
#8
Ja super, jetzt klappts.
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Reported Posts Count in Profile Page MyBB.de Bot 0 760 07.08.2019, 03:30
Letzter Beitrag: MyBB.de Bot
  Auto-Unapprove Filter MyBB.de Bot 0 1.172 23.01.2013, 12:40
Letzter Beitrag: MyBB.de Bot
  View Member Reported Posts MyBB.de Bot 1 1.802 26.11.2011, 06:35
Letzter Beitrag: MyBB.de Bot
  Reported Posts Message MyBB.de Bot 0 1.958 18.08.2008, 10:28
Letzter Beitrag: MyBB.de Bot
  Reported Notification MyBB.de Bot 0 1.879 15.04.2008, 23:49
Letzter Beitrag: MyBB.de Bot