1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Find New Thread No Content 1.0.1

Show thread titles in find new without content permission...

  1. Liam W

    Liam W Well-Known Member

    Liam W submitted a new resource:

    Find New Thread No Content - Show thread titles in find new without content permission...

    Read more about this resource...
     
  2. JamesBrown

    JamesBrown Well-Known Member

    Hi @Liam W

    I'm getting errors since installing, any idea what might be happening? Cheers.

    ErrorException: Argument 1 passed to XenForo_Permission::hasContentPermission() must be of the type array, null given, called in /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/LiamW/FindNewThreadTitle/Extend/Model/Thread.php on line 11 and defined -library/XenForo/Permission.php:51

    #0 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/Permission.php(51): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/vhosts...', 51, Array)
    #1 /var/www/vhosts/mysiteco.uk/httpdocs/forum/library/LiamW/FindNewThreadTitle/Extend/Model/Thread.php(11): XenForo_Permission::hasContentPermission(NULL, 'viewContent')
    #2 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/ControllerPublic/Thread.php(2258): LiamW_FindNewThreadTitle_Extend_Model_Thread->canViewThreadAndContainer(Array, Array)
    #3 [internal function]: XenForo_ControllerPublic_Thread::getSessionActivityDetailsForList(Array)
    #4 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/Model/Session.php(332): call_user_func(Array, Array)
    #5 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/Model/Session.php(388): XenForo_Model_Session->addSessionActivityDetailsToList(Array)
    #6 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/ControllerPublic/Member.php(211): XenForo_Model_Session->getSessionActivityDetails(Array)
    #7 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Member->actionMember()
    #8 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #9 /var/www/vhosts/mysite.co.uk/httpdocs/forum/index.php(13): XenForo_FrontController->run()
    #10 {main}
     
  3. Liam W

    Liam W Well-Known Member

    Yeah, just discovered that myself - I forgot to standardize the node permissions.

    I'll release an update now.

    Liam
     
  4. Liam W

    Liam W Well-Known Member

  5. JamesBrown

    JamesBrown Well-Known Member

    Thanks @Liam W that seems to have sorted it, but I have a problem.

    Threads are showing up in Recent/New even when the user group is not allowed to view the node. To work best for me I need this to respect the View Node Permissions.

    I need it to Showing threads (but not content) in the Recent/New only to those that have View threads by others: YES View thread content: NO Is this possible? Cheers. (y)
     
  6. Liam W

    Liam W Well-Known Member

    Yeah, I check deleted and moderated but no can view forum... Whoops!

    Will fix when I get home and after part tea (it's my younger brother's birthday).

    Liam
     
    JamesBrown likes this.
  7. rwm1962

    rwm1962 Active Member

    Aye - it would be great if this could respect node permissions. I need to list content in subscriber only nodes to show as teasers but not the moderator private staff room!

    Cheers
     
  8. Liam W

    Liam W Well-Known Member

    This should be fixed before tomorrow, I was really tired when I got home yesterday, and completely fell asleep...

    Liam
     
    rwm1962 likes this.
  9. JamesBrown

    JamesBrown Well-Known Member

    H Liam, if you could find the time to fix this sometime, I'd be very grateful, Cheers mate (y)
     
    Liam W likes this.
  10. Liam W

    Liam W Well-Known Member

    Sorry, it's been a bit hectic :) I'll look now.

    Liam
     
  11. JamesBrown

    JamesBrown Well-Known Member

    Hi Liam, (y)
     
  12. JamesBrown

    JamesBrown Well-Known Member

    Hi Liam,

    I could really do with this fix. Please let us know if you intend fix or leave it as is. Cheers.
     

Share This Page