3.2 & 3.3 Extensions Database 3.2 / 3.3Image Upload

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Image Upload

Post by dmzx »

Extension Name: Image Upload
Author: dmzx & martin

Extension Description:
This extension will add an upload system for images to your forum.
This will allow you to host your own images from your server rather than use a 3rd party.
Allowed extensions can be set in ACP.
Set permission for groups, default only admin group can upload images.



Before you update backup you files folder in the extension folder!

Image


- Fixed switch's for mchat pop up or open tab.


- Fixed options mchat button.
- Moved js.


- Added code for popup and extra options in ACP.


- Code update UCP delete images.


- Code update.


- Code update to path_helper.
- Style redo for mobile by martin.


- Changed pagination on index/ucp/posting pages.
- Style update CSS and html.


- Added multiple upload section.
- Added permission for multiupload.
- Added sweetalert2 js for images.
- limit php.ini value in ACP.
- Various code changes.


- Added ACP switches for global on/off index and posting images.
- Added permission to view tab in UCP.
- Changed layout of title and delete/insert images.
- Added pagination for images.
- Various code updates.


- Fix deleting images on lower php version.


- Changed HSIMG to URL-IMG link.
- Added ACP options for link display.
- Deleted code for 3.1 uploading files.

Best settings for lightbox users.
image.png

- Rename "files" dir to "img-files" thanks to g0lang.
- Code update for 3.3.x
- Changed code for ACP for deleting images.
Note: Keep in mind if you update the old images still will be in files folder, so url to those images will point to files folder. just leave the files folder so they wont break. I did empty the db image_upload table so no broken images are shown in UCP and ACP. And it will start again when uploading files. This is only when you have already installed this extension



- Drop support 3.1.x
- Added allowed extensions for images in ACP.
- Moved functions to core/functions.
- Changed code for allowed extensions in controller.
- Changed code for Collapsible Categories 2.


Changed code for deleting image


Added scroll bar in UCP if large amount of images are uploaded.
Code update.


Added option to delete images from UCP. (See permissions default only Admin group can delete images)
Added button in posting topic for IMG direct in post.
Changed code for close conflict with boardannounce .
Changed html to twig.
Code update.

Image
Image


Added new copy function
Added code for members to see own uploaded images. On posting page and Index page.
Added UPC setting for uploaded images on index to show for member.
Added direct insert to mchat on index. (if mchat is installed)

Image
Image
Image
Image
Image


Added multiple delete in ACP
Added sorting


Added allowed extensions

Image




Note: You need to disable and delete data for this version. If you already use images make a backup from Files folder and place them back after update.
Added md5 for file names.
Added ACP option to see / delete images.
Added a button on the posting page that open a nice popup.
Added size and width/height to show on upload.
Code update.

Screenshots:
Image

Image

Image

Image

Extension Download:
Download-link
Image Upload v2.0.0
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `imageupload`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `imageupload` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/imageupload/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Image Upload` under the Disabled Extensions list, and click its `Enable` link.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Hippie459MN
Donator
Donator
Posts: 69
Joined: 16 Aug 2015, 08:37
    Windows 7 Firefox

Re: Image Upload

Post by Hippie459MN »

NICE! Going to check this out. Maybe be better than my goofy solution I got going on. lol
"I went outside once. The graphics sucked but the game play was ok."

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: Image Upload

Post by Puchahawa »

Hey DM, I've been playing with this a bit and decided to move the link to Posting_editor_message_after so it would be right there where folks would be making their post. My question is how can I make it so the link opens in a new tab. I figure if someone is posting and chooses to add an image that they wouldn't want to loose what they are posting to do so. Opening the upload in a separate tab would allow them to deal with the image and keep their post info as is. :smile:

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Android Chrome

Re: Image Upload

Post by dmzx »

Yes can be target blank.
Will post it when home or martin will do :wink:

[ Post made via Samsung Galaxy S4 ] Image

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Image Upload

Post by dmzx »

Puchahawa wrote: 31 Jan 2017, 04:34 Hey DM, I've been playing with this a bit and decided to move the link to Posting_editor_message_after so it would be right there where folks would be making their post. My question is how can I make it so the link opens in a new tab. I figure if someone is posting and chooses to add an image that they wouldn't want to loose what they are posting to do so. Opening the upload in a separate tab would allow them to deal with the image and keep their post info as is. :smile:
Add target="_blank" to the link to open in new window.

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: Image Upload

Post by Puchahawa »

Would that be in the Posting_editor_message_after event file? If so does it matter where I put that?

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Image Upload

Post by martin »

Yes it does wait a few mins and il remove my mchat image uploader and give you the code you want new window or popup ? see my mchat for popup and navbar for new tab.
Image

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: Image Upload

Post by Puchahawa »

Thanks Martin! :tumbsyes: Thinking new tab.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Image Upload

Post by martin »

Try here first before i have to change code pls just hit the image upload http://www.martins.homelinux.net/forum/ ... e=post&f=5

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: Image Upload

Post by Puchahawa »

Pop up looks like it would work well also for keeping the person on the post page while adding an image.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Image Upload

Post by martin »

Cool beans i now have it built into the ext :tumbsyes: just need to test it

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Image Upload

Post by martin »

First post updated.

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: Image Upload

Post by Puchahawa »

Testing the version you just uploaded with the pop up window on a 3.2.0 board Martin. The submit button for the image doesn't seem to do anything. :yikes: :eyes2:

pop up comes up ok. Choose the file ok. click the submit button and nada. file is only 125kb so that shouldn't be an issue.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Image Upload

Post by martin »

Purge the boards cache it's working as if on the index page only difference is the code is also in an event.
2.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: Image Upload

Post by Puchahawa »

:wtf: :wtf: No go. Tried clearing board cache and chromes cache nothing. disabled ext and deleted data then re-enabled and same thing. The button is there but it acts like it's "not hooked up". click the button and nothing. running 3.2.0 board. and php 55.12 on wampserver.

Post Reply Previous topicNext topic