@D.C Style How can I create a Rebuild threads already have thumbnail task that would run once a day?
Thx!!
Thx!!
Last edited:
- Add compatibility to XF 2.3
TypeError: Macro public:dcThumbnail_thumbnail_macros :: thumbnail_avatar() error: DC\Thumbnail\Repository\Thumbnail::isContainingMediaBbCode(): Argument #1 ($message) must be of type string, null given, called in /var/www/vhosts/zetor-forum.de/httpdocs/src/addons/DC/Thumbnail/XF/Entity/Thread.php on line 21 src/addons/DC/Thumbnail/Repository/Thumbnail.php:11
#0 src/addons/DC/Thumbnail/XF/Entity/Thread.php(21): DC\Thumbnail\Repository\Thumbnail->isContainingMediaBbCode(NULL)
#1 src/XF/Template/Templater.php(1195): DC\Thumbnail\XF\Entity\Thread->isVideoThumbnail()
#2 internal_data/code_cache/templates/l2/s1/public/dcThumbnail_thumbnail_macros.php(40): XF\Template\Templater->method(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), 'isVideoThumbnai...', Array)
#3 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#4 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('dcThumbnail_thu...', 'thumbnail_avata...', Array, Array, Object(XF\Template\MacroState))
#5 internal_data/code_cache/templates/l2/s1/public/dcThumbnail_thumbnail_macros.php(14): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro(NULL, 'thumbnail_avata...', Array, Array)
#6 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#7 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('dcThumbnail_thu...', 'thread_list_thu...', Array, Array, Object(XF\Template\MacroState))
#8 internal_data/code_cache/templates/l2/s1/public/thread_list_macros.php(53): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('dcThumbnail_thu...', 'thread_list_thu...', Array, Array)
#9 src/XF/Template/Templater.php(991): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(927): XF\Template\Templater->renderExtensionInternal('icon_cell', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l2/s1/public/thread_list_macros.php(589): XF\Template\Templater->renderExtension('icon_cell', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array, Object(XF\Template\MacroState))
#14 internal_data/code_cache/templates/l2/s1/public/svESE_macros.php(67): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('thread_list_mac...', 'item', Array, Array)
#15 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#16 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('svESE_macros', 'similar_threads', Array, Array, Object(XF\Template\MacroState))
#17 internal_data/code_cache/templates/l2/s1/public/svElasticSearchEssentials_widget_similar_threads.php(7): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('svESE_macros', 'similar_threads', Array, Array)
#18 src/XF/Template/Templater.php(1655): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#19 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('svElasticSearch...', Array, true, NULL)
#20 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:svElasti...', Array, true, NULL)
#21 src/XF/Widget/WidgetRenderer.php(62): MaZ\AUN\XF\Template\Templater->renderTemplate('public:svElasti...', Array)
#22 src/XF/Widget/WidgetRenderer.php(67): XF\Widget\WidgetRenderer->render()
#23 src/XF/Template/Templater.php(1940): XF\Widget\WidgetRenderer->__toString()
#24 internal_data/code_cache/templates/l2/s1/public/thread_view.php(1279): XF\Template\Templater->widgetPosition('sv_thread_view_...', Array)
#25 src/XF/Template/Templater.php(1655): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#26 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#27 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#28 src/XF/Template/Templater.php(1646): MaZ\AUN\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#29 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('thread_view_typ...', Array, true, NULL)
#30 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#31 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#32 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#33 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\ViewT...', 'public:thread_v...', Array)
#34 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#35 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#36 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#37 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#38 src/XF.php(524): XF\App->run()
#39 index.php(20): XF::runApp('XF\\Pub\\App')
#40 {main}
array(4) {
["url"] => string(50) "/themen/beast-from-the-east-belarus-mt3-4522.6329/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
ErrorException: Template error: [E_WARNING] Attempt to read property "message" on null src/addons/DC/Thumbnail/XF/Entity/Thread.php:21
#0 src/addons/DC/Thumbnail/XF/Entity/Thread.php(21): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/var/www/vhosts...', 21)
#1 src/XF/Template/Templater.php(1195): DC\Thumbnail\XF\Entity\Thread->isVideoThumbnail()
#2 internal_data/code_cache/templates/l2/s1/public/dcThumbnail_thumbnail_macros.php(40): XF\Template\Templater->method(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), 'isVideoThumbnai...', Array)
#3 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#4 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('dcThumbnail_thu...', 'thumbnail_avata...', Array, Array, Object(XF\Template\MacroState))
#5 internal_data/code_cache/templates/l2/s1/public/dcThumbnail_thumbnail_macros.php(14): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro(NULL, 'thumbnail_avata...', Array, Array)
#6 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#7 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('dcThumbnail_thu...', 'thread_list_thu...', Array, Array, Object(XF\Template\MacroState))
#8 internal_data/code_cache/templates/l2/s1/public/thread_list_macros.php(53): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('dcThumbnail_thu...', 'thread_list_thu...', Array, Array)
#9 src/XF/Template/Templater.php(991): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(927): XF\Template\Templater->renderExtensionInternal('icon_cell', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l2/s1/public/thread_list_macros.php(589): XF\Template\Templater->renderExtension('icon_cell', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array, Object(XF\Template\MacroState))
#14 internal_data/code_cache/templates/l2/s1/public/svESE_macros.php(67): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('thread_list_mac...', 'item', Array, Array)
#15 src/XF/Template/Templater.php(828): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#16 src/addons/MaZ/AMP/XF/Template/Templater.php(152): XF\Template\Templater->callMacro('svESE_macros', 'similar_threads', Array, Array, Object(XF\Template\MacroState))
#17 internal_data/code_cache/templates/l2/s1/public/svElasticSearchEssentials_widget_similar_threads.php(7): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('svESE_macros', 'similar_threads', Array, Array)
#18 src/XF/Template/Templater.php(1655): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, NULL)
#19 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('svElasticSearch...', Array, true, NULL)
#20 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:svElasti...', Array, true, NULL)
#21 src/XF/Widget/WidgetRenderer.php(62): MaZ\AUN\XF\Template\Templater->renderTemplate('public:svElasti...', Array)
#22 src/XF/Widget/WidgetRenderer.php(67): XF\Widget\WidgetRenderer->render()
#23 src/XF/Template/Templater.php(1940): XF\Widget\WidgetRenderer->__toString()
#24 internal_data/code_cache/templates/l2/s1/public/thread_view.php(1279): XF\Template\Templater->widgetPosition('sv_thread_view_...', Array)
#25 src/XF/Template/Templater.php(1655): XF\Template\Templater->{closure}(Object(X0815\ChkTables\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#26 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#27 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#28 src/XF/Template/Templater.php(1646): MaZ\AUN\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#29 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('thread_view_typ...', Array, true, NULL)
#30 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#31 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#32 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#33 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\ViewT...', 'public:thread_v...', Array)
#34 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#35 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#36 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#37 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#38 src/XF.php(524): XF\App->run()
#39 index.php(20): XF::runApp('XF\\Pub\\App')
#40 {main}
array(4) {
["url"] => string(50) "/themen/beast-from-the-east-belarus-mt3-4522.6329/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
- Add null safety check for "isContainingMediaBbCode" function in Thumbnail repository (Refer to the case of @otto here: https://xenforo.com/community/threads/d-c-style-thumbnail.185177/post-1677841)
I'm not sure I understand what you mean.Any chance that "no thumbnail" behavior could be changed to an option for not replacing the user avatar?
(I'm just testing it on a dev installation)
I'll think about a solution for your case in the upcoming version.@D.C Style How can I create a Rebuild threads already have thumbnail task that would run once a day?
Thx!!
View attachment 300528
I mean an option for allowing to choose if you want to show the "user avatar" when no image for thumbnail is available, or the "no thumbnail" placeholderI'm not sure I understand what you mean.
...
- Add posibility to use user avatar when thread has no thumbnail if possible (Refer to the case of @El Porcharo here: https://xenforo.com/community/threads/d-c-style-thumbnail.185177/post-1678049)
- Add posibility to set the thumbnail width & height for thread list and widgets separately (Refer to the case of @Capturimage here: https://xenforo.com/community/threads/d-c-style-thumbnail.185177/post-1680337)
The option to set thumbnail width & height only works properly on default style. For custom styles, please try contact the style's author to fix the display issue if exists.First, thank you very much for this nice addon; very usefull for a forum about photo and video.
I have 2 questions :
- Is it possible to go over the 40 pixels size without hiding the titles of the threads?
- Could we dissociate the size for the forums and the one for the latest post widget (+ mobile)?
- Fixed crash when upgrading to the new version (Refer to the cases of @Capturimage & @fiebrelectora here: https://xenforo.com/community/threads/d-c-style-thumbnail.185177/post-1680378 and https://xenforo.com/community/threads/d-c-style-thumbnail.185177/post-1680380)
D.C Style updated D.C Style - Thumbnail with a new update entry:
Version 1.0.5 Patch Level 1
Read the rest of this update entry...
- Added possibility to enable/disable Gravatar when using user avatar to display if thread has no avatar (Refer to the case of @ekool here: https://xenforo.com/community/threads/d-c-style-thumbnail.185177/post-1680527)
View attachment 302238- Added possiblity to select "All forums" without having to update forum list manually if there were new forums (Refer to the case of @ekool here...
That was the case with my new template, for the height of the thumbnails.The option to set thumbnail width & height only works properly on default style. For custom styles, please try contact the style's author to fix the display issue if exists.
Regards,
.structItem-cell--icon[style*='height']{
height: auto !important;
}
Thanks, that's really helpful. I'll update this into the upcoming version!That was the case with my new template, for the height of the thumbnails.
The guy explained to me that was because you assigned a fix height for the rows and he suggested to use this code in the extra_less to solve the issue, in my case.
Code:.structItem-cell--icon[style*='height']{ height: auto !important; }
Before, it looked like this :
We use essential cookies to make this site work, and optional cookies to enhance your experience.