Quoted image as thumbnail

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Anti-Spam Guide
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4609
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Quoted image as thumbnail

Post by HiFiKabin »

I have adapted viewtopic.php?t=1282765 to show the quoted image as a thumbnail for 3.0.x viewtopic.php?f=70&t=2276211 but I can not get my head rounds extensions to port this for 3.1.x

Would anyone like to attempt it?

TiA

Image
image post

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Quoted image as thumbnail

Post by Wolfsblvt »

Why not doing this with a simple css style?

Code: Select all

blockquote img {
    max-width: 200px;
    max-height: 200px;
} 
Should be the one for prosilver.
(untested)
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

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

Re: Quoted image as thumbnail

Post by HiFiKabin »

Wolfsblvt wrote:Why not doing this with a simple css style?

Code: Select all

blockquote img {
    max-width: 200px;
    max-height: 200px;
}
Should be the one for prosilver.
(untested)
:oops: Maybe because I think of the complex way rather than the simple way. Where exactly would I put that bit of CSS?

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Quoted image as thumbnail

Post by Wolfsblvt »

HiFiKabin wrote: :oops: Maybe because I think of the complex way rather than the simple way. Where exactly would I put that bit of CSS?
In the stylesheet of the style you use.
It is at (phpbb root folder)/styles/(yourstyle)/theme/(fittingfile).css

Wich style do you use?
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

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

Re: Quoted image as thumbnail

Post by HiFiKabin »

Wolfsblvt wrote:
HiFiKabin wrote: :oops: Maybe because I think of the complex way rather than the simple way. Where exactly would I put that bit of CSS?
In the stylesheet of the style you use.
It is at (phpbb root folder)/styles/(yourstyle)/theme/(fittingfile).css

Wich style do you use?
I am using prosilver. I'll have a play with it later

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

Re: Quoted image as thumbnail

Post by HiFiKabin »

I have put that in common.css (where the other blockquote is) and it works perfectly.

Many thanks

I have added it to subsilver2/theme/stylesheet.css and it doesn't work there. Any ideas?

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Quoted image as thumbnail

Post by Wolfsblvt »

HiFiKabin wrote:I have added it to subsilver2/theme/stylesheet.css and it doesn't work there. Any ideas?
Yes. subsilver2 has another layout for everything. You can inscept the html of a quote in the browser.
If I am right, subsilver2 quotes should be inside a div with the "quotecontent" class.

So just replace the selector with .quotecontent img.

Looks like

Code: Select all

.quotecontent img {
    max-width: 200px;
    max-height: 200px;
} 
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

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

Re: Quoted image as thumbnail

Post by HiFiKabin »

Brilliant! Many thanks for sorting me out, it's much appreciated.

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Quoted image as thumbnail

Post by Wolfsblvt »

No problem. I try to help where I can :D
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

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

Re: Quoted image as thumbnail

Post by HiFiKabin »

Just thought of another question. Oversized images are auto scaled to fit the forum in prosilver, but in subsilver2 they still break out of the forum as they did in 3.0.X and 2.0.X

I am not expecting to be able to autoscale in subsilver, but is there an easy way to resize all posted images to (say) 600pix wide, and still allow the smaller thumbnail in quoted posts?

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Quoted image as thumbnail

Post by Wolfsblvt »

Yeah, you can limit the size of all images in posts the same like you have done with the quote.

Just use the class .postbody for subsilver2.

So maybe something like this:

Code: Select all

.postbody img {
    max-width: 600px;
}  
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

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

Re: Quoted image as thumbnail

Post by HiFiKabin »

Perfect!

Thats going to stop the 'I love subsilver' crowd moaning about oversized images.

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: Quoted image as thumbnail

Post by Dragosvr92 »

I have opened a RFC at area51 to include this in the core.
https://area51.phpbb.com/phpBB/viewtopi ... 08&t=46576
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5095
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: Quoted image as thumbnail

Post by VSE »

Here it is as an extension for you all.

Edit: Updated the attachment
Attachments

[The extension zip has been deactivated and can no longer be displayed.]

🧩 My Extensions 🧩 ✨ YES...they ALL work with phpBB 3.3!! ✨
Please do not PM me for support.

Holger
Registered User
Posts: 1779
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Quoted image as thumbnail

Post by Holger »

Woah! Thanks a lot!

Post Reply

Return to “Extension Requests”