Page 1 of 5

[ABD] Upload Image

Posted: Tue Oct 28, 2014 8:09 am
by John P
Description: Upload Images enables you to upload images in your images folder of your board. The ui folder is used for the images and is created automatically when enabling this extension. Copy imagepath simply by clicking and use it wherever you want to show your image.

Requirements:
  • phpBB 3.1-dev or higher
  • PHP 5.3.3 or higher
Repository: https://github.com/ForumHulp/uploadimage
Installation:
  • Copy the entire contents of the repository to ext/forumhulp/uploadimage/
  • Navigate in ACP to Customize -> Extension Management -> Extensions.
  • Click Enable.
Picture:
uploadimage.jpg
uploadimage.jpg (64.31 KiB) Viewed 6298 times

Re: [DEV] Upload Image

Posted: Tue Oct 28, 2014 10:24 am
by Mess
Nice extension, great util.


And congratz on the new title. Well deserved. :)

Re: [DEV] Upload Image

Posted: Tue Oct 28, 2014 3:49 pm
by leschek
When I try to open extension (in ACP) I get this error:

Code: Select all

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(./../images/ui/): failed to open dir: Permission denied' in /xxx/yyy/zzz/forum1_phpBB31/ext/forumhulp/uploadimage/controller/admin_controller.php:157 Stack trace: #0 /xxx/yyy/zzz/forum1_phpBB31/ext/forumhulp/uploadimage/controller/admin_controller.php(157): RecursiveDirectoryIterator->__construct('./../images/ui/', 12288) #1 /xxx/yyy/zzz/forum1_phpBB31/ext/forumhulp/uploadimage/acp/uploadimage_module.php(75): forumhulp\uploadimage\controller\admin_controller->display_images() #2 /xxx/yyy/zzz/forum1_phpBB31/includes/functions_module.php(674): forumhulp\uploadimage\acp\uploadimage_module->main('\\forumhulp\\uplo...', 'main') #3 /xxx/yyy/zzz/forum1_phpBB31/adm/index.php(81): p_master->load_active() #4 {main} thrown in /xxx/yyy/zzz/forum1_phpBB31/ext/forumhulp/uploadimage/controller/admin_controller.php on line 157

Re: [DEV] Upload Image

Posted: Tue Oct 28, 2014 8:23 pm
by moviehive
When I go to access the page in the admin I get a blank page.

Re: [DEV] Upload Image

Posted: Tue Oct 28, 2014 8:41 pm
by John P
@ leschek, that's a permission problem on your webserver, try chmod the folder. I updated the controller file to 755.

@moviehive, do you have more info for me, maybe set debig on or see your logiles

Re: [DEV] Upload Image

Posted: Tue Oct 28, 2014 8:49 pm
by leschek
Thank you for reply.
For some reason I'm not able to change the CHMOD of ui folder. Firefox wrote:

Code: Select all

550 Could not change perms on ui: Permission denied
Strange, I don't have problem to change permissions of other files/folders.

Re: [DEV] Upload Image

Posted: Tue Oct 28, 2014 9:01 pm
by moviehive
Fixed. It was a permissions error with the UL folder.

It was set to 000

Re: [DEV] Upload Image

Posted: Tue Oct 28, 2014 9:13 pm
by leschek
leschek wrote:or some reason I'm not able to change the CHMOD of ui folder.
OK. I fixed it. I had to change permission via cPanel.

Re: [DEV] Upload Image

Posted: Thu Oct 30, 2014 3:35 pm
by Holger
Is this uploader available for all users or only for the admin via ACP?

Re: [DEV] Upload Image

Posted: Thu Oct 30, 2014 6:10 pm
by Mauron
It's an ACP add-on; users can upload images as attachments already.

Re: [DEV] Upload Image

Posted: Fri Oct 31, 2014 2:58 pm
by Tecwar
The images are not loaded in the acp.

want to preview from the path http://localhost/images/ui/test.jpg download,

but the path is http://localhost/phpbb3/images/ui/test.jpg

Re: [DEV] Upload Image

Posted: Fri Oct 31, 2014 9:56 pm
by John P
It should now work with a relative path.

Re: [DEV] Upload Image

Posted: Mon Nov 03, 2014 7:22 pm
by BianCionaa

Re: [DEV] Upload Image

Posted: Mon Nov 03, 2014 8:08 pm
by John P
Thanks I will add it to the extension

Re: [DEV] Upload Image

Posted: Sat Nov 29, 2014 12:59 pm
by Anonymous_et_EE
Estonian translation available (11/29/2014).

PR send it.