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)
Scam Warning
User avatar
Theriddler1
Registered User
Posts: 448
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶
Contact:

Re: The new Facebook like button

Post by Theriddler1 » Mon Feb 25, 2013 8:31 pm

Hello,

I think that if you use the same code twice on the same page it doesn't work but try the following

Open viewtopic.php
Find:

Code: Select all

'U_JABBER'		=> $user_cache[$poster_id]['jabber'],
Add After:

Code: Select all

'U_FBLIKEPOST' 	=> generate_board_url() . '/viewtopic.php?p='. $row['post_id'].'%23p'.$row['post_id'],
Then in template viewtopic_body.html use:

Code: Select all

<script language="javascript" type="text/javascript">
   //<![CDATA[
   document.write('<fb:like href="{postrow.U_FBLIKEPOST}" send="false" layout="button_count" width="250" show_faces="false" action="like"></fb:like>');
   //]]>
   </script>
Theriddler - Moderator @ phpBB.nl | phpBBservice.nl Team-member
ImageSupport Tools | Image My Extensions | buy me a beer Image

User avatar
rmharrison
Registered User
Posts: 21
Joined: Mon Feb 11, 2013 11:20 am
Location: Hampshire, UK
Name: Rich
Contact:

Re: The new Facebook like button

Post by rmharrison » Tue Feb 26, 2013 9:59 am

Ok it didn't work :cry:

But I now have it working, just if anyone wants to do this in the future here is what I did.

I created a new code from Facebook and used the HTML5 code; HERE

and added

Code: Select all

/viewtopic.php%3Ff%3D{S_FORUM_ID}%26t%3D{S_TOPIC_ID}
the the URL so it looked like this

Code: Select all

<div class="fb-like" data-href="www.wyverns.co.uk/forum/viewtopic.php%3Fp%3D{postrow.POST_ID}%23p{postrow.POST_ID}" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="arial"></div>
and now it works fine, I think where your code is XFBML and mine is HTML5 both codes can now work independently.

Thanks for your Help, without your input I would have never found the solution.

Rich

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: The new Facebook like button

Post by forforce » Wed Dec 04, 2013 9:42 pm

Hi, is there a way we can make facebook like button to show the picture/attachment from a topic you like ? How to do that? my website is www.cumseface.eu , all is working fine but the picture is not showing and the url seem to be distorted. Any help ?
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: The new Facebook like button

Post by forforce » Sat Dec 07, 2013 11:06 pm

nobody ? Maybe with dynamic meta tags for images would work but I don`t know how to do that. Can somebody help with a mod for that ?
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .


forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: The new Facebook like button

Post by forforce » Sun Dec 08, 2013 1:02 am

Thanks for replay but I think that the trick with that is to set up a standard picture when you share a topic and not share the picture from the topic you like.
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

User avatar
ViolaF
Registered User
Posts: 1459
Joined: Tue Aug 14, 2012 11:52 pm

Re: The new Facebook like button

Post by ViolaF » Sun Dec 08, 2013 9:23 am

forforce wrote:Thanks for replay but I think that the trick with that is to set up a standard picture when you share a topic and not share the picture from the topic you like.
of course, of course :shock: i mean (i think you can read) the same :? 8-)
of course i know that, but exactly that is minimum the half solution, 60% to target is done with that :o
ViolaF wrote:so only the phpbb3-part is left, to figure out, how to get the image-lnk in post
(i think only one image eg. the-first is possible?) - i dont know facebook at all..
thats the proof, that i understand 100000% what you want :shock: :shock: :shock:

but of course i dont want to serve any time the solution on a silver platter.
i want to inspire people, to find at least the last pair of % by from the solution itself.
i am no code-whore for free.

ericklimabr
Registered User
Posts: 5
Joined: Sun Jan 12, 2014 1:10 pm

Re: The new Facebook like button

Post by ericklimabr » Wed Feb 05, 2014 6:45 pm

Hi guys, in my forum the name "Site-Naam-Hier" persist in the Title, and a old description, i cleaned the cache, but nothing happens

http://teologia.adv.br/forum/

And https://developers.facebook.com/tools/debug shows correct

Locked

Return to “[3.0.x] MOD Requests”