Jump to content

Topic Thumbnail for IPS4.x


onlyME

Recommended Posts

Posted
1 hour ago, Joel R said:

Suggestion

  1. Replace avatar in Activity Stream
  2. Replace avatar in Desktop notification

 I will consider your idea :)

Posted
Just now, openfire said:

Hi love the plugin!

Is there any way to get the thumbnails in the topic feed block?

It has a block with thumbnails.

Screenshot_2.thumb.jpg.1aaf698baa6232d8b5f6287296350505.jpg

Posted
4 minutes ago, onlyME said:

It has a block with thumbnails.

Screenshot_2.thumb.jpg.1aaf698baa6232d8b5f6287296350505.jpg

Yes, I saw that, but it only produces a gallery, unless I'm doing something wrong... Is there any way to make it look like the standard topic feed, but with a thumbnail on the left?

Posted
Just now, openfire said:

Yes, I saw that, but it only produces a gallery, unless I'm doing something wrong... Is there any way to make it look like the standard topic feed, but with a thumbnail on the left?

It will show as a gallery on horizontal widget. If you use the widget in sidebar you will see the thumbnails on the left. That's its styles.

  • 2 weeks later...
Posted

Also is it possible to create a button for "gallery mode" just like you have a button for Show/Hide thumbnails? I would like it to default to off but if members want to switch it on for themselves they can click a button.

Posted
1 hour ago, maddog107_merged said:

@onlyME is there a way to not crop the thumbnail? I would like it to keep the original ratio of the image so the thumb should set one side to 60px (whichever is larger) so aspect ratio remains the same. 

Let me know, thanks. 

You can force it uses the original images by going to ACP and edit your theme > core > global > plugins > bim_tthumb_showThumb

Find

{$topic->tthumb_show()}

Replace by

{$topic->tthumb_show(1)}

Save

12 minutes ago, maddog107_merged said:

Also is it possible to create a button for "gallery mode" just like you have a button for Show/Hide thumbnails? I would like it to default to off but if members want to switch it on for themselves they can click a button.

Do you mean this Show/Hide button?

d75625e42bbf4fc9976fed4d0b2f35e3.png

Posted

@onlyME

So I like the Gallery Mode (see attachment) but I would like for that to be a user option, so just like the show/hide button, there should be like a "gallery view" or "regular view" button to switch between the Masonry layout and the "regular" layout with thumbnails in a list. 

gallerymode.png

Posted
1 minute ago, maddog107_merged said:

@onlyME

So I like the Gallery Mode (see attachment) but I would like for that to be a user option, so just like the show/hide button, there should be like a "gallery view" or "regular view" button to switch between the Masonry layout and the "regular" layout with thumbnails in a list. 

gallerymode.png

It can not switch between gallery view and regular view by users. 

Posted
15 minutes ago, onlyME said:

You can force it uses the original images by going to ACP and edit your theme > core > global > plugins > bim_tthumb_showThumb

Find


{$topic->tthumb_show()}

Replace by


{$topic->tthumb_show(1)}

 

I added that to both the if / else statement and they still show up smushed. 

				{{endif}}
					<img src='{$topic->tthumb_show(1)}' id='tthumb_{$topic->tid}' class='tthumbimg' width='{$w}px' height='{$h}px'>
				</a>
			</div>
		{{else}}
			<div class="bim_tthumb_wrap">
				<a {{if $topic->canChangeThumbnail() || member.member_id}}href='#tthumb{$topic->tid}_menu' data-ipsMenu id='tthumb{$topic->tid}'{{else}}href='{$topic->url()}'{{endif}} {{if settings.bim_tthumb_onhover == 1}}data-ipstpopup data-ipstpopup-width='280' data-ipstpopup-target="{$topic->url('tthumbGetImage')}"{{endif}}>
					<img src='{$topic->tthumb_show(1)}' {{if $topic->upload_thumbnail}}data-full="{file="$topic->upload_thumbnail" extension="forums_topicThumbnail"}"{{endif}} id="tthumb_{$topic->tid}" class='tthumbimg' width='{$w}px' height='{$h}px'>
				</a>

 

