Thumbnails of Story Image

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2009, 11:49 AM
Casual Pligger
 
Join Date: Mar 2008
Posts: 58
When posting a link having image to reddit.com, it will automatically create a thumbnail of the article image (not thumbnail of the domain) in the stories list

I want to know if there is such option for Pligg too ?
Reply With Quote
  #2 (permalink)  
Old 07-13-2009, 12:36 AM
New Pligger
 
Join Date: Mar 2008
Posts: 2
Yes I want this modules too
Reply With Quote
  #3 (permalink)  
Old 07-13-2009, 12:42 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
add the following lines to yoursite/templates/wistie/link_summary.tpl

Code:
{if $use_thumbnails eq true && $pagename eq "story" && $url_short neq "http://" && $url_short neq "://"}
                <b><img src="http://images.websnapr.com/?url={$url}&size=T" style="float:right; padding-left:10px;padding-top:20px;"></b>
            {/if}
Reply With Quote
  #4 (permalink)  
Old 07-13-2009, 06:31 AM
Constant Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Jun 2009
Posts: 125
Send a message via Yahoo to prorock
please link to the module
Reply With Quote
  #5 (permalink)  
Old 07-13-2009, 07:08 AM
nellaitamil's Avatar
Constant Pligger/Designer
Pligg Version: 1.1.3
Pligg Template: ar...
 
Join Date: Dec 2008
Location: india
Posts: 208
am useing in standrd theme. this code not work.
Reply With Quote
  #6 (permalink)  
Old 07-14-2009, 01:24 PM
cmstheme's Avatar
Donor/Coder
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Location: Philippines
Posts: 528
chuckroast's code should work when viewing the story details. Here's what you should put somewhere in your link_summary.tpl if you also want it in frontpage:
PHP Code:
{if $url_short neq "http://" && $url_short neq "://"}
    <
img src="http://images.websnapr.com/?url={$url}&size=T" style="float:right; padding-left:10px;padding-top:20px;">
{/if} 
That uses websnapr 2.0 service, there are also other website thumbnail providers that you may try
Reply With Quote
  #7 (permalink)  
Old 07-14-2009, 04:07 PM
Casual Pligger
 
Join Date: Mar 2008
Posts: 58
Again, nice job cmstheme
Reply With Quote
  #8 (permalink)  
Old 07-14-2009, 04:57 PM
Constant Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Jun 2009
Posts: 125
Send a message via Yahoo to prorock
worked! aaaaaaa

Last edited by prorock; 08-22-2009 at 02:06 PM.
Reply With Quote
  #9 (permalink)  
Old 07-14-2009, 05:07 PM
Constant Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Jun 2009
Posts: 125
Send a message via Yahoo to prorock
Limit exceed error how i insert a websnapr key, to not apear Limit Exceeded in my site?

Last edited by prorock; 07-14-2009 at 05:14 PM.
Reply With Quote
  #10 (permalink)  
Old 07-14-2009, 06:18 PM
Constant Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Jun 2009
Posts: 125
Send a message via Yahoo to prorock
i change service websnapr.com with Website Screenshot Thumbnail Service | ShrinkTheWeb
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
Image Upload -> Link Image to Story MikeF Questions and Comments 9 04-11-2011 07:30 PM
image_upload: click to open story not image? Notimega Questions and Comments 2 12-06-2008 07:10 PM
Image Upload - Make image link to story swese44 Questions and Comments 1 07-22-2008 10:07 PM
[SOLVED] When I upload a image when submitting a news story... gossipqueenie Questions and Comments 3 10-27-2007 12:44 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