Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials



[MOD] Image Upload Module (v1.0) -- Now Available

Advanced Tutorials for Modifying your Pligg site


Reply
 
LinkBack Thread Tools Display Modes
  #151 (permalink)  
Old 03-01-2008, 11:29 PM
New Pligger
 
Join Date: Sep 2007
Posts: 8
I get the problem of having a "black box" instead of a thumbnail. I had this mode installed at one time and had this fixed, (but I lost it), and I can not find the solution..... Is it because there needs to be some folder for the "thumbnails"? in which I need to specifically define? or perhaps the full size images are just dynamically resized and not stored anywhere.... But then I don't know why I am just getting a black box as when I click on the black box, the full size image comes up in a new window. If this is the case where there is a specific folder I need to create to house the thumbnails, what do I call the folder and where do I put it? Oh yeah, I am using Pligg 9.8

I thought there was an answer to this somewhere on the forum, but I can not find it now....

Any ideas?

Thanks,

Brian
Reply With Quote
  #152 (permalink)  
Old 03-11-2008, 12:21 PM
New Pligger
 
Join Date: Mar 2008
Posts: 19
I was unable to find

$linkres->store();
tags_insert_string($linkres->id, $dblang, $linkres->tags);

in /templates/(your template)/submit_step_3.tpl

to do the second step
Reply With Quote
  #153 (permalink)  
Old 03-15-2008, 09:07 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Since the module lacks of a gallery I thought about incorporating external gallery code.

Coppermine Gallery (Coppermine Photo Gallery) and Gallery2 (Gallery | Your photos on your website) are fully-fledged Flickr/Picasa clones and a little bit to heavy for that task.

PHPSlideShow (zinkwazi.com » PHPSlideShow) really impressed me. If the main image is resized to fit next to the sidebars it should look awesome in Pligg. Maybe someone is interested to write some integration code
Reply With Quote
  #154 (permalink)  
Old 03-25-2008, 11:31 PM
New Pligger
 
Join Date: Sep 2007
Posts: 8
I had written this before and have tried re-installing the mod, and looking all over for the answer to this, I can't find it, perhaps someone could tell could point me in the right direction for this??

I get the problem of having a "black box" instead of a thumbnail. I had this mode installed at one time and had this fixed, (but I lost it), and I can not find the solution..... Is it because there needs to be some folder for the "thumbnails"? in which I need to specifically define? or perhaps the full size images are just dynamically resized and not stored anywhere.... But then I don't know why I am just getting a black box as when I click on the black box, the full size image comes up in a new window. If this is the case where there is a specific folder I need to create to house the thumbnails, what do I call the folder and where do I put it? Oh yeah, I am using Pligg 9.8

I thought there was an answer to this somewhere on the forum, but I can not find it now....

Any ideas?

Thanks,

Brian
Reply With Quote
  #155 (permalink)  
Old 04-05-2008, 12:59 AM
New Pligger
 
Join Date: Feb 2008
Posts: 1
Hi...I am using Version 9.9 of Pligg...just a little nervous about installing the "hack fix" verion 1.02 of image uploader. Currently using V0.4 which has issues. Is anyone using V1.02 in a live environment?...is it working OK?...anyone know of progress towards a more official release on this mod?

Thanks
Reply With Quote
  #156 (permalink)  
Old 04-23-2008, 10:50 PM
New Pligger
 
Join Date: Apr 2008
Posts: 2
Quote:
Originally Posted by etrader View Post
I was unable to find

$linkres->store();
tags_insert_string($linkres->id, $dblang, $linkres->tags);

in /templates/(your template)/submit_step_3.tpl

to do the second step
Yeesh. I just lucked out, it seems.

You're right; 9.9 beta doesn't have the linkres piece in the template. It's in the do_submit3 function in/submit.php. Adding the text there after the code snippet mentioned will likely work (it's working for me with the file_upload module).
Reply With Quote
  #157 (permalink)  
Old 04-24-2008, 09:48 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Actually it's in the do_submit2 function. I put the code there, the image is uploading to my images/ directory, but I am not getting any thumbnails on the stories...the div is floated to the right, but it is empty.



It's empty because the image filename isn't being set in image_upload_main.php:

Code:
// Otherwise, let's get it from the Submission field its saved in
	$imageFile = $main_smarty->get_template_vars(module_imageupload_filename_field);

Who was the dev who created the image upload? Any chance he can comment here? I am completely stumped and frustrated.

Last edited by swese44; 04-24-2008 at 10:16 PM.
Reply With Quote
  #158 (permalink)  
Old 04-25-2008, 03:29 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
It was cent (http://forums.pligg.com/members/cent.html). He doesn´t seem to be online very often.
Reply With Quote
  #159 (permalink)  
Old 04-26-2008, 06:22 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Quote:
Originally Posted by tbones View Post
It was cent (http://forums.pligg.com/members/cent.html). He doesn´t seem to be online very often.

Well I've found a major bug with this in v9.9. Take a look at line 127:

Code:
$storyTitle = htmlentities(stripslashes($main_smarty->get_template_vars(title_short)));
$storyTitle is never set. In fact the $main_smarty variable doesn't return anything. There must have been some core change in v9.9 that hasn't been accounted for. So even though the basic functionality of the image upload is working, certain things like titles are never set.

This means I can't figure out how to access the smarty variables so I can't change the image link to the story URL. Anybody have any ideas?
Reply With Quote
  #160 (permalink)  
Old 05-17-2008, 12:53 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 913
Guys I'm kind of in the same boat! I got the image to sit nice, a good size but for some reason the image isn't uploading to the proper folder! The thumbnail is working perfect so I'm thinking I can do 2 things!

Blog Engage - Improving your websites msn search results!

1- can we make the image link to the story?

2- can we make the image not be a link at all?

Thanks in advance

Last edited by bbrian017; 05-17-2008 at 01:23 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[MOD] Image Upload Module (v0.93) -- Please test cent Modification Tutorials 54 05-01-2009 10:12 PM
About the image upload module rockxie Module Support 4 04-24-2009 12:03 AM
Image Upload Module -- Call for feature requests cent Modification Tutorials 12 11-15-2008 12:13 PM
Image Upload 0.4 Module ziadchatila Module Support 3 08-05-2008 04:40 PM
[MOD] File Upload Module -- seeking requests for features cent Modification Tutorials 2 08-11-2007 04:39 AM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development