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, 8157 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
  #132 (permalink)  
Old 12-15-2009, 12:13 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by demassifier View Post
Hi Yankidank,
I recently purchased the Media Master module for use with the Upload Module. Is there a way I can get the Media Master players to show up on the main Published or Upcoming summaries? Right now I can only see the media players when I click on the post. Chuckroast said it was an Upload Module issue and I'd need to take it up with you. Hope you can advise. Thanks!
demassifier, That is not correct.
You asked me about a glitch in the Upload Module you said you were having. I told you I did not design the upload module so I could not help.

Then you asked for free customization for the Media Master module. I explained to you that free customizations are not included when you buy a module.

Somehow you took both of my statements and mixed them together.
Reply With Quote
  #133 (permalink)  
Old 12-15-2009, 01:12 PM
New Pligger
Pligg Version: 1.0
 
Join Date: Dec 2009
Posts: 8
Quote:
Originally Posted by chuckroast View Post
demassifier, That is not correct.
You asked me about a glitch in the Upload Module you said you were having. I told you I did not design the upload module so I could not help.

Then you asked for free customization for the Media Master module. I explained to you that free customizations are not included when you buy a module.

Somehow you took both of my statements and mixed them together.
Sorry I misunderstood. What I need seems like it should work naturally with Pligg. I thought I just didn't have a preference selected correctly in the admin area and I thought Yankidank could point me in the right direction.
Reply With Quote
  #134 (permalink)  
Old 12-20-2009, 10:31 PM
New Pligger
Pligg Version: 1.0.0
Pligg Template: Whistle
 
Join Date: Nov 2007
Posts: 5
Thanks a lot.
Reply With Quote
  #135 (permalink)  
Old 12-23-2009, 01:01 AM
New Pligger
Pligg Version: 1.0.3
Pligg Template: wistie
 
Join Date: Dec 2009
Location: Phoenix, AZ
Posts: 7
Doesn't display thumbs with out of the box installation!

I have a brand spanking new install, module uploads the image (with bugs*), resizes, insert correct info into db, etc. but it won't display in the template. My settings are exactly as print screen in OP, so unless I'm missing something in the main pligg config for this to work, it's not.

It's like it's not recognizing the template hooks...

*upload bug: When uploading an image to a existing (or new) story, after I upload it shows all the thumbnails in the db, not just the one for this story.
Reply With Quote
  #136 (permalink)  
Old 12-23-2009, 01:45 AM
New Pligger
Pligg Version: 1.0.3
Pligg Template: wistie
 
Join Date: Dec 2009
Location: Phoenix, AZ
Posts: 7
Quote:
Originally Posted by sharkbyteusa View Post
Doesn't display thumbs with out of the box installation!

I have a brand spanking new install, module uploads the image (with bugs*), resizes, insert correct info into db, etc. but it won't display in the template. My settings are exactly as print screen in OP, so unless I'm missing something in the main pligg config for this to work, it's not.

It's like it's not recognizing the template hooks...

*upload bug: When uploading an image to a existing (or new) story, after I upload it shows all the thumbnails in the db, not just the one for this story.
I figured out what the problem was while troubleshooting the sql queries in upload_thumbs.tpl. During the mod installation it did not execute (cleanly?) the following code in upload_install.php:

Code:
// these are seperate because most people will have the tables already
        // created from a previous install
        $module_info['db_add_field'][]=array(table_prefix . 'files', 'file_fields', 'TEXT',  '', '', 0, '');
        $module_info['db_add_field'][]=array(table_prefix . 'files', 'file_hide_thumb', 'TINYINT',  1, "UNSIGNED", 0, '0');
        $module_info['db_add_field'][]=array(table_prefix . 'files', 'file_hide_file', 'TINYINT',  1, "UNSIGNED", 0, '0');
I ran the ALTER TABLE statements manually for the above code and now it is working. As I said this was a fresh install of pligg (and upload module) you may want to check the install routine.
Reply With Quote
  #137 (permalink)  
Old 12-28-2009, 06:01 PM
New Pligger
 
Join Date: Dec 2009
Posts: 1
Quote:
Originally Posted by ronwaste View Post
now i have a question... that dont stand in your first post...

i want to use jquery with a lightbox for my images... so i go to the templatepage and tried the following:

<a id="single_image" href="{$image1_580x800}">{$image1_50x50}</a> the problem is that i dont get only the file link... in this case the link ist <img src .... is there a way to get the link to the file without the img tag?
I too am interested in this. What is the template tag to get the img src?
Reply With Quote
  #138 (permalink)  
Old 01-10-2010, 07:30 AM
princevio's Avatar
Casual Pligger
Pligg Version: 1.0.2
Pligg Template: wistie
 
Join Date: Nov 2009
Posts: 76
Hi,
How can i use two different thumbnail size on summery and story detail page.

Link: CSSLeaf.com

Last edited by princevio; 01-10-2010 at 08:10 AM.
Reply With Quote
  #139 (permalink)  
Old 01-16-2010, 08:30 AM
New Pligger
Pligg Version: 1
 
Join Date: Jan 2010
Posts: 1
Hello sir when i installed this module everything is working fine just the Upload by URL method gives just the url you can check it out here at www.3hrill.com.
I tried to find answer myself and not bother you but its been few hours now.Thanks for being so active. I see your avatar everywhere.keep it up.
Reply With Quote
  #140 (permalink)  
Old 01-20-2010, 10:29 AM
Casual Pligger
 
Join Date: Nov 2009
Posts: 30
How can I get and display the image of a story, if I know its ID? I searched for this code but couldn't find it, did I miss something?
Reply With Quote
  #141 (permalink)  
Old 01-29-2010, 07:07 PM
New Pligger
 
Join Date: Nov 2009
Posts: 19
Can this module get images for url? Or the author need submit or put http://www.website.com/images/image.jpg ?
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