Adding preview image upload...

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-01-2006, 02:28 PM
New Pligger
 
Join Date: Sep 2006
Posts: 12
I'm not sure that this is the appropriate forum, but it didn't really seem to fit in the modd forum since I'm asking for help.

The hover image preview doesn't really work for me, because if you link to various pages/galleries on the same site, it only shows a cached copy of the homepage. What I would like to add would be an option for users to upload an image, then automatically resize that image to a set thumbnail size, and display that with the link.

How hard would this be to add/integrate? Is there anyone out there that would code it for a fee?

Thanks, in advance, for helping a noob out!
(I'm using Pligg 8.2.0 with the default mollio theme)
Reply With Quote
  #2 (permalink)  
Old 11-02-2006, 01:58 AM
New Pligger
 
Join Date: Sep 2006
Posts: 12
Is there possibly a better forum to post this in? Or could anyone point me in the direction of a pligg coder for hire?
Reply With Quote
  #3 (permalink)  
Old 11-02-2006, 04:59 AM
Casual Pligger
 
Join Date: Aug 2006
Posts: 98
I would love to learn how to do this as well
Reply With Quote
  #4 (permalink)  
Old 11-02-2006, 08:31 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,181
In submit step 2 .tpl

you put in a <input type="file name="image"...>

so this would allow you to upload the image.

and in sumbit_step_3.tpl you can put the code that checks if there is a image, moves it to a /preview directory and creates a thumbnail and stores the name of the file somewhere.

have a look at profile.php to see how it handles uploaded images and making thumbnails

On a similar project i just created filenames md5(randomseed) so i would get random names, but i also checked if the name existed.

good luck with the project.
Reply With Quote
  #5 (permalink)  
Old 11-02-2006, 01:46 PM
New Pligger
 
Join Date: Sep 2006
Posts: 12
Savant, thank you so much for your response and contribution. I am going to give it a go, and I will respond with my results.
Reply With Quote
  #6 (permalink)  
Old 11-10-2006, 04:00 AM
New Pligger
 
Join Date: Aug 2006
Posts: 1
are there any code examples that we can use?
thanks
Reply With Quote
  #7 (permalink)  
Old 11-14-2006, 08:50 PM
New Pligger
 
Join Date: Nov 2006
Posts: 9
I don't know php (I can cut & paste, but coding is another story). Does anyone have more specific suggestions of how to do this?

Thanks for your help, Joe
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 268 02-03-2012 12:19 PM
Image Upload -> Link Image to Story MikeF Questions and Comments 9 04-11-2011 07:30 PM
image upload using url? theman1 Questions and Comments 5 03-23-2009 12:34 AM
Image Upload Module -- Call for feature requests cent Questions and Comments 12 11-15-2008 01:13 PM
Image Upload / Image display with stories mod - Will pay for dev and share adampoots Questions and Comments 8 04-10-2007 08:22 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