Did I do something wrong? Any guidance is appreciated. Thanks. 

thumbs_smushed.png

Posted
8 minutes ago, onlyME said:

@maddog107_merged that is the reason I crop the images. If you want to use the original images, you have to crop them manually to fit your thumbnail's size.

Ok, I got it working now. 

Ill put this here in case anyone has similar needs in the future, simply remove the "width and height" attributes and replace them with some CSS. 

<img src='{$topic->tthumb_show()}' id='tthumb_{$topic->tid}' class='tthumbimg' style='max-width:{$w}px; max-height:{$h}px;'>

 

non-streched.png

Posted (edited)

@onlyME the guys here at IPS support were helping me with another issue and they believe it may be caused by this plugin.  I have a ton of errors in the system logs:

Quote

Looking at your system logs, you have many many errors, all coming from the (BIM41) Topic Thumbnail application, on topics. Its highly likely this is causing your issues, and I would advise contacting the author of that application to resolve the issues there, or disabling it, to see if this resolved your posting problems. This is very likely to be what is causing the problem.

Kind Regards,
Marc Stridgen

Error: Call to a member function html() on null (0)
#0 /var/www/html/bellazon.com/main/applications/forums/modules/front/forums/topic.php(119): IPS\Content\_Item->commentForm()
#1 /var/www/html/bellazon.com/main/init.php(448) : eval()'d code(18): IPS\forums\modules\front\forums\_topic->manage()
#2 /var/www/html/bellazon.com/main/system/Dispatcher/Controller.php(97): IPS\forums\modules\front\forums\hook211->manage()
#3 /var/www/html/bellazon.com/main/system/Content/Controller.php(51): IPS\Dispatcher\_Controller->execute()
#4 /var/www/html/bellazon.com/main/applications/forums/modules/front/forums/topic.php(40): IPS\Content\_Controller->execute()
#5 /var/www/html/bellazon.com/main/system/Dispatcher/Dispatcher.php(129): IPS\forums\modules\front\forums\_topic->execute()
#6 /var/www/html/bellazon.com/main/index.php(13): IPS\_Dispatcher->run()
#7 {main}
#0 /var/www/html/bellazon.com/main/init.php(512): IPS\_Log::log('Error: Call to ...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(Error))
#2 {main}

This is on 4.1.19

The URL of page the error occurred on was https://www.bellazon.com/main/topic/29353-sara-sampaio/?page=719

 

Edited by maddog107_merged
  • 3 weeks later...
Posted

Is there any known issues with the widget filtering by forum not working? It doesn't matter what I choose in the forums select it makes no difference.

Posted
6 minutes ago, Prank said:

Is there any known issues with the widget filtering by forum not working? It doesn't matter what I choose in the forums select it makes no difference.

No, it works fine. Try to remove the widget, run Get Support to clear the badly cache and place the widget again.

Posted
On 05/04/2017 at 7:27 PM, onlyME said:

No, it works fine. Try to remove the widget, run Get Support to clear the badly cache and place the widget again.

Thanks. It took a little while to update after I cleared cache a few times.

 

  • 2 weeks later...
Posted

Not enough:

1. The possibility of choosing their images from the Gallary.

2. The ability to specify the display length of the subject (to the size of the blocks do not jump because of the different number of rows in the title).

3. In Gallery mode, not enough show "All".

4. Possibilities in the forced form to force users to select an image.

Posted (edited)
17 minutes ago, Cheshir said:

Not enough:

1. The possibility of choosing their images from the Gallary.

2. The ability to specify the display length of the subject (to the size of the blocks do not jump because of the different number of rows in the title).

3. In Gallery mode, not enough show "All".

4. Possibilities in the forced form to force users to select an image.

1. The ideas are so complex. The main feature of this plugin is getting thumbnails from posts or uploading thumbnails. It's a plugin for Forums so I don't want it's related to other application.

2. That is its style. 

3. I don't understand.

4. If user didn't upload image, it will find image in the post.

Edited by onlyME
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...