Use attachments of other users

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
LuuLa
Registered User
Posts: 110
Joined: Thu Feb 19, 2004 4:25 pm

Use attachments of other users

Post by LuuLa » Mon Dec 21, 2015 11:49 pm

Hello,

I need an extension that makes it possible to place an uploaded attachment (picture) into a post of another user, who has not uploaded the attachment. Please refer to this topic where I put my question a few days ago.

Can help me, please?

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1178
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: Use attachments of other users

Post by mrgoldy » Tue Dec 22, 2015 1:26 am

I've read that topic, and I'm still not quite sure if I understand why this can't be done already?

For example if we look at this post. It contains attached images, placed inline.
I right click the image, 'open in new tab', copy the link.
>> Can also simply click on 'copy image address' straight away, but this is my odd way of doing it.

Use the link between new Image

User avatar
Elias
Registered User
Posts: 4625
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias

Re: Use attachments of other users

Post by Elias » Tue Dec 22, 2015 2:38 am

I don't see a quoted picture in that post?

I think what he wants is the following:
User 1 attaches a picture in his post.

He wants it that if user 2 quotes user 1's post, the attached picture is included in the quote.
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|

User avatar
John connor
Registered User
Posts: 2293
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: Use attachments of other users

Post by John connor » Tue Dec 22, 2015 4:12 am

Elias wrote:I don't see a quoted picture in that post?

I think what he wants is the following:
User 1 attaches a picture in his post.

He wants it that if user 2 quotes user 1's post, the attached picture is included in the quote.
Exactly. At least that's what I would like to have since one of my boards is largely an image sharing board.

User avatar
LuuLa
Registered User
Posts: 110
Joined: Thu Feb 19, 2004 4:25 pm

Re: Use attachments of other users

Post by LuuLa » Tue Dec 22, 2015 9:01 pm

Elias wrote:He wants it that if user 2 quotes user 1's post, the attached picture is included in the quote.
Correct.

User avatar
John connor
Registered User
Posts: 2293
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: Use attachments of other users

Post by John connor » Sun Mar 06, 2016 8:22 am

Bump.

User avatar
gn#36
Translator
Posts: 185
Joined: Fri Oct 13, 2006 1:16 pm
Contact:

Re: Use attachments of other users

Post by gn#36 » Mon Mar 07, 2016 2:01 am

So you basically want that when you hit the quote button, the image attachments in the post are automatically converted to [img]link/to/original/image[/img] so you see the same picture in both the original post and the quote?
German Support Team Member • http://www.phpbb.deMy Extensions in the CDBMy Extensions on Github • Contact with caos is inavoidable but no catastrophy if you keep an overview.

User avatar
LuuLa
Registered User
Posts: 110
Joined: Thu Feb 19, 2004 4:25 pm

Re: Use attachments of other users

Post by LuuLa » Mon Mar 07, 2016 12:04 pm

gn#36 wrote:So you basically want that when you hit the quote button, the image attachments in the post are automatically converted to [img]link/to/original/image[/img] so you see the same picture in both the original post and the quote?
Yes, but not with IMG tags! The image must be inserted with the ATTACH tags, so that only users with suff. rights can watch them.

User avatar
gn#36
Translator
Posts: 185
Joined: Fri Oct 13, 2006 1:16 pm
Contact:

Re: Use attachments of other users

Post by gn#36 » Mon Mar 07, 2016 12:13 pm

I never understood making images private while leaving the text around it public. That is a configuration that would make me think at least twice before joining that board. Of what use are users that register only to see the attachments and are never seen again otherwise?

Anyways, permissions would work even with image tags, because the image is not linked directly but through file.php, which runs a permission check as well before delivering the image. The only difference would be that users won't get a "You must be registered to see this attachment" or similar, but instead simply wont see the image at all or get whatever default text is in the alt tag of the image.
German Support Team Member • http://www.phpbb.deMy Extensions in the CDBMy Extensions on Github • Contact with caos is inavoidable but no catastrophy if you keep an overview.

User avatar
LuuLa
Registered User
Posts: 110
Joined: Thu Feb 19, 2004 4:25 pm

Re: Use attachments of other users

Post by LuuLa » Mon Mar 07, 2016 12:29 pm

gn#36 wrote:I never understood making images private while leaving the text around it public. That is a configuration that would make me think at least twice before joining that board. Of what use are users that register only to see the attachments and are never seen again otherwise?
Although this topic is not about the reasons why, I still try to explain it to you: it depends on the usage of a board. Not every board is the same. There are boards whose main values lies in pictures, submitted by users. Anyway, our posting texts newer than 4 weeks aren't public as well. Maybe, you now understand.

gn#36 wrote:Anyways, permissions would work even with image tags, because the image is not linked directly but through file.php, which runs a permission check as well before delivering the image. The only difference would be that users won't get a "You must be registered to see this attachment" or similar, but instead simply wont see the image at all or get whatever default text is in the alt tag of the image.
Perfect. In which syntax?

Code: Select all

[img][attach]xxxxxxx[/attach][/img]
?
Last edited by LuuLa on Mon Mar 07, 2016 2:00 pm, edited 1 time in total.

User avatar
gn#36
Translator
Posts: 185
Joined: Fri Oct 13, 2006 1:16 pm
Contact:

Re: Use attachments of other users

Post by gn#36 » Mon Mar 07, 2016 12:43 pm

No, syntax is [img]final/url/of/image[/img], where final/url/of/image is something like http://example.com/download/file.php?id=102345. You can get the url by right-clicking on the image and retrieving its address. You can simply use that address in the img tag. The only case this will not work is when users are logged in without using cookies.

This is exactly what posey suggested and you can see that he was able to use the link from VSEs attachment and place the image in this thread as well.
German Support Team Member • http://www.phpbb.deMy Extensions in the CDBMy Extensions on Github • Contact with caos is inavoidable but no catastrophy if you keep an overview.

User avatar
LuuLa
Registered User
Posts: 110
Joined: Thu Feb 19, 2004 4:25 pm

Re: Use attachments of other users

Post by LuuLa » Mon Mar 07, 2016 2:02 pm

Thank you!

User avatar
John connor
Registered User
Posts: 2293
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: Use attachments of other users

Post by John connor » Tue Mar 08, 2016 8:43 am

Users are either not going to know how to do that or are too stupid. Could an extension be coded to do what this does?

I know my users will not know how to do this and a majority of my users use a smartphone. So manipulating text and all this would be a PITA!

profKroy
Registered User
Posts: 141
Joined: Sun Feb 14, 2016 2:39 pm

Re: Use attachments of other users

Post by profKroy » Sun Jan 29, 2017 9:47 am

Yeah I agree. I'm running a board with much use of images by users who are students, not accustomed to BBCODE workarounds perhaps.

If a user replied to a post that had an attached image, then the image they are commenting on should be displayed as a thumbnail in their post. I would love to have an extension that would accomplish this function.

It would make my classroom/board much more organized for students who may not be very tech savvy or are new to this style of forum. Yes those folks exist. Any visual reference as described would go a long way towards keeping them oriented to the discussions surrounding various images.

Has there been any development in this area?
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

User avatar
Puchahawa
Registered User
Posts: 768
Joined: Sat Jan 01, 2011 10:33 pm
Name: Randy

Re: Use attachments of other users

Post by Puchahawa » Sun Jan 29, 2017 10:35 pm

I think this extension will do that. Suppose to add the image in a quote as a thumbnail.

Not sure if it will work with 3.2 though. May need to check with the author about that.
Avatar courtesy of artist Faith Coyotë

Post Reply

Return to “Extension Requests”