Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2007, 11:05 AM
New Pligger
 
Join Date: Apr 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Image Upload / Image display with stories mod - Will pay for dev and share

I have a concept that I am dying to put together. However, it is crucial that along with a story, users are able to either upload a photo or link to an existing image. I have poured over these boards for hours trying to piece together a viable solution.

Bryan Hunsinger has provided us with a potential solution to the upload request.
http://www.bryanhunsinger.com/articles/pligg/


http://www.trendn.com/shakeit.php?part=upcoming&order=1


I however, require more features then just this. The image needs to be cropped and adjusted to a thumbnail size. So all the images for the different story posts, end up being the same size in dimensions. As a designer, it drives me insane seeing the example above.

Here is an example of what my goal is. Clean, uniform sized images being displayed along side the story. A user would be able to either upload the image, or provide a link for it. And it would be rendered the same way for every post.



Now, a code base that has this function. Is the open source zenphoto, here is an example of their working demo gallery.

I dont want people commenting on images, i dont need a photo gallery or anything elaborate. Just the simple addition of users being able to :

1. Upload an image for the story post.
2. Link to an existing image online for the story post.

And for those images to be formatted and cropped to a specified size. The images don't even need to link to bigger versions of themselves, i don't need any thumbnailing. The images will link right to the source.

I have really fallen for pligg and I really need to see a solution to this asap. I am more then willing to pay a talented and willing developer to create this mod, and I would be happy to share the creation with the community.

Thank you all very much.
Reply With Quote
  #2 (permalink)  
Old 04-04-2007, 11:36 AM
Constant Pligger
 
Join Date: Feb 2007
Posts: 236
Thanks: 20
Thanked 29 Times in 15 Posts
Bryan Hunsinger's mod will let you do this. If you install and use PHPthumb, it will alllow you to automatically resize the picture.

however, I no longer plan on using his mod because what if users submit a picture with the same filename another user? it will only write over the existing picture.

so yeah. but if you don't care about the filename problem, you should use his mod in addition to phpthumb.
Reply With Quote
  #3 (permalink)  
Old 04-04-2007, 12:02 PM
New Pligger
 
Join Date: Apr 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
...looking into phpthumb now...

Any way to solve that duplicate image entry problem?
Reply With Quote
  #4 (permalink)  
Old 04-04-2007, 06:57 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 236
Thanks: 20
Thanked 29 Times in 15 Posts
i wish i knew, but i don't.
Reply With Quote
  #5 (permalink)  
Old 04-05-2007, 12:14 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
Hi All,

The easiest way to prevent filename collisions is to use uniqid(). This will give each filename, well, a unique name.

Best,
Cent
__________________
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
  #6 (permalink)  
Old 04-05-2007, 04:53 PM
New Pligger
 
Join Date: Apr 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
What Ive got so far.

Hey guys, I have been working with a novice programmer friend of mine. Between the two of us we managed to put this together so far:

http://www.adampootsvsatari.com/social_4/upcoming.php

I cant seem to get the vote system to work. Ive looked into some of the fixes here on the forum to no avail.

Using the zoom and crop function of phpthumb.

If i manage to complete everything that I want to with the site. I will be happy to package the directions to emulate it.
Reply With Quote
  #7 (permalink)  
Old 04-06-2007, 01:34 AM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
hi adampoots,

if you need help, let me know. Is this hard-coded or is a module? I've started writing a photo upload module that I would give back to the community. The idea is to show a thumbnail next to the entry which will be clickable initiating lightbox to show the fullsize image. Hopefully also including caption support as well.

It would then be rolled into a separate module to allow upload for an MP3 file, also using Lightbox to display a Flash player or include a flash player within the entry. This would probably use getid3 support to pull meta data from the MP3 if available.

In either case, if you're working on a module I'd like to help if I can. If its hard-coded, I'd still like to check it out.

Best,
Cent
__________________
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 User Says Thank You to cent For This Useful Post:
  #8 (permalink)  
Old 04-06-2007, 01:49 AM
New Pligger
 
Join Date: Feb 2007
Posts: 23
Thanks: 2
Thanked 0 Times in 0 Posts
adam, nice work so far, love the size of the images.
Reply With Quote
  #9 (permalink)  
Old 04-10-2007, 06:02 PM
New Pligger
 
Join Date: Apr 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, it looks REALLY good. Please let us know when you've got it ready!!!
Reply With Quote
  #10 (permalink)  
Old 04-10-2007, 07:06 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 236
Thanks: 20
Thanked 29 Times in 15 Posts
I believe that adam is using Bryan's photo upload mod in sync with PHPthumb. so if you want to use Bryan's mod, just install PHPthumb onto the website you plan on using.

so then the modification would look like in the template file:
phpthumb.php?src={link_field1}&w=200&h=200

or whatever you want the image size to be. so it's really easy.

but when I use bryan's mod, images seem to disappear after you change the category or whatnot, as some users have reported as well.

at cent:

could you please make a small write-up on how to incorporate a unique_id for those who don't know what this is (like me)?

thanks
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

BB 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
New Mod -- Display related stories revenazb Modification Tutorials 46 07-07-2007 01:19 AM


Search Engine Friendly URLs by vBSEO 3.2.0