Go Back   Pligg CMS Forum > Pligg Development > Pligg Modules > Module Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-20-2008, 03:38 AM
Casual Pligger
 
Join Date: Jul 2008
Posts: 33
Thanks: 2
Thanked 0 Times in 0 Posts
Need Help in Image Upload mode in display specified thumbnails

I am trying to provide a static thumbnail for importing RSS feeds. For example, I have a "rssThumb.jpg" sitting in the images/ directory. I have also updated the rss import php to put rssThumb.jpg into linkfield1 during importing. However, it would not display the thumbnail when the link is displayed. When I rename the thumbnail to img_141.jpg (141 is the number of the link id) then the thumbnail is displayed.

I started to dig into the image_update_main.php
Code:
        // Get Image filename
        if ($main_smarty->get_template_vars(module_imageupload_filename_field) == "")
        {
                $imageFile = module_imageupload_fullsize_prefix.$storyID.".jpg";
        } else {
                $imageFile = $main_smarty->get_template_vars(module_imageupload_filename_field);
        }
where module_imageupload_filename_field is defined as linkfield1 in image_upload_settings.php.

Can someone help me to figure out why it is not displaying the thumbnail?

Last edited by TypeEE; 07-20-2008 at 03:43 AM..
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
Image Upload Module -- Call for feature requests cent Modification Tutorials 12 11-15-2008 12:13 PM
Mixed files equal to all wrong with pligg and image upload ( for pligg developers ) Peter Installation and Upgrade Help 0 11-17-2007 03:55 PM
Latest SVN - Image Upload v0.4 broken? aaronpais General Help 3 05-22-2007 03:19 PM
Image Upload / Image display with stories mod - Will pay for dev and share adampoots Modification Tutorials 11 04-10-2007 07:22 PM
Urgent Paid Mod Needed - Image Upload, AJAX w/ Lightbox Display - Community Release kanedaguy Modification Tutorials 10 02-17-2007 02:00 PM


Search Engine Friendly URLs by vBSEO 3.2.0