[BETA] Like button for Facebook

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

[BETA] Like button for Facebook

Post by soumik »

Modification Name: Like button for Facebook
Author: soumik

Modification Description:
Adds a Facebook Like button to the top and bottom of the threads.

Note :
The are two versions of this mod available. One is the iFrame version, which requires less file edits, but doesn't give the option to post a link to wall when a URL is liked. Another is the xFBML version, which requires more edits, but gives the option to post a link to wall when a URL is liked. It also dynamically resizes itself. Choose the one that suits you.

Modification Version: 0.0.5.

Compatibility:
  • Works with 3.0.+ Including 3.0.11
  • Prosilver Compatible
  • subSilver Compatible
Image
Image

Demo URL: http://animorphsfanforum.com/viewtopic.php?f=38&t=2064

Modification Download: Screenshots:

With faces :
Image

Image

Image

Without faces :
Image

Image

Image

Notes:
In order to disable the display of faces, follow these steps :

Open /styles/prosilver/template/viewtopic_body.html :
Find :

Code: Select all

<div style="margin-bottom:4px"><fb:like href="{U_FB}"></fb:like></div>
Inline find :

Code: Select all

href="{U_FB}"
Inline Before Add :

Code: Select all

show-faces="false"
Find :

Code: Select all

<fb:like href="{U_FB}"></fb:like>
Inline find :

Code: Select all

href="{U_FB}"
Inline Before Add :

Code: Select all

show-faces="false"
Last edited by soumik on Wed Feb 27, 2013 4:52 am, edited 22 times in total.
Powered by chocolate
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [ALPHA] Facebook Like button

Post by 4_seven »

thx for making that, but i dont see any button.

edit:
i must set facebook in my noscript. now i see it ;)
Last edited by 4_seven on Fri Jun 04, 2010 12:39 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [ALPHA] Facebook Like button

Post by darkonia »

thx for making this addon :ugeek:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [ALPHA] Facebook Like button

Post by sleevedbiker »

couple of questions.... first what kind of application are we supposed to create?
also, i am getting an error when i click the like button....
and before i click the like button there is a grey box below it....
You ride with an outlaw, You die with an outlaw
User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

Re: [ALPHA] Facebook Like button

Post by soumik »

sleevedbiker wrote:couple of questions.... first what kind of application are we supposed to create?
Go to http://www.facebook.com/developers/createapp.php and create an app. There isn't any particular type of application you need to create. You should also fill in the Connect URL and Base Domain under Connect tab for your app.
sleevedbiker wrote:also, i am getting an error when i click the like button....
If you haven't yet created an app and used it's id in the code, you'll get errors.
sleevedbiker wrote:and before i click the like button there is a grey box below it....
A link to the page should have been particularly useful in this case.
Last edited by soumik on Fri Jun 04, 2010 6:09 pm, edited 1 time in total.
Powered by chocolate
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [ALPHA] Facebook Like button

Post by sleevedbiker »

soumik wrote:
sleevedbiker wrote:couple of questions.... first what kind of application are we supposed to create?
Go to http://www.facebook.com/developers/createapp.php and greate an app. There isn't any particular type of application you need to create. You shuold also fill in the Connect URL and Base Domain under Connect tab for your app.
sleevedbiker wrote:also, i am getting an error when i click the like button....
If you haven't yet created an app and used it's id in the code, you'll get errors.
sleevedbiker wrote:and before i click the like button there is a grey box below it....
A link to the page should have been particularly useful in this case.

yeah, that would have helped....
http://sonsofanarchyforever.com/forum

test
test1234

I created a nothing app, and chnged the ID, just didnt connect it with the url... ill go do that
this is a cool mod btw
You ride with an outlaw, You die with an outlaw
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [ALPHA] Facebook Like button

Post by darkonia »

you must fill in the app your base domain and your connect-url
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [ALPHA] Facebook Like button

Post by sleevedbiker »

darkonia wrote:you must fill in the app your base domain and your connect-url

yeah the URL in the connect fixed everything but the error... let me go add it to the base domain to.
You ride with an outlaw, You die with an outlaw
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [ALPHA] Facebook Like button

Post by sleevedbiker »

what exactly should be going into the base domain because neither http://sonsofanarchyforever.com/forum/ or http://sonsofanarchyforever.com/ work.
You ride with an outlaw, You die with an outlaw
User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

Re: [ALPHA] Facebook Like button

Post by soumik »

Use sonsofanarchyforever.com.
Powered by chocolate
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [ALPHA] Facebook Like button

Post by darkonia »

when i go on your site soumik: http://animorphsfanforum.com/

and klick in a topic on like it, also a error appears...
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [ALPHA] Facebook Like button

Post by darkonia »

another great error.

with your mod, the facebook connect doesnt function anymore

facebook connect: http://www.phpbb.com/community/viewtopi ... &t=1692295
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [ALPHA] Facebook Like button

Post by sleevedbiker »

still getting this error....

Image
You ride with an outlaw, You die with an outlaw
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [ALPHA] Facebook Like button

Post by darkonia »

ive deinstalled this addon, to bad coded by now...i wait for a better release!
but thx for ya work... :ugeek:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

Re: [ALPHA] Facebook Like button

Post by soumik »

I'm working on fixing the bugs right now.
darkonia wrote:when i go on your site soumik: http://animorphsfanforum.com/

and klick in a topic on like it, also a error appears...
The Facebook like button on animorphsfanforum.com is the iframe version, while this mod uses the xFBML version. Two completely different methods to implement the Like button.

The iframe version (the one on my site) isn't quite functional (I'm having problems with ampersands in URLs), while this one is more or less functional.
Powered by chocolate
Locked

Return to “[3.0.x] MODs in Development”