[MOD] Image Upload (v.1)

Register an Account
Reply
 
Thread Tools Display Modes
  #101 (permalink)  
Old 05-14-2007, 12:02 AM
Casual Pligger
 
Join Date: Oct 2006
Posts: 89
is thickbox needed for this mod, even though thumbs are not enabled. and i am using the latest mod of this and 9.5
Reply With Quote
  #102 (permalink)  
Old 05-14-2007, 12:05 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
it's not needed. It just adds a nice effect when viewing the images.
Reply With Quote
  #103 (permalink)  
Old 05-14-2007, 10:29 AM
Casual Pligger
 
Join Date: Oct 2006
Posts: 89
okay so i downloaded the latest version of this mod (v0.4), the other files had already been edited and i configured it but still nothing. and ive noticed that whenever i changed the extra field to 5 (which is the one im using), and try to submit a story, nothing shows up in the preview of submit step 3

i turned the debug thing to true and this is the only thing that shows up in submit step 3

Link ID........: 342
Image Name.....: testimage.jpg
Temp Filename..: /tmp/phpnYaJND
Dest File......: img_342.jpg
Dest Path......: /home/content/b/o/a/boarsource/html/videos/images/
Image Width....: 345
Image Height...: 500
Image Mime Type: image/jpeg


but im not getting a preview process or whatever

and here are my settings. my pligg site is located in a subdirectory called videos/

define('module_imageupload_imagedir', 'images/'); # Name of your images directory; include trailing slash; must be writeables
define('module_imageupload_gdversion', 1); # Your GD version installed
define('module_imageupload_jpg_quality', 80); # 1-100 (JPG Quality for resized images)
define('module_imageupload_use_thickbox', false); # Use Thickbox for fullsize overlay?
define('module_imageupload_use_thumb', false); # Show thumbnail in story (true) or fullsize (false)
define('module_imageupload_thumb_width', 100); # Maximum thumbnail width
define('module_imageupload_thumb_height', 100); # Maximum thumbnail height
define('module_imageupload_thumb_square', true); # True to show thumbnails as squares (assuming thumb W = H), false to
# scale thumbnail to fit within thumb WxH space
define('module_imageupload_thumb_prefix', 'th_'); # NOT USED -- FUTURE USE
define('module_imageupload_fullsize_prefix', 'img_'); # Fullsize image filename prefix
define('module_imageupload_fullsize_maxtoggle', 'w'); # Fullsize image max toggle;
# w (resize image if width is larger than fullsize width
# h (resize image if heighti s larger than fullsize height
define('module_imageupload_fullsize_width', 100); # Fullsize image width (maximum)
define('module_imageupload_fullsize_height', 100); # Fullsize image height (maximum)
define('module_imageupload_filename_field', 'link_field5'); # This should be link field you've enabled for photo uploads.


and i have a writable images/ folder in both the root of my site and the root of my pligg instalation. having tried just about everything, id really apreciate some help

Last edited by boardsource; 05-14-2007 at 11:04 AM.
Reply With Quote
  #104 (permalink)  
Old 05-14-2007, 01:21 PM
canadapc's Avatar
Casual Pligger
 
Join Date: Jul 2006
Location: Canada
Posts: 50
Hi Everyone,

Bit of an issue with this mod.

Fresh install of 9.5 and enabled this mod.

All is fine with thumbnails showing but the link to the full image is incorrect on the story page. The link to the full image is fine on the category page.

Example: http://www.topkix.com/

First story is about George Carlin. Thumb shows fine. Click for full image works fine.

Go to http://www.topkix.com/Entertainment/...Carlin_Quotes/

Thumb shows fine but URL to full size image is incorrect.

I am using friendly URLS and URL method 2 with .htaccess.

If anyone knows how to get this working on the story details page I would appreciate it. I am willing to hardcode the images directory URL if necessary.

Thanks again.

Haven't been around in a while.
Pligg has come a long way since I was last here.
The programmers have done a great job.

Randy
Reply With Quote
  #105 (permalink)  
Old 05-14-2007, 05:58 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
Cent, at the moment you use 1 extra field. How many total extra fields do you plan to use for the Image module, mp3 module, video module. Would it be 1 extra field per module?

Asking now because I'm trying to think ahead and I want to conservatively use the extra fields for my stuff, to save room for excellent mods like the ones you crank out....

Thx
Reply With Quote
  #106 (permalink)  
Old 06-03-2007, 12:50 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
I am using 1 hosting account to share multiple domains. I am not using thumbnails and not using thickbox. Here is the situation -

