Helping you Build Your Own Social Network!

Faster, better and easier!

Adding Facebook Like to Global Forum Thread

(5 posts) (3 voices)
  • Started 1 year ago by gregfielding
  • Latest reply from lisalove

Tags:


  1. Brajesh,

    This is the code to paste in, but what would I use for the href=permalink?

    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php WHAT GOES HERE?() ?>&layout=standard&show-faces=true&width=450&action=like&font=arial&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:70px"></iframe>

    Posted 1 year ago #
  2. Got it:

    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php gf_the_topic_permalink() ?>&layout=standard&show-faces=true&width=450&action=like&font=arial&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:70px"></iframe>

    I added it between the pagenation and and topic meta and it looks great.

    Posted 1 year ago #
  3. This sounds like a great feature to add.
    Can you please tell me where to add this code, in what file exactly?

    Cheers!

    Posted 1 year ago #
  4. @lisalove

    That would be in gf/topic.php after the closing </div> of the pagination links (line 16), and the opening <div> of the topic meta.

    Just tried it out and it works fine.

    Nice addition @greg

    Posted 1 year ago #
  5. thanks a million, works great!

    Posted 1 year ago #

Reply

You must log in to post.