What's new
[XB] Private Threads

[XB] Private Threads [Paid] 2.1.1

No permission to buy ($20.00)

Painbaker

Administrator
Painbaker submitted a new resource:

[OzzModz] Private Threads for XenForo - Create threads only invited members can view

Private threads allows users to create threads that can't be viewed by members unless they have been invited to view the thread.

FEATURES:

  • Prepend/Append text to thread titles
  • Change existing threads to private threads
  • Change private threads to public threads
  • Alert members when they are included in a private thread
  • Add/Remove members after the thread is created
NOTE: For security reasons admins can view all private threads. Moderators can not. Only the...

Read more about this resource...
 
This would be perfect for my forum if only you had the option to force private threads only in a forum. I have a section of my forum where I only want private threads. I don't want to give the user the chance to create normal threads, and there appears to be no way to force private-only threads.

Please consider adding this. I love your plugins.



EDIT:

To have this button replace the default one (Post thread):
NJ7UXL.png


I'd love to have that button inside this node/section:
diOfQl.png


To replace this button inside "support" with Post private thread:
spA7qy.png



I'm new to xenforo forgive me if I've made any obvious mistakes.
 
Last edited:
If I remove a user who previously had access to the private thread, their name still appears in the Access Requests list. When I try to reject the request again, I receive an error.
It seems there is currently no way to remove a deleted user from the Access Requests list.

XenForo® v2.3.7
[XB] Private Threads 2.1.0


Code:
Server error log:

    TypeError: Snog\PrivateThreads\Entity\PrivateThread::removeUser(): Argument #1 ($user) must be of type XF\Entity\User, null given, called in /home/customer/www/forum.orinyc.org/public_html/src/addons/Snog/PrivateThreads/Entity/PrivateThreadRequest.php on line 46 src/addons/Snog/PrivateThreads/Entity/PrivateThread.php:50


    Generated by: ori Nov 18, 2025 at 12:52 AM


Stack trace

#0 src/addons/Snog/PrivateThreads/Entity/PrivateThreadRequest.php(46): Snog\PrivateThreads\Entity\PrivateThread->removeUser(NULL)

#1 src/XF/Mvc/Entity/Entity.php(1330): Snog\PrivateThreads\Entity\PrivateThreadRequest->_postSave()

#2 src/addons/Snog/PrivateThreads/Service/PrivateThreadRequest/Reject.php(28): XF\Mvc\Entity\Entity->save()

#3 src/addons/Snog/PrivateThreads/Pub/Controller/PrivateThreadRequest.php(55): Snog\PrivateThreads\Service\PrivateThreadRequest\Reject->reject()

#4 src/XF/Mvc/Dispatcher.php(362): Snog\PrivateThreads\Pub\Controller\PrivateThreadRequest->actionReject(Object(XF\Mvc\ParameterBag))

#5 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('Snog\\PrivateThr...', 'Reject', Object(XF\Mvc\RouteMatch), Object(Snog\PrivateThreads\Pub\Controller\PrivateThreadRequest), NULL)

#6 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Snog\PrivateThreads\Pub\Controller\PrivateThreadRequest), NULL)

#7 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))

#8 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()

#9 src/XF.php(806): XF\App->run()

#10 index.php(23): XF::runApp('XF\\Pub\\App')

#11 {main}


Request state

array(4) {
  ["url"] => string(32) "/private-thread-request/1/reject"
  ["referrer"] => string(104) "https://forum.orinyc.org/threads/adhd-bpd-ptsd-workshop-nov-16-dec-7-2025-integration-resources-group.5/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Painbaker updated [XB] Private Threads with a new update entry:

2.1.1

  • Added forum option to allow posting only private threads
  • Added option to apply an action to access requests when removing a member from participants (delete or reject their requests)
  • Fix: avoid "Snog\PrivateThreads\Entity\PrivateThread::removeUser(): Argument #1 ($user) must be of type XF\Entity\User, null given" error
  • Fix: allow creating threads with no invite users when access requests allowed
  • Fix: delete previous rejection/approval alerts from the same thread to...

Read the rest of this update entry...
 
Back
Top