[SOLVED] Thumbnails on main page

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2008, 02:13 PM
Casual Pligger
Pligg Version: RC3
Pligg Template: Custom
 
Join Date: Jul 2008
Posts: 30
Hi all,
I am newbie in editing SMARTY and working with PHP at all, so I was wondering if you can help me with issue that I have. I want to put the thumbnail that appears when you are looking at the story itself (at story.php). Can you give me a clue how to do it ?

Thanks in advance.

Evgeny
Reply With Quote
  #2 (permalink)  
Old 07-31-2008, 02:45 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
open yoursite/templates/yget/link_summary.tpl and look for

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_short}&size=T" style="float:right; padding-left:10px;padding-top:35px;"></b>
            {/if}
Replace with
Code:
<b><img src="http://images.websnapr.com/?url={$url_short}&size=T" style="float:right; </b>
Reply With Quote
  #3 (permalink)  
Old 07-31-2008, 03:27 PM
New Pligger
 
Join Date: Jul 2008
Posts: 2
thanks, I've been wondering the same thing. Will test it out tonight.
Reply With Quote
  #4 (permalink)  
Old 07-31-2008, 04:47 PM
Casual Pligger
Pligg Version: RC3
Pligg Template: Custom
 
Join Date: Jul 2008
Posts: 30
Works just fine - thanks.

Just note that the <b></b> TAG is BOLDing all lines in the story.
Reply With Quote
  #5 (permalink)  
Old 07-31-2008, 06:53 PM
New Pligger
 
Join Date: Jul 2008
Posts: 3
Thanks a Lot man
Reply With Quote
  #6 (permalink)  
Old 12-07-2008, 04:33 PM
New Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Dec 2008
Posts: 2
thanks for this
Reply With Quote
  #7 (permalink)  
Old 12-25-2008, 06:53 PM
New Pligger
 
Join Date: Dec 2008
Posts: 23
Quote:
Originally Posted by chuckroast View Post
open yoursite/templates/yget/link_summary.tpl and look for

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_short}&size=T" style="float:right; padding-left:10px;padding-top:35px;"></b>
            {/if}
Replace with
Code:
<b><img src="http://images.websnapr.com/?url={$url_short}&size=T" style="float:right; </b>

I'm using silverbullet template and if i use this i don't get the comments box, user who voted and related links.
What can i do to fix this?
Thanks
Reply With Quote
  #8 (permalink)  
Old 12-25-2008, 06:59 PM
New Pligger
 
Join Date: Dec 2008
Posts: 23
Ok, just solved by putting :

<b><img src="http://images.websnapr.com/?url={$url_short}&size=T" style="float:right; </b>


Before : {if $use_thumbnails eq true && $pagename eq "story" && $url_short neq "http://" && $url_short neq "://"}
<b><img src="http://images.websnapr.com/?url={$url_short}&size=T" style="float:right; padding-left:10px;padding-top:35px;"></b>
{/if}


It worked.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM
[SOLVED] Avatar size comments and main page help. gameradam Questions and Comments 1 04-03-2008 08:04 AM
Show Page Thumbnails on main page seer Questions and Comments 2 11-20-2007 05:20 AM
Show Video and images Thumbnails on main page massi999 Questions and Comments 1 11-19-2007 01:40 PM
how to put thumbnails in main page sawy Questions and Comments 0 11-01-2007 08:52 AM


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