Facebook Like button and Pligg

Posted In Hacks - By Geoserv On Saturday, April 24th, 2010 With 206 Comments

POST UPDATED! – We now not only have Google Buzz with their own button, but, now Facebook has launched their own finally. In this post I will show you how to add the Facebook “Like” button your Pligg install.

Open link_summary.tpl:

Determine where you want the button to appear, make sure you allow enough space, at least 300px, as the button will show not only a “Like” button but who has liked it as well.

Facebook Like button and Pligg

Once you have determined the right location add the following code:

<iframe src="http://www.facebook.com/plugins/like.php?href={$url}&amp;layout=standard;&amp;show_faces=false&amp;width=650&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; margin: 5px 0 0 5px; overflow:hidden; width:650px; height: 25px;"></iframe>
 

Special thanks to Ruhani Rabin for the original code.

UPDATE:

One of our readers, Giuseppe Dispensa asked if it was possible to the “Like” when posted to Facebook, link to the story page as opposed to the URL of the submission. At first we didn’t think of this, but, if you would like to send the traffic to you first and then the submissio URL change the following part of the code:

<iframe src="http://www.facebook.com/plugins/like.php?href=<strong>{$url}&amp;layout=standard;&amp;show_faces=false&amp;width=650&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; margin: 5px 0 0 5px; overflow:hidden; width:650px; height: 25px;"></iframe>
 

to:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAINNAME.com{$story_url}&amp;layout=standard;&amp;show_faces=false&amp;width=650&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; margin: 5px 0 0 5px; overflow:hidden; width:650px; height: 25px;"></iframe>
 

make sure you enter your domain name where we have YOURDOMAINNAME.

Have fun, what method will you be using?

By using our 350-001 and HP0-S26 e-book facility, you can carry your Braindumps prep solutions anywhere along with you. The mcitp braindumps tutorials are also accessible with free downloadable feature. Have you ever visited best hotels?

Related Search:

  • published news upcoming news submit a new story what is pligg?
  • published news upcoming news submit a new story powered by pligg
  • Powered By Pligg conservatory furniture
  • pligg facebook
  • Powered By Pligg search engine ranking
  • Powered By Pligg starting a business in india
  • Powered By Pligg how to write a story
  • Powered By Pligg advance auto
  • Powered By Pligg preparation h use
  • Powered By Pligg successful home based business

About - Geoserv has been working with the Pligg CMS for 2+ years.

  • http://www.estateagentsinenfield.net/ Estate Agents in Enfield

    Facebook like button is very helpful because it allow users to like a page though we are not in facebook login, this is nice post and we would like to apply this tactic for our site.

  • http://www.cleantrip.in/bangalore Best Hotels in Bangalore

    There are a lot of blogs currently on the worldwide web,But I like it from others..

  • http://jmv.co.in/surge_protection.html Lightning Surge Protection

    I enjoyed reading your post.Hoping for your next post soon.

  • Healthcare Training

    it is vary good technique

  • Estate Agents in Enfield

    ammazing information bacause we all are using face book so it is to much important to me

  • DSL Provider

    facebook is a like a button it is vary help full for social networking site it is a good pagr rank and many users use facebook so that is one type of button