Upload Module (File and Image Attachment)

Register an Account
Reply
 
Thread Tools
Upload Module (File and Image Attachment)
Developed by Yankidank Yankidank is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page
Designed for: Gold 1.0.0
License: Creative Commons Attribution-Noncommercial-Share
Released: 03-20-2009
Last Update: 03-26-2009
Installs: 111
Supported by Author
Makes Database Changes
Uses Module System
Template Edits Not Required
Includes Files to Upload
Translations Accepted
This module allows you to attach a file or image to a Pligg article. There are a lot of settings to configure it from the Admin panel to allow you to do pretty much anything with it. This module comes with Pligg versions 1.0 RC3 and above.
An early Beta version of the module was included with 1.0 RC2, but we suggest that users uninstall it and start from scratch with the version provided with RC3 to prevent any bugs from appearing.

Support
This module was developed by the Pligg team and is being released for free, but we do ask that if you use this module please consider donating a small amount ($10-20) to help us recuperate our losses for the amount of time involved in developing this module. This is probably the most advanced module designed for Pligg yet and we designed it so that it could be used in a broad array of sites. Because we had to design it with so many uses in mind it took us a very long time to get it just right. If you plan on using this module for commercial use (generating income greater than $30/month from the site), we require that you submit a donation of at least $10.

Technical support will be provided for BUGS that are recognized as valid and applicable to a large number of sites. We cannot support requests for features unless you are willing to pay for the extra features to be developed and to allow the feature to be contributed back to the community.

Features:
  • Upload image to your website
  • Grab an image from another site
  • Generate multiple thumbnails for attached images
  • Attach files to articles.
  • Select what file types you want to allow from the upload settings page. (Ex: zip jpg psd )
  • Add additional fields for each uploaded file. Use it require a name, description, author, etc. for each file.
  • Automatically embed image thumbnails into posts. Just tell it what template hook to use from the upload settings page.
  • Automatically embed an attached image list. Like above, just tell it what template hook to use to place the list.
  • Easily add HTML before and after the thumbnails or attached files list. Use these settings fields in the upload settings page to add the needed HTML to apply javascript effects to your images, or customize how the images and file list look.
  • Use template tags to embed the uploaded images into your template.
Example:
Below is a screenshot of the upload module as seen at the top of Submit Step 2.


Below is a screenshot of what happens after I have attached an image and clicked the Upload button:


Upload Module Tags
If you want to manually control where images are inserted into story content you will want to use the image tags provided next to the example thumbnail(s) during the upload process in submit step 2. Example tags might be:
  • {image1}
  • {image1_100x100}
  • {image2}
  • {image2_250x250}
The numbers in those examples are from the sizes setup from the Upload module settings page. After you upload an image it should show a thumbnail and display one of these tags next to it for you to use if you want to embed it in the article.

Upload Module Template Tags
This module will insert thumbnails automatically into your template by using template hooks. This was designed so that you wouldn't need to edit your template files manually in order to start using the module. If you want to customize where the images are individually displaying in the template, for example show the first image at the top of the post and show the second uploaded image at the bottom, you should follow the usage examples below.

To insert the first attached image at it's original file size you will insert the code {$image1} into link_summary.tpl where you want it to display. The second uploaded image would be {$image2} and so on.

From the upload settings page I have created a thumbnail size of 500x500 pixels. This allows an uploaded image to have a maximum length of 500 pixels when being resized. So if you upload a 1000x500 pixel image it would be shrunk proportionately to 500x250 pixels. To embed that 500x250 pixel image into my template I would add the code {$image1_500x500} into link_summary.tpl to display the first uploaded file for a post at it's 500x500 pixel thumbnail size. {$image2_500x500} would display the second 500x500 attached file. In the case that no image is attached nothing extra will be inserted into your template.

Examples

Please see the attached image for a screenshot of the Upload module settings page and examples of what the upload process looks like for the submit step 2 page.

Download Now

File Type: zip upload-module-v1.1.zip (23.2 KB, 2680 views)

Screenshots

File Type: jpg upload-settings.jpg (381.1 KB, 1642 views)
File Type: png uploaded.png (23.1 KB, 8156 views)
File Type: png upload-1.png (5.3 KB, 7966 views)

License Agreement

Creative Commons Attribution-Noncommercial-Share Alike License
You are free to Share and Remix this work under the following conditions: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
You may not use this work for commercial purposes.
If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Supporters / CoAuthors

Show Your Support

  • If you like this download support the author by donating.
  • This download may not be copied, reproduced or published elsewhere without author's permission.

Similar Downloads
Download Developer Category Replies Last Post

