[CDB] Quoted Image as Thumbnail

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

[CDB] Quoted Image as Thumbnail

Post by HiFiKabin » Tue Jul 14, 2015 12:58 pm

Extension Name: Quoted Images as Thumbnails
Author: HiFiKabin

Extension Description: Shrinks quoted images down to a height of 100 pixels while maintaining the aspect ratio. It only works with linked images (those using the [img] tag) It does not effect attached images.

Language: n/a

Extension Version: 1.0.0

Supported Styles:
  • prosilver and styles inheriting from prosilver
Demo: HERE

Download : HERE

Installation:
  • Download the latest release and unzip it.
  • Upload the the folder hifikabin to root/ext/ and enable it in the ACP
Support:

The contact us link at the bottom of this Forum or CDB Topic
Last edited by HiFiKabin on Tue Oct 27, 2015 8:22 am, edited 5 times in total.

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [RC] Quoted Image as Thumbnail

Post by Mess » Tue Jul 14, 2015 2:38 pm

Great idea, thanks. :)

User avatar
ViolaF
Registered User
Posts: 1441
Joined: Tue Aug 14, 2012 11:52 pm

Re: [RC] Quoted Image as Thumbnail

Post by ViolaF » Tue Jul 14, 2015 3:07 pm

the quoted img is not really resized to 100px, its only hmtl/script (pseudo)resized.

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by HiFiKabin » Tue Jul 14, 2015 4:00 pm

ViolaF wrote:the quoted img is not really resized to 100px, its only hmtl/script (pseudo)resized.
Yes, the image is still hosted remotely and is not changed in any way (in exactly the same way that phpBB3.1.x resizes images dependant on browser size)
Mess wrote:Great idea, thanks. :)
I think it makes multiple quotes look better, especially where the quote is needed for context

User avatar
alhitary
Registered User
Posts: 841
Joined: Wed Jan 17, 2007 7:51 am
Location: ROY
Name: Basil Taha Alhitary
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by alhitary » Wed Jul 15, 2015 1:12 am

can you make an option for Thumbnails or links ?
Give an option to choose the quoted image as Thumbnails or as Links
It will be great
Just a suggestion :D

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by HiFiKabin » Wed Jul 15, 2015 7:13 am

I did have a hacked 3.0.x mod that would do that. The only problem was that if the image was wrapped in a url, the link produced would be that url. eg

Code: Select all

[url=http://imagesite.com][img]http://photo.jpg[/img][/url]
produced the link to

Code: Select all

http://imagesite.com


not

Code: Select all

http://photo.jpg
If you are interested I'll see if I can resurrect it.

Paph
Registered User
Posts: 362
Joined: Tue Dec 25, 2007 7:58 am
Location: Georgia - USA
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by Paph » Sun Oct 04, 2015 10:57 am

I have this extension installed on a test board and it works great for images hosted elsewhere.
Would it be possible to add the ability to work with attached images as well? As it is it only shows an attached images name, whether the image is larger than 100 pixels or not.
Hawk

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by HiFiKabin » Sun Oct 04, 2015 11:15 am

I haven't tested it with attached images (but I will now) I doubt I could easily make it work with attached images though as it is a simple bit of CSS (though I will have a look and see)

Paph
Registered User
Posts: 362
Joined: Tue Dec 25, 2007 7:58 am
Location: Georgia - USA
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by Paph » Sun Oct 04, 2015 11:33 am

Thanks! Much appreciated, but if it's too much work it's no big deal. I was just curious.
Like I said, it works fine for images hosted elsewhere. :)

My curiosity is based on the fact that most of the folks at my forum attach images as opposed to hosting elsewhere. I have plenty of storage available on the server so attached images are not a problem for me, and it helps keep the images available should the poster delete them from wherever they're hosted, or the hosted site decides to delete them, as is the case often.
Hawk

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by HiFiKabin » Mon Oct 05, 2015 12:51 pm

OK after much swearing and gnashing of teeth I find the default way phpBB 3.1.x handles quoted images is the way you describe. This ext does nothing to change this. I have tested it on 2 fresh installs with no extensions installed and the quote of a post with an attached image shows as:-

Image

I don't allow attachments on any of my fora so I haven't noticed this before.

Paph
Registered User
Posts: 362
Joined: Tue Dec 25, 2007 7:58 am
Location: Georgia - USA
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by Paph » Mon Oct 05, 2015 2:16 pm

OK! I really appreciate you giving it a shot.
Sorry it caused so much swearing and gnashing of teeth. :mrgreen:
Hawk

User avatar
yasser33311
Registered User
Posts: 266
Joined: Sat Jul 27, 2013 1:27 pm
Location: algeria
Name: yasser ghe
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by yasser33311 » Mon Oct 05, 2015 9:18 pm

can you add a lightslide or Lightbox to thumbnails?
PhpBB Services - install, update, upgrade, customize: PM

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by HiFiKabin » Tue Oct 06, 2015 7:49 am

I am afraid not.

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by Nully » Wed Oct 07, 2015 12:12 pm

I'd like this extension.
Unfortunately it does not work. I test on local host.
I see only names of images :cry:

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Quoted Image as Thumbnail

Post by HiFiKabin » Wed Oct 07, 2015 12:15 pm

It only works with remotely hosted images added with the IMG tag

Attached images always appear as the name when quoted.

Are you using remotely hosted images?

Locked

Return to “Extensions in Development”