(I) www.maindomain.com
Pligg Root: /
module_imageupload_imagedir: images/

(works perfectly)
Writes Images to www.maindomain.com/images
Reads Images from www.maindomain.com/images

(II) sub1.maindomain.com
Pligg Root: /sub1
module_imageupload_imagedir: sub1/images/

(writes correctly, reads wrong)
Writes Images to sub1.maindomain.com/images
Reads Images from sub1.maindomain.com/sub1/images (error)

(III) www.seconddomain.com
Pligg Root: /second
module_imageupload_imagedir: second/images/

(writes correctly, reads wrong)
Writes Images to www.seconddomain.com/images
Reads Images from www.seconddomain.com/second/images (error)

(IV) sub1.seconddomain.com
Pligg Root: /second/sub1
module_imageupload_imagedir: second/sub1/images/

(writes correctly, reads wrong)
Writes Images to sub1.seconddomain.com/images
Reads Images from sub1.seconddomain.com/second/sub1/images (error)

Currently we use the same variable 'module_imageupload_imagedir' for reading/writing. Perhaps we can use this variable for writing and define a new variable for reading, so you could change the reading variable if you are in a shared hosting environment.

Last edited by aaronpais; 06-03-2007 at 01:03 PM.
Reply With Quote
  #107 (permalink)  
Old 06-03-2007, 09:02 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
The image upload module does 2 things... 1 is display the thumbnail which in itself is a separate process... and the other is linking the thumbnail to the larger image.

So it seems, with URL method 2 that its the thumbnail script is working ok... the URL method 2 seems to be causing the module problems as the URL to the fullsize is incorrect (module issue). I'll be able to address this on Monday as part of the 1.0 release of the module.

A temp solution is to open the image_upload_settings.php file and make the following change:

PHP Code:
define('module_imageupload_thickbox_pre1''<a href="http://www.yoursite.com/yourimagefolder/'); 
This should fix the problem for now... like i mentioned, its a temp solution.

best,
Cent


Quote:
Originally Posted by canadapc View Post
Hi Everyone,

Bit of an issue with this mod.

Fresh install of 9.5 and enabled this mod.

All is fine with thumbnails showing but the link to the full image is incorrect on the story page. The link to the full image is fine on the category page.

Example: http://www.topkix.com/

First story is about George Carlin. Thumb shows fine. Click for full image works fine.

Go to http://www.topkix.com/Entertainment/...Carlin_Quotes/

Thumb shows fine but URL to full size image is incorrect.

I am using friendly URLS and URL method 2 with .htaccess.

If anyone knows how to get this working on the story details page I would appreciate it. I am willing to hardcode the images directory URL if necessary.

Thanks again.

Haven't been around in a while.
Pligg has come a long way since I was last here.
The programmers have done a great job.

Randy
Reply With Quote
  #108 (permalink)  
Old 06-03-2007, 09:06 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Aaron,

Right now... the image upload module requires 1 dedicated extra field for it. The mp3 module (if released) would require 1 extra field for it as well. the videobox module I worked on that's on my dev site, doesn't require any extra fields... it works by checking the story's URL to see if its a youtube, google, or myspace video (more to be added later). It will though, at some point require an extra field when I get it to pull the video thumbnails.

The reason for each module requiring its own field, besides for housekeeping, is that eventually they will support multiple media types. all of the filenames will be stored as an array in the single field.

best,
cent


Quote:
Originally Posted by aaronpais View Post
Cent, at the moment you use 1 extra field. How many total extra fields do you plan to use for the Image module, mp3 module, video module. Would it be 1 extra field per module?

Asking now because I'm trying to think ahead and I want to conservatively use the extra fields for my stuff, to save room for excellent mods like the ones you crank out....

Thx
Reply With Quote
  #109 (permalink)  
Old 06-04-2007, 12:11 PM
New Pligger
 
Join Date: May 2007
Posts: 7
The DL link says it's image upload 0.4... not 1.0 ?
Reply With Quote
  #110 (permalink)  
Old 06-04-2007, 12:28 PM
New Pligger
 
Join Date: Jun 2007
Posts: 1
Quote:
Originally Posted by painperdu View Post
I had the same problem but changing GD version number didn't work.

I did find, however, that in the "# Check to see if the image needs to be rescaled." section the "newimage" variable is missing part of its string.

I changed:
PHP Code:
$newimage = new thumbnail($destPath.$destFile); 
to

PHP Code:
$newimage = new thumbnail($destPath.$destFile.$tempExt); 
and it works fine now.
THX painperdu, I had the same problem too, Now ,it works fine. Thank U again.
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