[MOD] Image Upload (v.1)

Register an Account
Reply
 
Thread Tools Display Modes
  #41 (permalink)  
Old 04-12-2007, 12:42 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Geoserv,

Try downloading the latest version of the Thickbox module at http://forums.pligg.com/downloads.php?do=file&id=34. That should fix the thickbox problem. Actually, if you click the thumbnail, the full size version is at the bottom of the page (scroll down). The newer version should fix that.

Looking into the image conversion problem.

Best,
Cent
Reply With Quote
  #42 (permalink)  
Old 04-12-2007, 02:40 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Works like a charm now when I click to enlarge the photo.

Thanks alot.

Geoserv
Reply With Quote
  #43 (permalink)  
Old 04-12-2007, 02:44 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
I am still getting this error when trying to upload a gif:

Quote:
Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/newsdots/public_html/modules/image_upload/plugins/class.imageconverter.inc.php on line 83

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/newsdots/public_html/images/img_843.jpg' is not a valid JPEG file in /home/newsdots/public_html/modules/image_upload/plugins/class.imageconverter.inc.php on line 83

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/newsdots/public_html/modules/image_upload/plugins/class.imageconverter.inc.php on line 152
Geoserv
Reply With Quote
  #44 (permalink)  
Old 04-12-2007, 03:27 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Ok, here is a working example from my pligg site.

http://www.newsdots.com/story.php?ti...y-USA--Great-2

Just click on the pic.

Geoserv
Reply With Quote
  #45 (permalink)  
Old 04-12-2007, 03:55 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
I've uploaded version 0.4 which fixed the image conversion routines and some other minor problems.
Reply With Quote
  #46 (permalink)  
Old 04-12-2007, 03:57 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
works like a charm - if kb can add it into the SVN modules section and make some fixes - this would be a great module to have. Good work Cent.
Reply With Quote
  #47 (permalink)  
Old 04-12-2007, 04:17 PM
New Pligger
 
Join Date: Jan 2007
Posts: 20
You did a nice job here, I like it so much, but I still have a question:

What if I need to have the text around the image? how would I do that?

same way as some CMS like joomla..or word presse?


Thank again.
Reply With Quote
  #48 (permalink)  
Old 04-12-2007, 05:02 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Hi Dollars5,

I still need to write the function if the admin edits the story to maintain the original image and also an image delete option for the admin. Once that's done the basic functionality should be done.

Best,
Cent

Quote:
Originally Posted by dollars5 View Post
works like a charm - if kb can add it into the SVN modules section and make some fixes - this would be a great module to have. Good work Cent.
Reply With Quote
  #49 (permalink)  
Old 04-12-2007, 05:10 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Hi Koumassi,

Thanks.

In the image_upload_settings.php file, you can do a few things:

Add IMG tag level css to the module_imageupload_preview_post tag. This can include things like align="right", etc.

Also, the entire IMG tag is surrounded by a CSS pre and post tag by using a DIV. Take a look at module_imageupload_img_css_pre. You can add a float: right in there to float the DIV to the right of text.

However, it also depends on where in your link_summary.tpl file you place the:

PHP Code:
{php}{check_actions('image_upload_preview');}{/php
Module action. If you place it before the submission title and float it, you can position the thumbnail to the top right of the entry submission box. Wherever that action is placed, the thumbnail will appear (based on the CSS you indicate).

Since everyone's layout may be different, I left it pretty generic.

Best,
Cent

Quote:
Originally Posted by Koumassi View Post
You did a nice job here, I like it so much, but I still have a question:

What if I need to have the text around the image? how would I do that?

same way as some CMS like joomla..or word presse?


Thank again.
Reply With Quote
  #50 (permalink)  
Old 04-12-2007, 06:06 PM
New Pligger
 
Join Date: Jan 2007
Posts: 20
Big THANKS......................
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
[MOD] Image Upload Module (v1.0) -- Now Available cent Questions and Comments 190 01-08-2011 05:12 PM
[MOD] Image Upload Module (v0.93) -- Please test cent Questions and Comments 54 05-01-2009 11:12 PM
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