[ABD] Image Upload

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Locked
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6673
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][DEV] Image Upload

Post by HiFiKabin »

Its for images uploaded prior to each user having their own image directory
HiFiKabin wrote: Fri Dec 13, 2019 6:51 pm Thanks for the update, one slight problem though. Changing the directory from files to img-files has left all of the previously uploaded images (those in files) with a broken preview. Thankfully they are still showing correctly in the relevant post though. Also previously uploaded images can no longer be attached to new posts as the code is pointing to the img-files directory.

Presumably these images can no longer be deleted either (I haven't tried this)

Image

Any ideas for a workaround?

TiA
User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [3.2][DEV] Image Upload

Post by dmzx »

HiFiKabin wrote: Fri Apr 09, 2021 12:56 pm Its for images uploaded prior to each user having their own image directory
HiFiKabin wrote: Fri Dec 13, 2019 6:51 pm Thanks for the update, one slight problem though. Changing the directory from files to img-files has left all of the previously uploaded images (those in files) with a broken preview. Thankfully they are still showing correctly in the relevant post though. Also previously uploaded images can no longer be attached to new posts as the code is pointing to the img-files directory.

Presumably these images can no longer be deleted either (I haven't tried this)

Image

Any ideas for a workaround?

TiA
Alonge the development the image path is indeed changed, so those "old" images in files will no show in the UCP and Admin section correctly.
If the files with images is still in the et folder the images are indeed not broken in the forum.

Deleting the "old" images from the database will not show the broken links in UCP and ACP.
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][3.3][DEV] Image Upload

Post by 3Di »

A simple preg_replace should solve the issue with old and news, without touching the DB?
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6673
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][DEV] Image Upload

Post by HiFiKabin »

dmzx wrote: Fri Apr 09, 2021 1:07 pm<snip>
Deleting the "old" images from the database will not show the broken links in UCP and ACP.
... but that will also delete the images from the board. I would like to keep them both for existing and future use.

Is there any potential problem with the work around suggested? Or (as Marco suggests) is there a better way around the issue?
User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [3.2][3.3][DEV] Image Upload

Post by dmzx »

3Di wrote: Fri Apr 09, 2021 1:19 pm A simple preg_replace should solve the issue with old and news, without touching the DB?
The new image name is user_id based with 2 random directories like :
/2/42b42e5/d8cd523/some_image.png

preg_replace is not solving that. With the "old" images uploaded you don't know who upload the images, that's why it was changed.
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][3.3][DEV] Image Upload

Post by 3Di »

dmzx wrote: Fri Apr 09, 2021 4:04 pm SNIP...
The new image name is user_id based with 2 random directories like :
/2/42b42e5/d8cd523/some_image.png

preg_replace is not solving that. With the "old" images uploaded you don't know who upload the images, that's why it was changed.
Fair enough.

On the other hand, when you're under development certain important decisions can be made and that's part of the game.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6673
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][3.3][DEV] Image Upload

Post by HiFiKabin »

Adding the / as described above allows the 'old' imaged to be displayed, which leads on to two questions:-

1) Is there any downside to me adding it manually at each new version?

2) Is there a better way to ensure that the 'old' images still display correctly?

There are 170 images uploaded by two members that this effects.
User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [3.2][3.3][DEV] Image Upload

Post by dmzx »

HiFiKabin wrote: Sat Apr 10, 2021 8:53 am 1) Is there any downside to me adding it manually at each new version?
If you move the images form the files folder all url links need to be updated.
HiFiKabin wrote: Sat Apr 10, 2021 8:53 am 2) Is there a better way to ensure that the 'old' images still display correctly?
See above
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6673
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][3.3][DEV] Image Upload

Post by HiFiKabin »

Editing the database has resolved the issue for me
needforspeed2022
Registered User
Posts: 8
Joined: Fri Oct 15, 2021 2:48 pm

Re: [3.2][3.3][DEV] Image Upload

Post by needforspeed2022 »

I have unpacked,renamed,made the dmzx folder and uploaded the imageupload folder to it! I't doesnt show up, in the acp! Is there more installation steps?
Tread
Registered User
Posts: 101
Joined: Thu Nov 14, 2019 9:52 pm

Re: [3.2][3.3][DEV] Image Upload

Post by Tread »

Use the ext uploader ext as its clear you dont know how to install an ext.
needforspeed2022
Registered User
Posts: 8
Joined: Fri Oct 15, 2021 2:48 pm

Re: [3.2][3.3][DEV] Image Upload

Post by needforspeed2022 »

Tread wrote: Fri Oct 29, 2021 9:54 pm Use the ext uploader ext as its clear you dont know how to install an ext.
i know how to install extensions! I have installed many of the ext. from the database, but some of them, wont show up in ACP
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26509
Joined: Fri Aug 29, 2008 9:49 am

Re: [3.2][3.3][DEV] Image Upload

Post by Mick »

Can you list the extensions that won’t show up in the ACP with download links and a screenshot of your ext folder in a new topic please?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
y42u03
Registered User
Posts: 8
Joined: Sun Jan 17, 2021 6:23 pm

Re: [3.2][3.3][DEV] Image Upload

Post by y42u03 »

First of all, pay tribute to your great work!

This extension has been working well on my forum.
However, recently some members hope to see more pictures (They think 20 is not enough) at once in UCP.

How can I modify it?
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28619
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [ABD] Image Upload

Post by Paul »

This topic has been marked as [ABD] - Abandoned as the extension author has not been active recently. If the extension author wishes to continue development, please PM anyone on the Extension Customisations Team to request this topic be unlocked.

Notice!
We do not recommend that a user of the phpBB software install this extension, or any other extension that is marked as "abandoned" or "in development", on a live forum. Doing so may cause your forum to not perform in the manner it should.


Thank you,
The phpBB Extension Customisations Team
Locked

Return to “Abandoned Extensions”