Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 08:47 PM
cent's Avatar
cent cent is offline
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Downloads: 20
Uploads: 5
Thanks: 24
Thanked 65 Times in 26 Posts
[MOD] Image Upload Module (v0.93) -- Please test

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, 154 views - Who Downloaded?)
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
The Following 7 Users Say Thank You to cent For This Useful Post:
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 06-13-2007, 09:43 PM
P1mpPanther's Avatar
P1mpPanther P1mpPanther is offline
Constant Pligger
 
Join Date: Feb 2007
Posts: 293
Downloads: 20
Uploads: 0
Thanks: 47
Thanked 10 Times in 9 Posts
ill let you know how it works.

thanks cent - your contributions are extremely appreciated!
__________________
RunStream :: RSS feed creator | RSS Marketing Platform | TagBlast!

...and a Pligg site on deck!
Reply With Quote
  #3 (permalink)  
Old 06-13-2007, 10:09 PM
revolver revolver is offline
Constant Pligger
 
Join Date: Oct 2006
Posts: 232
Downloads: 5
Uploads: 0
Thanks: 56
Thanked 22 Times in 18 Posts
Big thanks Cent.

This is a crucial module for Pligg.
Reply With Quote
  #4 (permalink)  
Old 06-14-2007, 02:55 PM
fordp fordp is offline
New Pligger
 
Join Date: Nov 2006
Posts: 15
Downloads: 5
Uploads: 0
Thanks: 1
Thanked 1 Time in 1 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
  #5 (permalink)  
Old 06-14-2007, 03:23 PM
tbones tbones is offline
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,073
Downloads: 26
Uploads: 0
Thanks: 53
Thanked 25 Times in 23 Posts
Is this module able to process external URLs of images, i.e. show that photos ?
Reply With Quote
  #6 (permalink)  
Old 06-14-2007, 03:30 PM
fordp fordp is offline
New Pligger
 
Join Date: Nov 2006
Posts: 15
Downloads: 5
Uploads: 0
Thanks: 1
Thanked 1 Time in 1 Post
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, 03:30 PM
cent's Avatar
cent cent is offline
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Downloads: 20
Uploads: 5
Thanks: 24
Thanked 65 Times in 26 Posts
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 ?
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #8 (permalink)  
Old 06-14-2007, 03:33 PM
cent's Avatar
cent cent is offline
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Downloads: 20
Uploads: 5
Thanks: 24
Thanked 65 Times in 26 Posts
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....
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #9 (permalink)  
Old 06-14-2007, 04:18 PM
abcdefgary abcdefgary is offline
Constant Pligger
 
Join Date: Feb 2007
Posts: 236
Downloads: 5
Uploads: 0
Thanks: 20
Thanked 29 Times in 15 Posts
Quote:
Originally Posted by cent View Post
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
he fixed it, I think. just forgot to set permissions to the image folder.
Reply With Quote
  #10 (permalink)  
Old 06-14-2007, 07:20 PM
adampoots adampoots is offline
New Pligger
 
Join Date: Apr 2007
Posts: 14
Downloads: 10
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
0.93... cant get it to work

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
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
[MOD] Image Upload (v.1) cent Pligg Mods 144 05-30-2008 07:14 PM
Image Upload Module v0.4 Error Message tbones Pligg Mods 5 02-11-2008 12:27 PM
Image Upload Module -- Call for feature requests cent Pligg Mods 7 12-01-2007 09:16 AM
Image Upload Module: After admin edit not2serious Pligg Mods 9 05-31-2007 07:05 PM
Latest SVN - Image Upload v0.4 broken? aaronpais General Help 3 05-22-2007 02:19 PM


LinkBacks Enabled by vBSEO 3.0.0