Thread Owner Rights [Deleted]

@Haydric What does Mod Permissions > [H] Move Posts? Already xenforo core Mod Permissions have move post Permissions.

So what the xenforo core Mod Permissions vs your add-on Permissions ? Also why not xf prefixes for table name?

Example: h_thread_owner to xf_h_thread_owner

Just a Suggestions but you know the best ... (y)
 
Last edited:
What does Mod Permissions > [H] Move Posts? Already xenforo core Mod Permissions have move post Permissions.
There is no default move post permission, if there was you wouldn't have had that conflict with move posts originally. Also I may or may not change table names. I just never seen the necessity of putting the xf prefix to my own table.
 
There is no default move post permission

What does this permission? I just making discussion for confirmation, If your add-on are not conflict with xenforo permission.

ScreenShot00616.webp

Also why not add own group for this permission without mixing with xenforo permission.

Example: [H]Thread Owner Rights moderator permissions

One more development improvement request, When permission are not set then permissions should closed by default, only open when permissions are set. Look like xenforo permission does this.

ScreenShot00617.webp
 
One more development improvement request, When permission are not set then permissions should closed by default, only open when permissions are set. Look like xenforo permission does this.
There is no option for this when creating permissions groups.

What does this permission? I just making discussion for confirmation, If your add-on are not conflict with xenforo permission.
The key word in that permission is "Thread" you can move, merge, etc when managing threads, says nothing about posts. I'll have to take a look and see what permission they use by default. If that permission can be removed, I'll remove it.

Also why not add own group for this permission without mixing with xenforo permission.

Example: [H]Thread Owner Rights moderator permissions
The only reason behind them not having their own permission group is because it is simpler to add them and tie them to the bottom. They have such a high display order nothing should interfere.
 
There is no option for this when creating permissions groups.

But I have seen my other add-on permissions groups closed by default because permissions are not set, only open when permissions are set. Does not know if this only happen your add-on.

Oh does this only happened with Moderator permissions groups?

ScreenShot00618.webp
 
@Haydric I have found that your add-on conflict with xenforo permission. Can not move post after enabled your add-on.

With add-on:

ScreenShot00623.webp

Without add-on:

ScreenShot00622.webp

With add-on after enabled permission [H] Move Posts

ScreenShot00624.webp

So [H] Move Posts conflict with xenforo permission.
 
I'll be pushing an update this week, it'll be the last update until I get return back from vacation.

Also getting Server error log.

Code:
ErrorException: [E_NOTICE] Trying to get property 'user_id' of non-object src/addons/haydric/toRights/XF/Entity/Post.php:15

Generated by: Unknown account Nov 2, 2018 at 10:31 PM

Stack trace

#0 src/addons/haydric/toRights/XF/Entity/Post.php(15): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 15, Array)
#1 src/XF/Pub/Controller/Thread.php(210): haydric\toRights\XF\Entity\Post->canView(NULL)
#2 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Thread->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Post', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(TickTackk\ContentCopyProtection\XF\Pub\Controller\Thread), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#6 src/XF.php(329): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state

