Thread Thumbnail by AddonsLab

Thread Thumbnail by AddonsLab [Paid] 3.0.0 Beta 1

No permission to buy ($29.99)
I tried to cut and paste the errors but the paste didn't work. It said something like "auto thumbnail" and was coming in every second.

I deleted it and reinstalled 2.6.0.
 
@beerForo we did not reproduce any server errors with it, could you please open a ticket and give us some examples of errors so we can troubleshoot it further. If you don't have any examples that's fine, if there is an ongoing issue I guess one of users will reproduce and report it.

Thank you!
Sorry, I forgot it was still in logs. Like one of these every second. Hundreds of entries.
Code:
ErrorException: Template error: [E_WARNING] Attempt to read property "is_auto_thumbnail" on null src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php:261
Generated by: Unknown account Aug 13, 2021 at 4:54 PM
Stack trace
#0 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(261): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/*****/pub...', 261)
#1 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(80): AL\ThreadThumbnail\XF\Entity\Thread->hasThumbnail()
#2 [internal function]: AL\ThreadThumbnail\XF\Entity\Thread->getMetaThumbnailUrl()
#3 src/XF/Template/Templater.php(1184): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l1/s2/public/thread_view.php(633): XF\Template\Templater->method(Object(TickTackk\ChangeContentOwner\XF\Entity\Thread), 'getMetaThumbnai...', Array)
#5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#13 src/XF.php(512): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(54) "/threads/promo.58324/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Sorry, I forgot it was still in logs. Like one of these every second. Hundreds of entries.
Code:
ErrorException: Template error: [E_WARNING] Attempt to read property "is_auto_thumbnail" on null src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php:261
Generated by: Unknown account Aug 13, 2021 at 4:54 PM
Stack trace
#0 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(261): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/*****/pub...', 261)
#1 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(80): AL\ThreadThumbnail\XF\Entity\Thread->hasThumbnail()
#2 [internal function]: AL\ThreadThumbnail\XF\Entity\Thread->getMetaThumbnailUrl()
#3 src/XF/Template/Templater.php(1184): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l1/s2/public/thread_view.php(633): XF\Template\Templater->method(Object(TickTackk\ChangeContentOwner\XF\Entity\Thread), 'getMetaThumbnai...', Array)
#5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#13 src/XF.php(512): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(54) "/threads/promo.58324/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
We also faced the same issue with the recent update. Though we have it resolved temporarily by changing line no 161 in AL\ThreadThumbnail\XF\Entity\Thread.php to

Code:
 if (
            isset($this->ThreadThumbnail->is_auto_thumbnail) && $this->ThreadThumbnail->is_auto_thumbnail
            && in_array($this->thread_id, array_map('intval', explode(',', \XF::options()->altt_disbaled_threads)), true)
        )

@AddonsLab Please have a look into this. Thanks :)
 
AddonsLab updated Thread Thumbnail by AddonsLab with a new update entry:

Bug-fix: hasThumbnail method throws an error due to the missing thumbnail relation

This version fixes a PHP bug: ErrorException: Template error: [E_WARNING] Attempt to read property "is_auto_thumbnail" on null src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php:261

The new version is available for all licensed customers at https://customers.addonslab.com/marketplace.php/my-services/

Thank you!

Read the rest of this update entry...
 
BUG

I upgraded from 2.6.0. The TT is showing in What's New/New Posts even though I have it set to show in forum view only. I'm about to go back to 2.6.0 had no issues.
With this bug too please. I am using an older version because of the bugs.
 
@AddonsLab - Can you please tell me how this works with the new Articles thread type and forums? Will it allow the member to specify which image is shown for the photo in the article list? Will it affect the way these images are displayed?
 
@AddonsLab - Can you please tell me how this works with the new Articles thread type and forums? Will it allow the member to specify which image is shown for the photo in the article list? Will it affect the way these images are displayed?

It works for article forums just like for general forums. It affects only the list of threads, no any other view is affected by choosing a thumbnail:

image.png


If you need anything specific, just let us know here in detail and we will consider it for the next version.

Thank you!
 
Could a few of you kind souls share with me what your "altt_thread_thumbnail.less template" looks like? I haven't been able to find any solutions I'm happy with. I like my thumbnails a bit larger, but unfortunately my avatars are then too large. I've been using the example code AddonLab gives, which they say does not affect the display of avatars elsewhere:

div[data-type=thread] .structItem-cell.structItem-cell--icon {
width: 90px;
}

div[data-type=thread] .structItem-iconContainer .threadThumbnailWrapper .avatar {
width: 74px;
height: 100px;
}

But unfortunately it does affect the display of my avatars everywhere.

Also, using this code, the little mini avatar that lets you know you've replied to a thread is the same size as the main avatar and mostly obscures it. If I try to adjust the value, it ends up too far off to one side.
 
I'm using this in extra.less for rectangular thumbs, adjust as needed:
Code:
.has-thumbnail div.avatar {
    width: 100px;
    height: 56px;
    border-radius: 5px !important;
}

.has-thumbnail .threadThumbnailWrapper div.avatar img.alignThumbnail {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    max-width: 100px;
    max-height: 56px;
}

div[data-type=thread] .has-thumbnail .structItem-cell.structItem-cell--icon:not(.structItem-cell--iconEnd):nth-child(2) {
    width: 110px;
}
 
I'm using this in extra.less for rectangular thumbs, adjust as needed:
Code:
.has-thumbnail div.avatar {
    width: 100px;
    height: 56px;
    border-radius: 5px !important;
}

.has-thumbnail .threadThumbnailWrapper div.avatar img.alignThumbnail {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    max-width: 100px;
    max-height: 56px;
}

div[data-type=thread] .has-thumbnail .structItem-cell.structItem-cell--icon:not(.structItem-cell--iconEnd):nth-child(2) {
    width: 110px;
}
Okay, maybe a stupid question, but how would I edit that to get the thumbnails to display at, say, a width of 100px and height of 75px, without it changing the avatar size? I experimented with adjusting the values you gave me, but the thumbnail size never changed.
 
That was the first thing I tried, but it's made no difference in the size of the thumbnails. LoL, I think I need to take a break, maybe things will be clearer to me tomorrow. Thanks for the response, though.
 
Try a support ticket on their site, they helped me tweak the code. It's confusing but not sure why it doesn't work. But they will help customize.
 
Try a support ticket on their site, they helped me tweak the code. It's confusing but not sure why it doesn't work. But they will help customize.
Yeah, definitely more of an effort. The last thumbnail addon I used, I think all I did was literally set the width field to 100px and it looked fine in every style I have, all nine or ten of them. I'm sure it's user error, though.
 
Back
Top Bottom