• Home
  • Community
  • Submitted News
FAQ • Search • Login
Forum Home • Register

View unanswered posts | View active topics


Board index » Pligg » Pligg Hacks

All times are UTC


Place the websnapr image to story index



Post new topic Reply to topic  Page 1 of 1
 [ 5 posts ] 
Print view Previous topic | Next topic 
 Place the websnapr image to story index 
Author Message
pliggfan

Joined: Mon May 26, 2008 5:56 pm
Posts: 7
Post Place the websnapr image to story index
Hi there :)

i´m newbie and i found this wonderful pligg software. Now, someone knows how i can place the websnapr image (code is in link_summary.tpl) to the front story page.

like it is on this example site: http://www.ratingslive.com/

anyone knows, in which file i have to include the code?

many greetings ;)


Mon May 26, 2008 6:00 pm
Profile
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 296
Post Re: Place the websnapr image to story index
Hi pliggfan welcome to the site,

Open your templates link_summary.tpl file and around line 77 of the code you should see.

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:5px;padding-top:5px;"></b>
{/if}


change that code to this.

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


That will show you images on the homepage ;)

All you have to do is position with CSS instead of the style="" element within the image link.

Hope that helps m8.


Mon May 26, 2008 9:59 pm
Profile
pliggfan

Joined: Mon May 26, 2008 5:56 pm
Posts: 7
Post Re: Place the websnapr image to story index
Hi Lincoln,

thx for welcome ;) i just changed the code and it runs great !! Thanks a lot :)


Tue May 27, 2008 3:31 pm
Profile
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 296
Post Re: Place the websnapr image to story index
np's pligg fan happy i could help :)


Tue May 27, 2008 10:19 pm
Profile
kuartelgeneral

Joined: Fri Jul 04, 2008 3:09 am
Posts: 1
Post Re: Place the websnapr image to story index
Thanks, it works perfectly with Pligg 9.9.0b and yget template (on line 74)


Fri Jul 04, 2008 3:37 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 5 posts ] 

Board index » Pligg » Pligg Hacks

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

©2007-2008 Social CMS Buzz

Feed XML Favourite Valid XHTML Valid CSS WordPress