[OzzModz] Scheduled Content

[OzzModz] Scheduled Content 2.0.1 Patch Level 1

No permission to download

Ozzy47

Well-known member
Ozzy47 submitted a new resource:

[OzzModz] Scheduled Content - Schedule content to be published at a later date

Requirements:
XenForo 2.2.0+

Description:

Scheduled content publication

Features:



  • Automatic content publication after chosen date (content will not be visible to users without permission until this)
  • Notice of scheduled date (visible for users with permission)
  • Ability to edit schedule date
  • Permissions per each content type
Supported content types:



  • Threads
  • Posts
  • Profile posts & comments
  • Conversations &...

Read more about this resource...
 

djbaxter

Well-known member
@Ozzie47

Bug.

I tried to created a new test thread to display tomorrow Sept 27 at 9.00 EDT (server time is the same).

I can't post it.

Error:

Oops! We ran into some problems.

Schedule date must be future
 

Faust

Well-known member
Thanks for the addon, but there is a small issue with TH style on mobile phone. The phrase seems to be too long.

Screenshot_20210926_125754.jpg
 

Ozzy47

Well-known member
Not sure if there is much to be done, if it’s correct on a default style, then there is an issue in their templates.
 

djbaxter

Well-known member
@Ozzy47 this might help - error from when "Use users time zone" was still checked:

Code:
Server error log

    TypeError: Macro public:ozzmodz_sc_macros :: notice() error: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given src/addons/OzzModz/ScheduledContent/Schedule/AbstractHandler.php:58

    Generated by: djbaxter Sep 26, 2021 at 7:51 AM

Stack trace

#0 src/addons/OzzModz/ScheduledContent/Schedule/AbstractHandler.php(58): method_exists(NULL, 'canEdit')
#1 src/addons/OzzModz/ScheduledContent/XF/Entity/User.php(68): OzzModz\ScheduledContent\Schedule\AbstractHandler->canEditSchedule(NULL, NULL)
#2 src/XF/Template/Templater.php(1191): OzzModz\ScheduledContent\XF\Entity\User->canEditScheduleContent(Object(TickTackk\ChangeContentOwner\XF\Entity\Thread))
#3 internal_data/code_cache/templates/l1/s9/public/ozzmodz_sc_macros.php(80): XF\Template\Templater->method(Object(SV\DailyStatistics\XF\Entity\User), 'canEditSchedule...', Array)
#4 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#5 internal_data/code_cache/templates/l1/s9/public/thread_view.php(773): XF\Template\Templater->callMacro('ozzmodz_sc_macr...', 'notice', Array, Array)
#6 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#8 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#10 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#14 src/XF.php(512): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(64) "/threads/testing-the-new-scheduled-content-addon-by-ozzie.58232/"
  ["referrer"] => string(63) "https://{domain}/forums/admin-stuff.111/post-thread"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
 

Faust

Well-known member
Not sure if there is much to be done, if it’s correct on a default style, then there is an issue in their templates.
I also can't schedule any threads, I selected the future date and time and always get the error that I need to set future date.
 

djbaxter

Well-known member
@Ozzie47

Another error when another admin replied to my test scheduled post not realizing it wasn't yet live:

Code:
Server error log

    TypeError: Macro public:ozzmodz_sc_macros :: notice() error: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given src/addons/OzzModz/ScheduledContent/Schedule/AbstractHandler.php:58

    Generated by: {user} Sep 27, 2021 at 8:31 AM

Stack trace

#0 src/addons/OzzModz/ScheduledContent/Schedule/AbstractHandler.php(58): method_exists(NULL, 'canEdit')
#1 src/addons/OzzModz/ScheduledContent/XF/Entity/User.php(68): OzzModz\ScheduledContent\Schedule\AbstractHandler->canEditSchedule(NULL, NULL)
#2 src/XF/Template/Templater.php(1191): OzzModz\ScheduledContent\XF\Entity\User->canEditScheduleContent(Object(TickTackk\ChangeContentOwner\XF\Entity\Thread))
#3 internal_data/code_cache/templates/l1/s9/public/ozzmodz_sc_macros.php(80): XF\Template\Templater->method(Object(SV\DailyStatistics\XF\Entity\User), 'canEditSchedule...', Array)
#4 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#5 internal_data/code_cache/templates/l1/s9/public/thread_view.php(773): XF\Template\Templater->callMacro('ozzmodz_sc_macr...', 'notice', Array, Array)
#6 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#8 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#10 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#14 src/XF.php(512): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(64) "/threads/testing-the-new-scheduled-content-addon-by-ozzie.58232/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
 
Top