D.C Style - Thumbnail

D.C Style - Thumbnail 1.0.5 Patch Level 6

No permission to download
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)
 
Hello,

Xenforo 2.2.15
php: 8.2
Maria-DB 10.3

DC Thumbnails - latest version and same with the one bevore

Since a time I have such errors:

Code:
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

Code:
#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}

Code:
array(4) {
  ["url"] => string(50) "/themen/beast-from-the-east-belarus-mt3-4522.6329/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}



And this one:
Code:
ErrorException: Template error: [E_WARNING] Attempt to read property "message" on null src/addons/DC/Thumbnail/XF/Entity/Thread.php:21
Code:
#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}
Code:
array(4) {
  ["url"] => string(50) "/themen/beast-from-the-east-belarus-mt3-4522.6329/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Is causing the errors your add-on or the one for AMP-FX from @mazzly ? Can anybody help to fix it?
 
First, thank you very much for this nice addon; very usefull for a forum about photo and video. :love:

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)?
 
Last edited:
D.C Style updated D.C Style - Thumbnail with a new update entry:

Version 1.0.5

...

Read the rest of this update entry...
 
First, thank you very much for this nice addon; very usefull for a forum about photo and video. :love:

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)?
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,
 
Ok, the update didn't go well for me. :oops: My forum has completly crashed after an update from the admin section... I have had to delete the addon files with filezilla, to get back the access to the forum page, and then to go to the admin panel to delete the addon and to install a fresh version of the last update.

The new options work like a charm. Thank you for all the job you have done. :)


I'm not 100% sure but I think that when you clicked on the thumbnails in the previous version, it opened the thread. Now it opens the photo on the external website where the photo has been uploaded. Edit : same for the videos : it will open the thumbnails on the Youtube website.
 
Last edited:
Couple of options...

1. We use gravatar support. I'd prefer not to replace the gravatar image with the thumbnail missing placeholder.

2. I know this is a Xenforo thing but all modifications should have an option for this. I may have to ask it as a feature request. But, on this modification you have to pick every forum you want this to be enabled in. So I've done that. However, if I add additional forums in the future, I have to go back into every modification that requires you to select what forums you want it enabled in. Sometimes you might forget in the future, or miss a mod here or there.

The default option is "none" . There should be an option at the top of "all" as well. That way if you add new forums in the future you don't have to remember to come back and enable it on every modification.

I've requested the second feature here: https://xenforo.com/community/threa...rums-to-enable-modifications-features.221378/
 
Last edited:
D.C Style updated D.C Style - Thumbnail with a new update entry:

Version 1.0.5 Patch Level 2


Read the rest of this update entry...
 
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,
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 :

 
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 :

Thanks, that's really helpful. I'll update this into the upcoming version! :D

Regards,
 
Back
Top Bottom