Thread Ban [Paid] [Deleted]

  • Thread starter Thread starter Syndol
  • Start date Start date
So, I uploaded each of the folders one by one to their respective folders as told, edited and saved the templates. but when I went to upload the XML file... I got this:
error7.webp

Should I just upload all of the files to the forum root instead? That's the only thing I can think of..
 
Sorry for the late reply but we are on different time zones (8 hours difference I believe).
Please try re-uploading all the files. It sounds like they did not all upload correctly.
 
Sorry for the late reply but we are on different time zones (8 hours difference I believe).
Please try re-uploading all the files. It sounds like they did not all upload correctly.
Still not working...

The only thing I can think of is... do I just upload the contents of both the 'js' file and the 'library' file? I've uploaded the js and library file twice now (overwriting the previous) and still get the error.

Keep it mind I am no whiz when it comes to this stuff... I often do it and cross my fingers that I do it right.
 
Not sure what it is you are doing wrong.
Perhaps unzip the compressed file again and use this new folder.
  • Upload the js/threadban folder into the js folder on your server
  • Upload the library/ThreadBan folder into the library folder on your server
  • Upload the styles/default/threadban folder into your styles/default folder on your server
  • Ensure you are uploading everything to the same server from which you are trying to install the add-on
  • You want to end up with folders named thread ban - not just the contents of those folders
  • Ensure those folders have all the files within them
  • Install the add-on
  • Set up permissions as per ReadMe file
 
I received this error when trying to access a (redirect) link (link to a thread that was moved to another forum)

Code:
Error Info
ErrorException: Undefined index: isThreadBanned - library/ThreadBan/ControllerPublic/Thread.php:300
Generated By: user, xxx
Stack Trace
#0 /var/www/html/community/library/ThreadBan/ControllerPublic/Thread.php(300): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/html/c...', 300, Array)
#1 /var/www/html/community/library/ThreadBan/ControllerPublic/Thread.php(24): ThreadBan_ControllerPublic_Thread->_getBanNotice(Array, 'extended', false)
#2 /var/www/html/community/library/XenForo/FrontController.php(310): ThreadBan_ControllerPublic_Thread->actionIndex()
#3 /var/www/html/community/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/html/community/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(46) "http://site.com/community/threads/44221/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
I am unable to replicate this error at all.
My guess is that you are having some kind of conflict with another add-on you have installed.
You are right. After disabling XenPorta, the error disappeared.

I'm back in action now, expect my reviews :)! Great addons btw, I recommend then to everyone.

I found this redirect problem, is anything that can be done? I can confirm that disabling XenPorta fixes this but it's an important part of our community. Both addons are D:..
 
Yes, its a known EWRporta issue.
Please apply the following fix to function getPostsInThread (EWRporta/Model/Post.php)
Replace:
PHP:
$fetchOptions['join'] += self::FETCH_THREAD;
With:
PHP:
if (!empty($fetchOptions['join']))
{
    $fetchOptions['join'] |= self::FETCH_THREAD;
}
else
{
    $fetchOptions['join'] = self::FETCH_THREAD;
}

And you will also need to add a couple of line of code to function actionIndex() in file EWRporta/ControllerPublic/Thread.php:
Replace:
PHP:
$response = parent::actionIndex();
With:
PHP:
$response = parent::actionIndex();
if (!empty($response->params))
{
And Replace:
PHP:
return $response;
With:
PHP:
}
return $response;

That should solve it unless there is something else going on.
 
Yes, its a known EWRporta issue.
Please apply the following fix to function getPostsInThread (EWRporta/Model/Post.php)
Replace:
PHP:
$fetchOptions['join'] += self::FETCH_THREAD;
With:
PHP:
if (!empty($fetchOptions['join']))
{
    $fetchOptions['join'] |= self::FETCH_THREAD;
}
else
{
    $fetchOptions['join'] = self::FETCH_THREAD;
}

And you will also need to add a couple of line of code to function actionIndex() in file EWRporta/ControllerPublic/Thread.php:
Replace:
PHP:
$response = parent::actionIndex();
With:
PHP:
$response = parent::actionIndex();
if (!empty($response->params))
{
And Replace:
PHP:
return $response;
With:
PHP:
}
return $response;

That should solve it unless there is something else going on.
Thanks!

Worked like a charm :)!
 
We are historically stealthy with our bans. May we somehow prevent the "banned" stamp from appearing on thread-banned users?

This is kind of the greatest plugin ever, btw. :)
 
By clicking the Thread Ban link in the post or via the Admin Control Panel.

Clicking the thread ban link in the post only allows me to ban from the thread.
Is there any way to see current thread bans from the thread? or do I have to go to the ACP for that?
 
ACP will show you all bans and allow you to sort them by name, date, duration, thread title, and so on.
Clicking on the link in the post of a banned user will allow you to view, edit, or lift the ban.
It will also show you all other threads that user is currently banned from.
 
ACP will show you all bans and allow you to sort them by name, date, duration, thread title, and so on.
Clicking on the link in the post of a banned user will allow you to view, edit, or lift the ban.
It will also show you all other threads that user is currently banned from.
Alright thank you.
 
ACP will show you all bans and allow you to sort them by name, date, duration, thread title, and so on.
Clicking on the link in the post of a banned user will allow you to view, edit, or lift the ban.
It will also show you all other threads that user is currently banned from.

It's back and I don't know why, we haven't touched or changed anything since last you helped us fix it a few posts up.

Code:
XenForo_Application::handlePhpError() in ThreadBan/ControllerPublic/Thread.php at line 22
ThreadBan_ControllerPublic_Thread->actionIndex() in DBTech/UsersViewingThread/Controller/UsersViewingThread.php at line 17
DBTech_UsersViewingThread_Controller_UsersViewingThread->actionIndex() in ForumWatch/Extend/ControllerPublic/Thread.php at line 5
ForumWatch_Extend_ControllerPublic_Thread->actionIndex() in EWRporta/ControllerPublic/Thread.php at line 9
EWRporta_ControllerPublic_Thread->actionIndex() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/rpdom/public_html/index.php at line 13

Disabling Thread Ban fixes it again. Arg we use it so much as well as redirects when we move things around :/.

Edit: Disabling every other addon we have on the board including the portal does not fix the redirect error unless we also turn Thread Bans on(even if it's the only addon running).
 
It's back and I don't know why, we haven't touched or changed anything since last you helped us fix it a few posts up.
I have installed DBTech's add-on to test and all redirects and thread bans work as they should.
You obviously have something funky going on there :confused:
Not sure what else I can do to help., Sorry.

Edit: Try setting the thread ban load_class_controller Code Event Listener Execution Order to something higher than the DBTech one
 
Back
Top Bottom