[MOD] Image Upload Module (v0.93) -- Please test

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 09:47 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Hi All,

Been extremely busy working on projects, but I invite members of the Pligg community to try v0.93 of the Image Upload module. While this module has been tested on Pligg 9.1 and Pligg 9.6 installations, it is advised to test this module on a development installation first before deploying in a production environment. The only difference between this version and the 1.0 release is that its been tested with a small handful of Pliggers. Please post problems, questions, thanks, etc. here and I can try to help resolved any issues.

With that being said...

Before attempting to use, please make note of your module settings as some default settings may have been changed.

Added:
- Caption support (uses Story title or simply "Photo")
- Added ability to delete image or upload new (during Edit Entry)
- Added support for maximum filesize and image dimensions (max size to be processed by the module).
- Added Error Message support which catches most image upload problems
- Updated Debug Output so that this can be enabled but only visible to Admin users. Allows you to check module functions which the site is publicly accessible.
- Added more configuration options
- Added more comments within the code for those who want to tinker with it or customize it more for their needs.


Notes:
- Tested with Pligg 9.x up to 9.6.

- There have been a number of changes from v0.4 to 0.93. Please check the readme file for instructions if you're upgrading from a previous version.

- PHP processes images within its memory allocation. A PHP installation which is allocated 12MB of RAM for processes (check using phpinfo.php or PHP.ini file for memory limit) can handle a 1200x1200 2MB file (under most conditions). It may be necessary to increase this memory limit to 24 or 32MB to handle images as big as 2400 pixels. This is not a limit of the module, but how PHP handles memory management for scripts. If you're memory limit is 12MB, you should set the "module_imageupload_upload_maxwidth" and "module_imageupload_upload_maxheight" to no more than 1200 each. You should also set the "module_imageupload_upload_maxsize" to no more than 2 (MB).

Best,
Cent
Attached Files
File Type: zip image_upload.zip (17.7 KB, 278 views)
Reply With Quote
  #2 (permalink)  
Old 06-13-2007, 10:43 PM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 277
ill let you know how it works.

thanks cent - your contributions are extremely appreciated!
Reply With Quote
  #3 (permalink)  
Old 06-13-2007, 11:09 PM
Constant Pligger
 
Join Date: Oct 2006
Posts: 220
Big thanks Cent.

This is a crucial module for Pligg.
Reply With Quote
  #4 (permalink)  
Old 06-14-2007, 03:55 PM
New Pligger
 
Join Date: Nov 2006
Posts: 15
Doesn't look like, on the preview page, that it is adding the image extension?

image_upload_preview_handler
Story ID = 81
Image Path = /home/joejoe/public_html/technews/images/img_81
Image Caption = test this biatch
Image File = img_81
No image found to display.
END: image_upload_preview_handler



Image is in the images folder....
Reply With Quote
  #5 (permalink)  
Old 06-14-2007, 04:23 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Is this module able to process external URLs of images, i.e. show that photos ?
Reply With Quote
  #6 (permalink)  
Old 06-14-2007, 04:30 PM
New Pligger
 
Join Date: Nov 2006
Posts: 15
Sorry about that, I didn't set permissions of my "images" folder.

This module works great, thank you so much
Reply With Quote
  #7 (permalink)  
Old 06-14-2007, 04:30 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
tbones,

no. it only handles image uploaded from a computer. a future version should support it.

best,
Cent

Quote:
Originally Posted by tbones View Post
Is this module able to process external URLs of images, i.e. show that photos ?
Reply With Quote
  #8 (permalink)  
Old 06-14-2007, 04:33 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
fordp,

was the original image a JPG that you uploaded or a GIF, PNG or WBMP? in your images folder, there is an img_81.jpg file? this will help narrow down what might have caused the problem.

Best,
Cent

Quote:
Originally Posted by fordp View Post
Doesn't look like, on the preview page, that it is adding the image extension?

image_upload_preview_handler
Story ID = 81
Image Path = /home/joejoe/public_html/technews/images/img_81
Image Caption = test this biatch
Image File = img_81
No image found to display.
END: image_upload_preview_handler



Image is in the images folder....
Reply With Quote
  #9 (permalink)  
Old 06-14-2007, 08:20 PM
New Pligger
 
Join Date: Apr 2007
Posts: 11
Hmm. i seem to be having a lot of issues getting this one to work. I've even uninstalled pligg and started from scratch following the directions in the readme packed with the 0.93 download.

Could someone perhaps send me the edited, .tpl files?
Reply With Quote
  #10 (permalink)  
Old 06-14-2007, 08:21 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 46
I think I'm having the "no extension" problem. The image uploads to the image directory, but in the database, there is no .jpg extension, and the image does not appear in the post. The original image uploaded was also .jpg. Images I uploaded using the version .4 did include the .jpg extension and do appear in the post.

http://pandorastations.com/story.php..._Electronica-1

vs.

http://pandorastations.com/story.php..._AMBIENT_RADIO

Last edited by timofsuburbia; 06-14-2007 at 08:24 PM. Reason: clarity
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 157 03-13-2010 11:31 AM
Simple question: Has anyone got the image upload module to work? Citizenslide Questions and Comments 7 07-30-2009 01:44 AM
[MOD] Image Upload Module (v1.0) -- Now Available cent Questions and Comments 184 06-27-2009 01:50 AM
Image Upload Module - Really confused thefandango Questions and Comments 3 01-05-2009 11:01 AM
Image Upload Module -- Call for feature requests cent Questions and Comments 12 11-15-2008 12:13 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development