array(4) {
  ["url"] => string(57) "/threads/english-to-bangla-word-meaning.29544/post-301689"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Hopefully this runs well, I intend to purchase it after all.

I wish there was a good way to have more granular control over which threads a member can self-moderate. Could they be activated depending on the Prefix used? In my case, I only want a user to have the permission if it is a promotional thread, with a prefix like "Promo" etc.
 
@Nirjonadda

Also getting Server error log.

Code:
ErrorException: [E_NOTICE] Trying to get property 'user_id' of non-object src/addons/haydric/toRights/XF/Entity/Post.php:15

Generated by: Unknown account Nov 2, 2018 at 10:31 PM

Stack trace

#0 src/addons/haydric/toRights/XF/Entity/Post.php(15): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 15, Array)
#1 src/XF/Pub/Controller/Thread.php(210): haydric\toRights\XF\Entity\Post->canView(NULL)
#2 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Thread->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Post', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(TickTackk\ContentCopyProtection\XF\Pub\Controller\Thread), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#6 src/XF.php(329): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state

array(4) {
  ["url"] => string(57) "/threads/english-to-bangla-word-meaning.29544/post-301689"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
The error you continue to get is not coming from this add-on, after checking the stack trace you need to contact the developer of the "Content Copy Protection," because I do not get this error and cannot replicate this error.
 
The error you continue to get is not coming from this add-on, after checking the stack trace you need to contact the developer of the "Content Copy Protection," because I do not get this error and cannot replicate this error.

@Haydric This Server error log Generated from your add-on. Disabled "Content Copy Protection" but still having this server error log. You can replicate this error from viewing deleted thread with post.

189665

Code:
ErrorException: [E_NOTICE] Trying to get property 'user_id' of non-object src/addons/haydric/toRights/XF/Entity/Post.php:15

Generated by: ask Dec 2, 2018 at 9:27 PM

Stack trace

#0 src/addons/haydric/toRights/XF/Entity/Post.php(15): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 15, Array)
#1 src/XF/Alert/AbstractHandler.php(21): haydric\toRights\XF\Entity\Post->canView(NULL)
#2 src/XF/Entity/UserAlert.php(39): XF\Alert\AbstractHandler->canViewContent(Object(SV\ChangePostDate\XF\Entity\Post), NULL)
#3 src/XF/Pub/Controller/Account.php(1121): XF\Entity\UserAlert->canView()
#4 [internal function]: XF\Pub\Controller\Account->XF\Pub\Controller\{closure}(Object(NF\Discord\XF\Entity\UserAlert))
#5 src/XF/Mvc/Entity/AbstractCollection.php(167): array_filter(Array, Object(Closure))
#6 src/XF/Pub/Controller/Account.php(1122): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure))
#7 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Account->actionAlertsPopup(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'AlertsPopup', 'json', Object(XF\Mvc\ParameterBag), 'account', Object(AddonFlare\PaidRegistrations\XF\Pub\Controller\Account), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#11 src/XF.php(329): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(145) "/account/alerts-popup?_xfRequestUri=%2F&_xfWithData=1&_xfToken=1543764205%2C35aac960644a124b88f41ac014a72e71&_xfResponseType=json&_=1543763694425"
  ["referrer"] => string(23) "/"
  ["_GET"] => array(5) {
    ["_xfRequestUri"] => string(1) "/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1543764205,35aac960644a124b88f41ac014a72e71"
    ["_xfResponseType"] => string(4) "json"
    ["_"] => string(13) "1543763694425"
  }
  ["_POST"] => array(0) {
  }
}

Code:
ErrorException: [E_NOTICE] Trying to get property 'user_id' of non-object src/addons/haydric/toRights/XF/Entity/Post.php:15

Generated by: Nirjonmela Dec 3, 2018 at 3:53 AM

Stack trace

#0 src/addons/haydric/toRights/XF/Entity/Post.php(15): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 15, Array)
#1 src/XF/Pub/Controller/Thread.php(210): haydric\toRights\XF\Entity\Post->canView(NULL)
#2 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Thread->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Post', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(ThemeHouse\Topics\XF\Pub\Controller\Thread), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#6 src/XF.php(329): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state

array(4) {
  ["url"] => string(57) "/threads/english-to-bangla-word-meaning.29544/post-301689"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
@Haydric This Server error log Generated from your add-on. Disabled "Content Copy Protection" but still having this server error log. You can replicate this error from viewing deleted thread with post.

View attachment 189665

Code:
ErrorException: [E_NOTICE] Trying to get property 'user_id' of non-object src/addons/haydric/toRights/XF/Entity/Post.php:15

Generated by: ask Dec 2, 2018 at 9:27 PM

Stack trace

#0 src/addons/haydric/toRights/XF/Entity/Post.php(15): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 15, Array)
#1 src/XF/Alert/AbstractHandler.php(21): haydric\toRights\XF\Entity\Post->canView(NULL)
#2 src/XF/Entity/UserAlert.php(39): XF\Alert\AbstractHandler->canViewContent(Object(SV\ChangePostDate\XF\Entity\Post), NULL)
#3 src/XF/Pub/Controller/Account.php(1121): XF\Entity\UserAlert->canView()
#4 [internal function]: XF\Pub\Controller\Account->XF\Pub\Controller\{closure}(Object(NF\Discord\XF\Entity\UserAlert))
#5 src/XF/Mvc/Entity/AbstractCollection.php(167): array_filter(Array, Object(Closure))
#6 src/XF/Pub/Controller/Account.php(1122): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure))
#7 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Account->actionAlertsPopup(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'AlertsPopup', 'json', Object(XF\Mvc\ParameterBag), 'account', Object(AddonFlare\PaidRegistrations\XF\Pub\Controller\Account), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#11 src/XF.php(329): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(145) "/account/alerts-popup?_xfRequestUri=%2F&_xfWithData=1&_xfToken=1543764205%2C35aac960644a124b88f41ac014a72e71&_xfResponseType=json&_=1543763694425"
  ["referrer"] => string(23) "/"
  ["_GET"] => array(5) {
    ["_xfRequestUri"] => string(1) "/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1543764205,35aac960644a124b88f41ac014a72e71"
    ["_xfResponseType"] => string(4) "json"
    ["_"] => string(13) "1543763694425"
  }
  ["_POST"] => array(0) {
  }
}

Code:
ErrorException: [E_NOTICE] Trying to get property 'user_id' of non-object src/addons/haydric/toRights/XF/Entity/Post.php:15

Generated by: Nirjonmela Dec 3, 2018 at 3:53 AM

Stack trace

#0 src/addons/haydric/toRights/XF/Entity/Post.php(15): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 15, Array)
#1 src/XF/Pub/Controller/Thread.php(210): haydric\toRights\XF\Entity\Post->canView(NULL)
#2 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Thread->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Post', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(ThemeHouse\Topics\XF\Pub\Controller\Thread), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#6 src/XF.php(329): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state

array(4) {
  ["url"] => string(57) "/threads/english-to-bangla-word-meaning.29544/post-301689"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
I tried several times to replicate this error, and to no avail did I. Checking through your stack traces their are other add-on namespaces listed. I have modified the canView() function of that file in hope of killing this error.
 
Top Bottom