Comments
  #62 (permalink)  
Old 06-18-2009, 02:23 PM
New Pligger
 
Join Date: Jun 2009
Posts: 5
Here's what I have in my php.ini... should I be looking for something else?

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 50M
Reply With Quote
  #63 (permalink)  
Old 06-21-2009, 10:49 AM
New Pligger
Pligg Version: 1.0
 
Join Date: Jun 2009
Posts: 4
I was wondering if someone can help me ad a modal box to thumbnails so a thickbox or something pops up with the full size image. Descriptive instructions would be appreciated since I am new.
Reply With Quote
  #64 (permalink)  
Old 06-21-2009, 03:10 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Quote:
Originally Posted by aguillen View Post
I was wondering if someone can help me ad a modal box to thumbnails so a thickbox or something pops up with the full size image. Descriptive instructions would be appreciated since I am new.
Check out the Upload Settings page in the admin panel. If you put the javascript references in your template you can customize the HTML code placed before and after thumbnails from the Upload Settings area to enable the Thickbox popup. Look at the first screenshot attached to this thread for an example.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #65 (permalink)  
Old 06-21-2009, 09:28 PM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Jan 2009
Posts: 3
Send a message via ICQ to Evgolas
Hello, can i add image to comments, using this module?
Reply With Quote
  #66 (permalink)  
Old 06-21-2009, 10:29 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Quote:
Originally Posted by Evgolas View Post
Hello, can i add image to comments, using this module?
No the module is designed only to allow users to add images to the main article, not comments.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #67 (permalink)  
Old 06-22-2009, 04:52 AM
New Pligger
 
Join Date: Jun 2009
Posts: 7
Quote:
Originally Posted by dostalf View Post
Hi, I have two problems with this module:

a) The thumbnails are not embedded when I select the proper hook.

b) Attempting to embed thumbnails manually by adding {$image1} to link_summary.tpl does work but the thumbnail is shown only for the first story in the list (and when the full story is displayed).

Does anyone know how to fix this? Thanks!
Yeah, I have the same problem. I want a diglike image in between the vote box and story summary, but I can't seem to make it work. Did anyone find a solution for this?

You can check my test pligg site here:
http://www.mistertailor.biz/quedukiffe/index.php

Only the Google - great story has an image attached.

Thanks for any help.

Regards,
Denis
Reply With Quote
  #68 (permalink)  
Old 06-22-2009, 02:52 PM
New Pligger
 
Join Date: Jun 2009
Posts: 7
I need some quick tip.

When the photo loads, it doesn't show a thumbnail. Also in the story summary, the image doesn't appear.

Any help would be greatly appreciated.

Thanks
Reply With Quote
  #69 (permalink)  
Old 06-22-2009, 06:18 PM
New Pligger
Pligg Version: 1.0
 
Join Date: Jun 2009
Posts: 4
I still cannot get this to work. Do I have to upload more files?


Quote:
Originally Posted by Yankidank View Post
Check out the Upload Settings page in the admin panel. If you put the javascript references in your template you can customize the HTML code placed before and after thumbnails from the Upload Settings area to enable the Thickbox popup. Look at the first screenshot attached to this thread for an example.
Reply With Quote
  #70 (permalink)  
Old 06-22-2009, 08:03 PM
New Pligger
Pligg Version: 1.0
 
Join Date: Jun 2009
Posts: 4
Modal box problem solved. I tried all jquery, prototype, mootools modal boxes to work with the upload, but could not get any of them to work. The only ones that would work was Lytebox http://www.dolem.com/lytebox/. Does anyone know how to incorporate the title of the article into the lytebox modal box title? Thanks!
Reply With Quote
  #71 (permalink)  
Old 06-23-2009, 04:30 PM
Pligg Donor
Pligg Version: 1.0.1
 
Join Date: Nov 2008
Posts: 136
How to modify the module ?
What to delete to allow "Grab an image from another site" only and not "Upload image to my website"?
Reply With Quote
Reply

Tags
last image, upload

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
[MOD] Image Upload Module (v1.0) -- Now Available cent Questions and Comments 190 01-08-2011 05:12 PM
Upload module 1.1 - Error uploading file Citizenslide Questions and Comments 8 10-03-2009 09:18 PM
[MOD] Image Upload Module (v0.93) -- Please test cent Questions and Comments 54 05-01-2009 11:12 PM
Image Upload 0.4 Module ziadchatila Questions and Comments 3 08-05-2008 05:40 PM
[MOD] File Upload Module -- seeking requests for features cent Questions and Comments 2 08-11-2007 05:39 AM


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