/library/DigitalPointSpy/Listener/LoadClassDataWriter.phpCould we somehow limit this to threads/posts? It's an amazing plugin, but I don't want my users to see: X user is reporting Y post, or X user is starting a conversation with Y user.
<?php
class DigitalPointSpy_Listener_LoadClassDataWriter
{
public static function loadClassListener($class, &$extend)
{
if ($class === 'XenForo_DataWriter_DiscussionMessage_Post')
{
$extend[] = 'DigitalPointSpy_DataWriter_DiscussionMessage_Post';
}
}
}
/library/DigitalPointSpy/Listener/LoadClassDataWriter.php
replace everything with:
Code:<?php class DigitalPointSpy_Listener_LoadClassDataWriter { public static function loadClassListener($class, &$extend) { if ($class === 'XenForo_DataWriter_DiscussionMessage_Post') { $extend[] = 'DigitalPointSpy_DataWriter_DiscussionMessage_Post'; } } }
Ok, I made the change, but when I start it up, I see the attached. It's really, really old post reports (from like 4 years ago). Is this normal? What am I doing wrong?
View attachment 26986View attachment 26986
Thanks for this great add on , do i get an option in admincp to exclude certain hidden forums from showing up ?
Alternatively what's the way to block contents from certain forums to show up?
ErrorException: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: Invalid UTF-8 sequence in argument - library/XenForo/ViewRenderer/Json.php:179
#0 [internal function]: XenForo_Application::handlePhpError(2, 'json_encode() [...', '/*/*/*...', 179, Array)
#1 /*/*/*/*/library/XenForo/ViewRenderer/Json.php(179): json_encode(Array)
#2 /*/*/*/*/library/DigitalPointSpy/ViewPublic/Spy/Feed.php(7): XenForo_ViewRenderer_Json::jsonEncodeForOutput(Array)
#3 /*/*/*/*/library/XenForo/ViewRenderer/Abstract.php(215): DigitalPointSpy_ViewPublic_Spy_Feed->renderJson()
#4 /*/*/*/*/library/XenForo/ViewRenderer/Json.php(88): XenForo_ViewRenderer_Abstract->renderViewObject('DigitalPointSpy...', 'Json', Array, 'spy_feed')
#5 /*/*/*/*/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_Json->renderView('DigitalPointSpy...', Array, 'spy_feed', NULL)
#6 /*/*/*/*/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#7 /*/*/*/*/index.php(13): XenForo_FrontController->run()
#8 {main}
array(3) {
["url"] => string(63) "http://*/spy/feed?last=31537&r=0.28313547000288963"
["_GET"] => array(2) {
["last"] => string(5) "31537"
["r"] => string(19) "0.28313547000288963"
}
["_POST"] => array(0) {
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.