How To Add Facebook Like Button To Header & Footer

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
bad959fl
Registered User
Posts: 28
Joined: Mon Apr 25, 2005 4:00 pm

How To Add Facebook Like Button To Header & Footer

Post by bad959fl » Fri Sep 01, 2017 4:41 pm

I'm running version 3.1.10 of phpBB and wanted to know how to add a Facebook like button to the header and footer of my forum. I tried following this tutorial but the code info in the files were different:

https://www.youtube.com/watch?v=BYxtKSKUq1A

Toxyy
Registered User
Posts: 320
Joined: Mon Oct 24, 2016 3:22 pm

Re: How To Add Facebook Like Button To Header & Footer

Post by Toxyy » Thu Sep 07, 2017 11:50 pm

You can add a button wherever you want, maybe use font awesome and some css to make it look the way you want. There's a specific Facebook share url, you can Google it. You'll just need to format the end of the url with your current page, you can get it with Javascript and change your href all in one go:

https://stackoverflow.com/questions/468 ... javascript

Phpbb doesn't have a current url template variable if I can remember right...
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7004
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: How To Add Facebook Like Button To Header & Footer

Post by JimA » Fri Sep 08, 2017 8:59 am

Even though this article was originally created for 3.0, it might guide you in the right direction. :)
Knowledge Base - How to add social icons
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

bad959fl
Registered User
Posts: 28
Joined: Mon Apr 25, 2005 4:00 pm

Re: How To Add Facebook Like Button To Header & Footer

Post by bad959fl » Fri Sep 22, 2017 4:57 pm

Hi JimA - Are those instructions the same for adding the Facebook page plugin so people can like my page as explained here:

https://developers.facebook.com/docs/pl ... ge-plugin/

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 4 guests

cron