The new Facebook like button

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Anti-Spam Guide
RRManager
Registered User
Posts: 32
Joined: Mon Sep 28, 2009 9:44 pm

Re: The new Facebook like button

Post by RRManager » Wed Apr 28, 2010 4:34 pm

Hey, so I was thinking about going even further with this and putting a FB Like button on each post. This would allow users to like any post they wanted to instead of an entire thread. Ideas?

lqdmindz
Registered User
Posts: 226
Joined: Sat Apr 10, 2010 8:40 am

Re: The new Facebook like button

Post by lqdmindz » Fri Apr 30, 2010 2:57 pm

Have you not been following the convo?

User avatar
Boardtalk.net
Registered User
Posts: 1209
Joined: Fri Jun 05, 2009 8:12 pm
Location: Ireland
Name: Colette
Contact:

Re: The new Facebook like button

Post by Boardtalk.net » Fri Apr 30, 2010 2:59 pm

RRManager wrote:Hey, so I was thinking about going even further with this and putting a FB Like button on each post. This would allow users to like any post they wanted to instead of an entire thread. Ideas?
What plasmino said works... I have it working perfect on my forum
plasmino wrote:I have using

open styles/prosilver/template/viewtopic_body.html

Find

Code: Select all

<!-- IF PAGINATION or TOTAL_POSTS -->
		<div class="pagination">
			{TOTAL_POSTS}
			<!-- IF PAGE_NUMBER --><!-- IF PAGINATION --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF --><!-- ENDIF -->
		</div>
	<!-- ENDIF -->
</div>
Add after this code

* change YOUR URL with you url

Code: Select all

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.YOU URL.com%2Fforum%2Fviewtopic.php%3Ff%3D{S_FORUM_ID}%26t%3D{S_TOPIC_ID}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe>
<fb:like href="http://www.YOU URL.com/forum/viewtopic.php?f={S_FORUM_ID}&t={S_TOPIC_ID}" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" />
clear your cache and refresh your template

RRManager
Registered User
Posts: 32
Joined: Mon Sep 28, 2009 9:44 pm

Re: The new Facebook like button

Post by RRManager » Fri Apr 30, 2010 3:11 pm

I mean a button that would go on each post to allow people to like not an entire thread, but an individual post.

User avatar
Boardtalk.net
Registered User
Posts: 1209
Joined: Fri Jun 05, 2009 8:12 pm
Location: Ireland
Name: Colette
Contact:

Re: The new Facebook like button

Post by Boardtalk.net » Fri Apr 30, 2010 3:17 pm

RRManager wrote:I mean a button that would go on each post to allow people to like not an entire thread, but an individual post.
Good question :idea:

lqdmindz
Registered User
Posts: 226
Joined: Sat Apr 10, 2010 8:40 am

Re: The new Facebook like button

Post by lqdmindz » Fri Apr 30, 2010 3:21 pm

Haha...that might be pushing the envelope...i was wondering if someone could help me while you guys are on. i would like my button to be in a section at the bottom...

so far it looks like http://www.h1vem1nd.org/ have the code below

Code: Select all

	  </div>
	<div id="bottom_body"></div>
</div>

<iframe src="http://www.facebook.com/plugins/like.php?href=www.h1vem1nd.org&layout=standard&show_faces=true&width=450&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px"></iframe>
<div id="bottom_body"></div>


<div id="page-footer">
	<div class="navbar">
		<div class="inner">
how do i enclose it?

lqdmindz
Registered User
Posts: 226
Joined: Sat Apr 10, 2010 8:40 am

Re: The new Facebook like button

Post by lqdmindz » Fri Apr 30, 2010 4:03 pm

well i fixed the issue... have a look at http://www.h1vem1nd.org and see if you like

MALdito
Registered User
Posts: 54
Joined: Mon Aug 18, 2003 11:12 pm
Contact:

Re: The new Facebook like button

Post by MALdito » Tue May 04, 2010 2:27 am

I actually put it under the topic title. Seems more natural that way.
http://www.bacanalnica.com/foros/viewto ... 7&t=101071

trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

Re: The new Facebook like button

Post by trickoff » Fri May 07, 2010 10:22 am

EDIT: I solved it by changing {S_FORUM_ID} and {S_TOPIC_ID} to {FORUM_ID} and {TOPIC_ID}

I can't get the link from facebook to work!
Facebook only links to http://www.skim.se/viewtopic.php?f=&t=

instead of http://www.skim.se/viewtopic.php?f=FORUM NUMBER&t=TOPIC NUMBER

I've used this code and added facebook as a bot

Code: Select all

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.skim.se%2Fviewtopic.php%3Ff%3D{S_FORUM_ID}%26t%3D{S_TOPIC_ID}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe>
<fb:like href="http://www.YOU URL.com/forum/viewtopic.php?f={S_FORUM_ID}&t={S_TOPIC_ID}" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" />
it seems like {S_FORUM_ID} and {S_TOPIC_ID} isn't getting any numbers

anyone might know why?

EDIT: I solved it by changing {S_FORUM_ID} and {S_TOPIC_ID} to {FORUM_ID} and {TOPIC_ID}

plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

Re: The new Facebook like button

Post by plasmino » Fri May 07, 2010 12:35 pm

trickoff you have missed to insert the second url

YOU URL are 2 ^_^

trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

Re: The new Facebook like button

Post by trickoff » Fri May 07, 2010 11:13 pm

plasmino wrote:trickoff you have missed to insert the second url

YOU URL are 2 ^_^
No, that was just when I pasted the code here. But thank you anyway for noticing =)
This works really great! I've implented it on many parts of my website such as OurTube items, PHPBB Gallery images, user's guestbooks and many more =)

haipo
Registered User
Posts: 121
Joined: Tue Jul 28, 2009 5:30 am

Re: The new Facebook like button

Post by haipo » Mon May 10, 2010 6:44 pm

I installed this and it works fine except 2 issues:
1. the title of the link in the facebook have only my website title and not at all the topic title.
(This happen also when I post links to my web directly in my facebook status)
2. when I have a thread of 2 or more pages it links only to the first page.

can someone help ?
:?

plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

Re: The new Facebook like button

Post by plasmino » Mon May 10, 2010 7:36 pm

in your html <title>

appears the title of the thread ?

example here is

Image

haipo
Registered User
Posts: 121
Joined: Tue Jul 28, 2009 5:30 am

Re: The new Facebook like button

Post by haipo » Mon May 10, 2010 8:13 pm

no.
there is only the title of my website (hebrew)

<title>חיפה | מקומון חיפאי</title>

plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

Re: The new Facebook like button

Post by plasmino » Mon May 10, 2010 9:40 pm

lol

in your overall_header.html

you have If you have to remove references in red?

<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

Locked

Return to “[3.0.x] MOD Requests”