D.C Style - Thumbnail

D.C Style - Thumbnail 1.0.5 Patch Level 5

No permission to download

D.C Style

Well-known member
D.C Style submitted a new resource:

D.C Style - Thumbnail - Allow users to enable cover image & thumbnail image for their threads.

Introduce

Allow users to enable cover image for their threads and add thumbnails to forum view.

  • Customize thumbnail for each thread. Supports attachment images, external images and thumbnail from videos on Youtube, Vimeo and Dailymotion (updating…).
  • Turn on/off cover image for each thread.
  • Add og:image tag for Facebook sharing.
  • Supports permission for each member group.

Installation

  • Unzip
  • Upload...

Read more about this resource...
 
I'm working on it. XF 2.2 still in beta so I'm not sure if I can release a compatible version of the add-on this time.
That's fine. But would you make it compatible with it once the stable version will be released? As I see no point to use it if won't be released for xF2. 2
 
It does work with TH styles. Lot of things to like about this addon, especially considering it's free. A couple additions that would be nice: ability to have thumbnails appear smaller on widgets than they do on threadview, even if this has to be a default standard size reduction, like 50% of whatever the pixel size options are; and if the thumbnails would display on search results.

So people know, whether or not images appear circular or square is dependent on avatar settings. Just figured I'd mention it, because this isn't the case with a couple of other similar addon's I've used.
 
Last edited:
It does work with TH styles. Lot of things to like about this addon, especially considering it's free. A couple additions that would be nice: ability to have thumbnails appear smaller on widgets than they do on threadview, even if this has to be a default standard size reduction, like 50% of whatever the pixel size options are. Also, if the thumbnails would display on search results.

Just so people know, whether or not images appear circular or square is dependent on avatar settings. Just figured I'd mention it, because this isn't the case with a couple of other similar addon's I've used.

Thanks for confirming , I will test it on my forum than.
 
Seems to be a conflict with Xon's Report Improvements here:


  • ErrorException: Template error: Method getThumbnail is not callable on the given object (SV\ReportImprovements\XF\Entity\Thread)
  • src/XF/Template/Templater.php:994

Stack trace​


#0 [internal function]: XF\Template\Templater->handleTemplateError()
#1 src/XF/Template/Templater.php(994): trigger_error()
#2 internal_data/code_cache/templates/l1/s112/public/dcMoreThread_blocks.php(36): XF\Template\Templater->method()
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}()
#4 internal_data/code_cache/templates/l1/s112/public/dcMoreThread_blocks.php(93): XF\Template\Templater->callMacro()
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}()
#6 src/XF/Template/Templater.php(1388): XF\Template\Templater->renderTemplate()
#7 internal_data/code_cache/templates/l1/s112/public/post_macros.php(269): XF\Template\Templater->includeTemplate()
#8 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}()
#9 internal_data/code_cache/templates/l1/s112/public/thread_view.php(702): XF\Template\Templater->callMacro()
#10 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}()
#11 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate()
#12 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView()
#14 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView()
#15 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply()
#16 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render()
#17 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#18 src/XF.php(390): XF\App->run()
#19 index.php(20): XF::runApp()
#20 {main}
 
Seems to be a conflict with Xon's Report Improvements here:


  • ErrorException: Template error: Method getThumbnail is not callable on the given object (SV\ReportImprovements\XF\Entity\Thread)
  • src/XF/Template/Templater.php:994

Stack trace​


#0 [internal function]: XF\Template\Templater->handleTemplateError()
#1 src/XF/Template/Templater.php(994): trigger_error()
#2 internal_data/code_cache/templates/l1/s112/public/dcMoreThread_blocks.php(36): XF\Template\Templater->method()
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}()
#4 internal_data/code_cache/templates/l1/s112/public/dcMoreThread_blocks.php(93): XF\Template\Templater->callMacro()
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}()
#6 src/XF/Template/Templater.php(1388): XF\Template\Templater->renderTemplate()
#7 internal_data/code_cache/templates/l1/s112/public/post_macros.php(269): XF\Template\Templater->includeTemplate()
#8 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}()
#9 internal_data/code_cache/templates/l1/s112/public/thread_view.php(702): XF\Template\Templater->callMacro()
#10 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}()
#11 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate()
#12 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView()
#14 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView()
#15 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply()
#16 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render()
#17 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#18 src/XF.php(390): XF\App->run()
#19 index.php(20): XF::runApp()
#20 {main}
Tried to install but get no errors. Which actions or page do you get this?
 
I like it. Will wait for 2.2 version. Will the thumbnail also show on the following pages: search result page, tag page, whats new page, last post page, on the my profile pages that show threads?
 
I like it. Will wait for 2.2 version. Will the thumbnail also show on the following pages: search result page, tag page, whats new page, last post page, on the my profile pages that show threads?
  • Last post page, what's new page: Yes.
  • Search result page, tag page, profile page: No.
 
Back
Top Bottom