Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Mick. on May 13, 2010, 01:28:23 PM

Title: Facebook Like Mod
Post by: Mick. on May 13, 2010, 01:28:23 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2543)

Facebook Like v.1.4
By BlueDevil

COMPATIBLE WITH SMF RC3 & RC4


Bug Fixes / Updates
1.) Created v.1.1 on April 23 2010
2.) Board permission support added April 24 2010
3.) Moved Like button to the post window December 2010
4.) Updated to RC4 December 2010



-This mod installs the Facebook "Like" button on every topic. When the Facebook user clicks on it, a link with title will be posted in the Facebook users Recent Activity wall.
-Board permissions also included.

NOTE***  Just like Facebook settings, you can only view the names of those you're friends with.

**Reply #2 has a couple php block add-ons for your portal



Pretty URL mod users

Open:
/Themes/default/Display.template.php

Find:
               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="300" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';


Replace with:
               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href="', $scripturl, '?topic=', $context['current_topic'], '" layout="standard" width="300" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';

Title: Re: Facebook Like Mod
Post by: Mick. on May 13, 2010, 01:30:28 PM
PHP blocks for your portal ;)   

*Replace yoursite.com in the code with your own domain.
*Adjust height & width to your likings
*Replace light for light themes or dark for dark themes.

Recent Activity:

The Activity Feed plugin displays the most interesting recent activity taking place on your site. Since the content is hosted by Facebook, the plugin can display personalized content whether or not the user has logged into your site. The activity feed displays stories both when users like  content on your site and when users share content from your site back to Facebook. If a user is logged into Facebook, the plugin will be personalized to highlight content from their friends. If the user is logged out, the activity feed will show recommendations from your site, and give the user the option to log in to Facebook.

The plugin is filled with activity from the user's friends. If there isn't enough friend activity to fill the plugin, it is backfilled with recommendations. If you set the recommendations param to true, the plugin is split in half, showing friends activity in the top half, and recommendations in the bottom half. If there is not enough friends activity to fill half of the plugin, it will include more recommendations.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bluedevilcustoms.com%2Fimages%2Frecentactivityblock.png&hash=2603d2b2536e78fa55842c56194bff8fdffa46ad)

// Facebook Recent Activity

echo '
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>

<div align="center"><fb:activity site="yoursite.com" width="170" height="300" header="true" colorscheme="light" /></fb:activity></div>';

//  End Of Facebook Recent Activity


Recommendations:

The Recommendations plugin shows personalized recommendations to your users. Since the content is hosted by Facebook, the plugin can display personalized recommendations whether or not the user has logged into your site. To generate the recommendations, the plugin considers all the social interactions with URLs from your site. For a logged in Facebook user, the plugin will give preference to and highlight objects her friends have interacted with.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bluedevilcustoms.com%2Fimages%2Frecommendationsblock.png&hash=5c2f0451abd582953bed032eb64954542132647e)


// Facebook Recommedations

echo '
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>

<div align="center"><fb:recommendations site="yoursite.com" width="170" height="300" header="true" colorscheme="light" /></fb:recommendations></div>';

//  End Of Facebook Recommendations



Comments

The Comments Box easily enables your users to comment on your site's content — whether it's for a web page, article, photo, or other piece of content. Then the user can share the comment on Facebook on their Wall and in their friends' streams.

To be used in PHP articles and/or pages.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bluedevilcustoms.com%2Fimages%2Fcommentblock.png&hash=e0a2c3fdcd32e1ed9711f8e0acc3f90ad3c52281)

// Facebook Comments

echo '
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>

<div align="center"><fb:comments></fb:comments></div>';

//  End Of Facebook Comments
Title: Re: Facebook Like Mod
Post by: gietl on May 13, 2010, 04:15:22 PM
First off, thanks for the modification.

So without looking at the code, is this just implementing the simple iframe that passes in a URL?  Any chance it will support application id's, use the js sdk and support open graph meta data? I know I know a lot of questions.

I have just been unwilling to tackle the more detailed approach myself. :D
Title: Re: Facebook Like Mod
Post by: Mick. on May 13, 2010, 04:25:08 PM
Quote from: gietl on May 13, 2010, 04:15:22 PM
First off, thanks for the modification.

So without looking at the code, is this just implementing the simple iframe that passes in a URL?  Any chance it will support application id's, use the js sdk and support open graph meta data? I know I know a lot of questions.

I have just been unwilling to tackle the more detailed approach myself. :D

It does not uses the iframe code.  It uses js sdk.

For open graph data, im looking into it;)

Title: Re: Facebook Like Mod
Post by: ~DS~ on May 13, 2010, 04:36:40 PM
So I have to choose either this or SA FB Connect because the like button wont show up with both of it installed.
Title: Re: Facebook Like Mod
Post by: Mick. on May 13, 2010, 04:42:05 PM
Quote from: Dismal Shadow on May 13, 2010, 04:36:40 PM
So I have to choose either this or SA FB Connect because the like button wont show up with both of it installed.

I dont use the SA's mod or seen it in action.  It does work fine with smf-media's facebook connect mod tho'.
Title: Re: Facebook Like Mod
Post by: Liam. on May 13, 2010, 04:46:36 PM
Quote from: Dismal Shadow on May 13, 2010, 04:36:40 PM
So I have to choose either this or SA FB Connect because the like button wont show up with both of it installed.

Which is why the gods brought us Parse, so we can manually install it - and having the source code here so we can look into why it doesn't work ;) I use SAFBC though, and want to use this aswell - so will most likely look into it myself...

Great mod though, glad it got accepted ;)
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 13, 2010, 05:21:52 PM
Quote from: bluedevil on May 13, 2010, 04:42:05 PM
Quote from: Dismal Shadow on May 13, 2010, 04:36:40 PM
So I have to choose either this or SA FB Connect because the like button wont show up with both of it installed.

I dont use the SA's mod or seen it in action.  It does work fine with smf-media's facebook connect mod tho'.
Because it doesn't have "share" button like smf-media's facebook does?
Title: Re: Facebook Like Mod
Post by: Mick. on May 13, 2010, 05:36:32 PM
Quote from: Dismal Shadow on May 13, 2010, 05:21:52 PM
Because it doesn't have "share" button like smf-media's facebook does?

Right.  smf-media's is just a connect.
Title: Re: Facebook Like Mod
Post by: Mick. on May 14, 2010, 09:33:43 AM
Reply #2 has some php blocks for your portal ;)
Title: Re: Facebook Like Mod
Post by: gietl on May 14, 2010, 03:52:31 PM
Quote from: bluedevil on May 13, 2010, 04:25:08 PM
Quote from: gietl on May 13, 2010, 04:15:22 PM
First off, thanks for the modification.

So without looking at the code, is this just implementing the simple iframe that passes in a URL?  Any chance it will support application id's, use the js sdk and support open graph meta data? I know I know a lot of questions.

I have just been unwilling to tackle the more detailed approach myself. :D

It does not uses the iframe code.  It uses js sdk.

For open graph data, im looking into it;)



Great, thanks for the response! Since it is using the sdk, do we have a place to enter our app_id in the admin interface?

The challenge on the meta tags will be:

Ensure your forum is using the URL structure you want, because after 10 likes it's "permanent."  Along with that, I'm certain FB will be expanding their categories.

Thanks again for releasing this and the continued work. Also, well done sight for the Avalanche club.
Title: Re: Facebook Like Mod
Post by: Afro on May 14, 2010, 03:55:26 PM
Another great one.. You guys Rock...
Title: Re: Facebook Like Mod
Post by: Mick. on May 14, 2010, 03:56:26 PM
Quote from: gietl on May 14, 2010, 03:52:31 PM

Great, thanks for the response! Since it is using the sdk, do we have a place to enter our app_id in the admin interface?

The challenge on the meta tags will be:

Ensure your forum is using the URL structure you want, because after 10 likes it's "permanent."  Along with that, I'm certain FB will be expanding their categories.

Thanks again for releasing this and the continued work. Also, well done sight for the Avalanche club.

Yes, in fact last night i made v.1.3 with all your suggestions.   Meta's, app id's, etc.

Im testing it at my site to see if in fact is working.
Title: Re: Facebook Like Mod
Post by: Mick. on May 14, 2010, 03:57:29 PM
Quote from: Afro on May 14, 2010, 03:55:26 PM
Another great one.. You guys Rock...

Thanx Afro ;)
Title: Re: Facebook Like Mod
Post by: mirahalo on May 14, 2010, 04:13:06 PM
Nice mod ;)  and nice blocks ;)


Quote from: Dismal Shadow on May 13, 2010, 04:36:40 PM
So I have to choose either this or SA FB Connect because the like button wont show up with both of it installed.

yes, currently the SA FB connect still works with the old facebook script, unfortunately  you need to remove any old facebook code before you can use facebook JavaScript SDK, otherwise it won't work.
Title: Re: Facebook Like Mod
Post by: Mick. on May 14, 2010, 04:20:40 PM
Quote from: 130860 on May 14, 2010, 04:13:06 PM
Nice mod ;)  and nice blocks ;)


Quote from: Dismal Shadow on May 13, 2010, 04:36:40 PM
So I have to choose either this or SA FB Connect because the like button wont show up with both of it installed.

yes, currently the SA FB connect still works with the old facebook script, unfortunately  you need to remove any old facebook code before you can use facebook JavaScript SDK, otherwise it won't work.

Thanx bro....

You know? I was thinking about that yesterday.  When i started writing the mod, i knew facebook's js sdk just came out and wondered if SA's mod was up to date since he released it way before facebook did their js sdk.

Thanx for verifying it.  I should've looked at his code i guess.
Title: Re: Facebook Like Mod
Post by: Afro on May 14, 2010, 06:47:13 PM
BD, if about 10 people click on the "like" button,
are they all supposed to be listed near the button ?
Title: Re: Facebook Like Mod
Post by: Mick. on May 14, 2010, 06:50:32 PM
Quote from: Afro on May 14, 2010, 06:47:13 PM
BD, if about 10 people click on the "like" button,
are they all supposed to be listed near the button ?

Only if you know them by name.  But it should show "10 people like this".   Since its being hosted from facebook, not always show.
Title: Re: Facebook Like Mod
Post by: Sudhakar Arjunan on May 14, 2010, 07:15:32 PM
Good Work Bluedevil.

I was a big fan of chevyavlanche club.

Maintained perfectly, Good Theme too.

Facebook Like Mod is so essential for social exchange. Thank you and will give a try today.
Title: Re: Facebook Like Mod
Post by: Mick. on May 14, 2010, 07:20:09 PM
Quote from: A.SK on May 14, 2010, 07:15:32 PM
Good Work Bluedevil.

I was a big fan of chevyavlanche club.

Maintained perfectly, Good Theme too.

Facebook Like Mod is so essential for social exchange. Thank you and will give a try today.

Thanx brother.    Try it. ;)
Title: Re: Facebook Like Mod
Post by: rd on May 15, 2010, 11:04:42 AM
This is very very nice... I wonder how I missed this when it was approved.

Good work man.
Title: Re: Facebook Like Mod
Post by: Mick. on May 16, 2010, 11:33:04 AM
Quote from: Royalduke on May 15, 2010, 11:04:42 AM
This is very very nice... I wonder how I missed this when it was approved.

Good work man.

Thanx RD;)
Title: Re: Facebook Like Mod
Post by: Mick. on May 16, 2010, 11:35:58 AM
For giggles, im working on version 1.3 that includes the Open Graph protocol.


Now "likes" should post not only the thread's name but also the website's name.

http://www.bluedevilcustoms.com/index.php/topic,87.msg239.html#msg239

It seems to be working. 

Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 09:34:34 PM
thanks for this

anyway to get this to work with pretty urls?

regardless of which topic i like, it shows the index and in facebook links to my homepage
Title: Re: Facebook Like Mod
Post by: Mick. on May 16, 2010, 09:55:26 PM
Quote from: kinderkyle on May 16, 2010, 09:34:34 PM
thanks for this

anyway to get this to work with pretty urls?

regardless of which topic i like, it shows the index and in facebook links to my homepage

Ah! the infamous pretty url's.   I didnt know folks still using that.  To be frank, i dont know anything about the mod.  I looked at the code and to be fair, it confused me.
Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 10:53:09 PM
I am attempting an uninstall of pretty urls so I can take advantage of this mod.
Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 11:21:25 PM
ok now its linking right but in facebook it is only showing

Kyle likes Discussing Indiana High School Baseball.
Remove
Kyle likes Discussing Indiana High School Baseball.
Remove
Kyle likes Discussing Indiana High School Baseball.

thats all it says, it doesnt show the topic title
Title: Re: Facebook Like Mod
Post by: Mick. on May 16, 2010, 11:29:17 PM
Quote from: kinderkyle on May 16, 2010, 11:21:25 PM
ok now its linking right but in facebook it is only showing

Kyle likes Discussing Indiana High School Baseball.
Remove
Kyle likes Discussing Indiana High School Baseball.
Remove
Kyle likes Discussing Indiana High School Baseball.

thats all it says, it doesnt show the topic title

Isnt the topic title "Discussing Indiana High School Baseball"?
Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 11:32:55 PM
no that is the board title.... i used 3 different topic titles to test it and they all showed the same
Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 11:36:16 PM
ok i might have figured it out
Title: Re: Facebook Like Mod
Post by: Mick. on May 16, 2010, 11:42:59 PM
I just searched your forum on google and liked a topic. it shows like this:

Bluedevil likes Jasper Sectional on yoursite.com.     (I ommited your domain.)

and

Bluedevil likes West Vigo 11, Georgetown, IL 1/ 5 innings- GAME 2.
Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 11:44:53 PM
I think i fixed it,
thanks for your help
Title: Re: Facebook Like Mod
Post by: Mick. on May 16, 2010, 11:45:36 PM
Quote from: kinderkyle on May 16, 2010, 11:44:53 PM
I think i fixed it,
thanks for your help

What was wrong?    Also i noticed you have another like button on the header. Is that something else?
Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 11:51:31 PM
Yes i had that up there and was passing

   <meta property="og:title" content="Discussing Indiana High School Baseball"/>
   <meta property="og:site_name" content="mysite.com"/>

where it saw title and just overwrote the topic each time.... I had that code in there for the overall site like button

Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 11:52:55 PM
so the 2 that you selected as like are gone now, it says,    Like
Be the first of your friends to like this.


did you remove them or is it not adding them up correctly?
Title: Re: Facebook Like Mod
Post by: kinderkyle on May 16, 2010, 11:54:48 PM
yeah, for some reason it isn't adding them up correctly,
i had one that i liked and now they are gone, saying the same thing Like
Be the first of your friends to like this.
Title: Re: Facebook Like Mod
Post by: !RFAN on May 17, 2010, 02:57:50 AM
i uninstalled pretty urls and then installed this mod... but i cant see any thing on my forum like u r saying i am suppose to see after installing this mod
i enabled the board for this md..
whats wrong??
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 03:00:47 AM
Quote from: amigozone on May 17, 2010, 02:57:50 AM
i uninstalled pretty urls and then installed this mod... but i cant see any thing on my forum like u r saying i am suppose to see after installing this mod
i enabled the board for this md..
whats wrong??
Admin> modification settings> Miscellaneous> [FacebookLike] Enable Topic Like in your forum? Checked
Title: Re: Facebook Like Mod
Post by: !RFAN on May 17, 2010, 03:04:39 AM
yess it is checked... i'm not an idiot.. i will request for help only when i am unable to solve the issue after following all required steps...
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 03:07:44 AM
Quote from: amigozone on May 17, 2010, 03:04:39 AM
yess it is checked... i'm not an idiot.. i will request for help only when i am unable to solve the issue after following all required steps...
Then don't post for help in the first place until you needed to. Geez.
Title: Re: Facebook Like Mod
Post by: !RFAN on May 17, 2010, 03:27:06 AM
dude i need help as i have followed all required steps but still cant see this mod on topics...??
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 03:35:52 AM
Please do tell, any mods installed, are you using custom theme, what browser, any errors in the log?
Title: Re: Facebook Like Mod
Post by: !RFAN on May 17, 2010, 05:29:15 AM
i have installed "add this" and "social bookmark"
using custom theme and there was one error while installing but i did it manually..it was easy
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 08:41:13 AM
Quote from: amigozone on May 17, 2010, 02:57:50 AM
i uninstalled pretty urls and then installed this mod... but i cant see any thing on my forum like u r saying i am suppose to see after installing this mod
i enabled the board for this md..
whats wrong??

Does your custom theme have a display.template.php?
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 10:17:59 AM
Hey guys, for Facebook Like Mod v1.3 using open graph protocol, i need all the "likes" i can get from you for testing purposes. ;)

http://www.bluedevilcustoms.com/index.php/topic,29.0.html

Thanx!
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 10:23:01 AM
Quote from: bluedevil on May 17, 2010, 10:17:59 AM
Hey guys, for Facebook Like Mod v1.3 using open graph protocol, i need all the "likes" i can get from you for testing purposes. ;)

http://www.bluedevilcustoms.com/index.php/topic,29.0.html

Thanx!
Done.
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 10:28:09 AM
Quote from: Dismal Shadow on May 17, 2010, 10:23:01 AM
Done.

Did it show as "yourname likes SimpleDesk for SMF on bluedevil customs." in your FB profile?
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 10:29:09 AM
Quote from: bluedevil on May 17, 2010, 10:28:09 AM
Quote from: Dismal Shadow on May 17, 2010, 10:23:01 AM
Done.

Did it show as "yourname likes SimpleDesk for SMF on bluedevil customs." in your FB profile?
Siii.  :D
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 10:34:46 AM
Quote from: Dismal Shadow on May 17, 2010, 10:29:09 AM
Siii.  :D

Great!, everytime a topic is "liked", a new page in FB is created.

http://www.facebook.com/pages/SimpleDesk-for-SMF/122566027772681#!/pages/SimpleDesk-for-SMF/122566027772681
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 10:36:33 AM
Ouch, hope you can figure and squash this bug.
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 10:38:00 AM


Where you able to see the simpledesk page in FB?   
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 10:41:46 AM
Quote from: bluedevil on May 17, 2010, 10:38:00 AM


Where you able to see the simpledesk page in FB?
Yes, the url is this:
http://www.facebook.com/pages/SimpleDesk/284468314991?ref=ts
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 10:50:06 AM
Quote from: Dismal Shadow on May 17, 2010, 10:41:46 AM
Quote from: bluedevil on May 17, 2010, 10:38:00 AM


Where you able to see the simpledesk page in FB?
Yes, the url is this:
http://www.bluedevilcustoms.com/index.php/topic,29.0.html?PHPSESSID=80o21qq9lo605s4825oah356g7

Thats the topic in my forum.

I meant the facebook page for simpledesk.
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 10:53:17 AM
Quote from: bluedevil on May 17, 2010, 10:50:06 AM
Quote from: Dismal Shadow on May 17, 2010, 10:41:46 AM
Quote from: bluedevil on May 17, 2010, 10:38:00 AM


Where you able to see the simpledesk page in FB?
Yes, the url is this:
http://www.bluedevilcustoms.com/index.php/topic,29.0.html?PHPSESSID=80o21qq9lo605s4825oah356g7

Thats the topic in my forum.

I meant the facebook page for simpledesk.
Oops, edited.
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 10:55:22 AM
Yes, that simpledesk's official page but,....

Where does this link takes you?

http://www.facebook.com/pages/SimpleDesk-for-SMF/122566027772681#!/pages/SimpleDesk-for-SMF/122566027772681
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 17, 2010, 10:58:55 AM
Quote from: bluedevil on May 17, 2010, 10:55:22 AM
Yes, that simpledesk's official page but,....

Where does this link takes you?

http://www.facebook.com/pages/SimpleDesk-for-SMF/122566027772681#!/pages/SimpleDesk-for-SMF/122566027772681
It takes me to your topic
http://www.bluedevilcustoms.com/index.php/topic,29.0.html
But in this url it shows
http://www.bluedevilcustoms.com/index.php/topic,29.0.html?PHPSESSID=80o21qq9lo605s4825oah356g7#!/pages/SimpleDesk-for-SMF/122566027772681

I am guessing it's ok?
Title: Re: Facebook Like Mod
Post by: Mick. on May 17, 2010, 11:12:20 AM
Quote from: Dismal Shadow on May 17, 2010, 10:58:55 AM
Quote from: bluedevil on May 17, 2010, 10:55:22 AM
Yes, that simpledesk's official page but,....

Where does this link takes you?

http://www.facebook.com/pages/SimpleDesk-for-SMF/122566027772681#!/pages/SimpleDesk-for-SMF/122566027772681
It takes me to your topic
http://www.bluedevilcustoms.com/index.php/topic,29.0.html
But in this url it shows
http://www.bluedevilcustoms.com/index.php/topic,29.0.html?PHPSESSID=80o21qq9lo605s4825oah356g7#!/pages/SimpleDesk-for-SMF/122566027772681

I am guessing it's ok?

That's what i thought.

V.1.3 has in admin--->miscellaneous---> a place to add your App ID# and your facebook's ID # for admin purposes in FB.   When users "like" a topic, a page is created in facebook just like any other personal page you create in Facebook.   ....but, only admins can see it to see how many folks liked it and you can also see the graph in the nsights page.   Also you could stream upadates to those who liked it.

No bug.  FB says:
Some sites may have hundreds or even thousands of pages with Open Graph protocol meta data.
Title: Re: Facebook Like Mod
Post by: !RFAN on May 18, 2010, 05:58:52 AM
Quote from: bluedevil on May 17, 2010, 08:41:13 AM
Quote from: amigozone on May 17, 2010, 02:57:50 AM
i uninstalled pretty urls and then installed this mod... but i cant see any thing on my forum like u r saying i am suppose to see after installing this mod
i enabled the board for this md..
whats wrong??

Does your custom theme have a display.template.php?
no,
it uses default
Title: Re: Facebook Like Mod
Post by: Mick. on May 18, 2010, 08:50:57 AM
Quote from: amigozone on May 18, 2010, 05:58:52 AM
Quote from: bluedevil on May 17, 2010, 08:41:13 AM
Quote from: amigozone on May 17, 2010, 02:57:50 AM
i uninstalled pretty urls and then installed this mod... but i cant see any thing on my forum like u r saying i am suppose to see after installing this mod
i enabled the board for this md..
whats wrong??

Does your custom theme have a display.template.php?
no,
it uses default

In admin---->configuration---->modification settings---->miscellaneous,   tick the box.
Title: Re: Facebook Like Mod
Post by: william777 on May 18, 2010, 05:58:26 PM
Does this mod work for SMF 1.1.11?
Title: Re: Facebook Like Mod
Post by: Afro on May 20, 2010, 08:23:11 AM
Quote from: william777 on May 18, 2010, 05:58:26 PM
Does this mod work for SMF 1.1.11?

Yes, it works if you upgrade it to smf 2.0 rc3
Title: Re: Facebook Like Mod
Post by: william777 on May 21, 2010, 05:24:35 AM
Quote from: Afro on May 20, 2010, 08:23:11 AM

Yes, it works if you upgrade it to smf 2.0 rc3

In other words, it will NOT work for SMF 1.1.11, only works for SMF 2.0 rc3.
Title: Re: Facebook Like Mod
Post by: Afro on May 21, 2010, 05:51:58 AM
Yep. You understand things easily. Good
Title: Re: Facebook Like Mod
Post by: derby on May 22, 2010, 05:19:25 AM
   1.   Execute Code   installFBdatabase.php   
   2.   Execute Modification   ./Sources/Display.php   Test successful
   3.   Execute Modification   E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/Display.template.php   Test successful
   4.   Execute Modification   E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/ManageBoards.template.php   Test successful
   5.   Execute Modification   ./Sources/ManageSettings.php   Test failed
   1.   Add After   ./Sources/ManageSettings.php   Test failed
   6.   Execute Modification   ./Sources/ManageBoards.php   Test successful
   7.   Execute Modification   ./Sources/Subs-Boards.php   Test successful
   8.   Execute Modification   ./Sources/Load.php   Test successful
   9.   Execute Modification   E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/languages/Modifications.english.php   Test successful
   10.   Execute Modification   E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/languages/Modifications.english-utf8.php   Test successful
SOLUTION PLZ
Title: Re: Facebook Like Mod
Post by: Afro on May 22, 2010, 05:52:05 AM
It means some other mod already modified that part of the Source/managesettings.php file.
Open the /source/managesettings.php file and add the appropriate code where it should be. then install the mod.
it will work.
You can send me the file here to add the codes or send it to my forum.
Title: Re: Facebook Like Mod
Post by: Stigmartyr on May 23, 2010, 11:48:12 PM
Stig here reporting that if you still run SMF 2 RC2 you can still use this mod with ease. +1

Thanks Blue Devil!!!  You rock man.  SMF ftw once again.  Way to come through for the community bud.
Title: Re: Facebook Like Mod
Post by: Mayhem30 on May 24, 2010, 02:34:30 AM
For SMF 1.1.11 ....

Edit your Display.template.php file and look for :

<td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>

Add this code after that line :

<td style="width: 80px; height: 21px; padding-bottom: 4px; padding-left: 5px;" valign="bottom"><iframe src="http://www.facebook.com/plugins/like.php?href=', $scripturl, '?topic=', $context['current_topic'], '&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px"></iframe></td>


And  .. that's it!
Title: Re: Facebook Like Mod
Post by: Mayhem30 on May 24, 2010, 02:36:50 AM
I'm testing the mod on SMF 2.0 .. and I noticed since your using the FBML version of the 'like' button, the button does not show until every image on that page is fully loaded (waits for users avatars / signatures, etc).

Has anyone else had this issue? The <iframe> code does not do this.
Title: Re: Facebook Like Mod
Post by: Stigmartyr on May 24, 2010, 10:49:36 AM
Quote from: Mayhem30 on May 24, 2010, 02:36:50 AM
I'm testing the mod on SMF 2.0 .. and I noticed since your using the FBML version of the 'like' button, the button does not show until every image on that page is fully loaded (waits for users avatars / signatures, etc).

Has anyone else had this issue? The <iframe> code does not do this.

Without some wider UAT I'd tend to agree with you, but I'll have to see what the experience is like in Safari.  I've used it in IE/Chrome/Opera.  Seem like it loads towards the end.  Opera won't show the avatar icons (hidden by div layer?).



I also noticed that while clicking the 'Like' button will post the topic name to Facebook, it does not post the site name for me.
Title: Re: Facebook Like Mod
Post by: mirahalo on May 24, 2010, 11:40:40 AM
Quote from: Mayhem30 on May 24, 2010, 02:36:50 AM
I'm testing the mod on SMF 2.0 .. and I noticed since your using the FBML version of the 'like' button, the button does not show until every image on that page is fully loaded (waits for users avatars / signatures, etc).

Has anyone else had this issue? The <iframe> code does not do this.


facebook does this on purpose to avoid errors on your page,   the like button will only load until the page is finish,  that way if facebook has problems or its down your page still will be completely functional.
Title: Re: Facebook Like Mod
Post by: Mayhem30 on May 24, 2010, 12:51:35 PM
Quote
I also noticed that while clicking the 'Like' button will post the topic name to Facebook, it does not post the site name for me.

To get the site name to appear, you need to modify your index.template.php file and add this in the <head> section :

<meta property="og:site_name" content="Example.com Community"/>
Title: Re: Facebook Like Mod
Post by: kizer on May 24, 2010, 04:55:46 PM
I just checked out both of your Forums Blue Devil and I did not see this Like This button other than used in your Screen Shots.  I'm assuming you have to be logged in correct? The reason I'm asking it would be great if you could get non members "guests" to use it and share their Likes with their friends too, unless I'm missing the point of this mod.
Title: Re: Facebook Like Mod
Post by: rocknroller on May 24, 2010, 05:31:20 PM
Greetings!
looks like great mod! Is there any chance to install this mod 2.0 RC 2?
Title: Re: Facebook Like Mod
Post by: shadowcrews on May 24, 2010, 10:29:13 PM
its not supported on RC2 ?
Title: Re: Facebook Like Mod
Post by: protonxl on May 24, 2010, 10:38:06 PM
is there a way to set it up for all the boards?
i kinda have alot of boards...
Title: Re: Facebook Like Mod
Post by: - danny on May 30, 2010, 08:16:03 PM
nice mod. would love to see this work for 1.1.11.

cheers.

Title: Re: Facebook Like Mod
Post by: mirahalo on May 30, 2010, 08:45:08 PM
rocknroller and  shadowcrews   try emulate version Rc 2 when install the mod.


@~aLEX   there are other options for 1.1.x  try search the mod site,  but it all depends on the author if he want to adapt his mod to work on 1.1.x series ;)
Title: Re: Facebook Like Mod
Post by: divinicus on May 31, 2010, 09:17:03 AM
I cannot get the plugin to work, here is my first post (RC3), but no "FB Like" buttons!

I performed a straight install and ticked the "enable" button in the admin/misc. settings as instructed.

Thanks for your help!
Title: Re: Facebook Like Mod
Post by: Mick. on May 31, 2010, 11:37:48 AM
Quote from: divinicus on May 31, 2010, 09:17:03 AM
I cannot get the plugin to work, here is my first post (RC3), but no "FB Like" buttons!

I performed a straight install and ticked the "enable" button in the admin/misc. settings as instructed.

Thanks for your help!

You need to also make edits if youre using a custom theme.
Title: Re: Facebook Like Mod
Post by: ~DS~ on May 31, 2010, 11:41:18 AM
Any update on this yet?
Title: Re: Facebook Like Mod
Post by: Mick. on May 31, 2010, 11:44:46 AM
Quote from: Dismal Shadow on May 31, 2010, 11:41:18 AM
Any update on this yet?

Not really... been busy with work, house and great weather outdoors. By the time i open my laptop, i fall asleep on startup.

Im home now so i will look into it again soon ;)
Title: Re: Facebook Like Mod
Post by: divinicus on May 31, 2010, 01:19:05 PM
It works, the fix was simple Admin/Boards/Modify and enable FLM there!

1,2, 3 works like magic and thank you SO much!

I'm going to try some of your other hard-coded FB tools too!

Enjoy your holiday!
Title: Re: Facebook Like Mod
Post by: divinicus on May 31, 2010, 03:01:00 PM
I thought it worked, but when I hit the "Like" button, it says "Error" in red and reports:

.....p?topic=2layout%3D%22standard%22 could not be reached

Can you help?

Thanks!
Title: Re: Facebook Like Mod
Post by: - danny on May 31, 2010, 04:15:07 PM
Quote from: 130860 on May 30, 2010, 08:45:08 PM
@~aLEX   there are other options for 1.1.x  try search the mod site... ;)

gracias.
Title: Re: Facebook Like Mod
Post by: anakmacan on May 31, 2010, 04:17:22 PM
Just wanna tell, the Like Button doesnt appear (after ive made manual changes to display.template.php and activated it on modif setting & board setting in admin section). , and im using the latest FB Connect mod (version 0.2.0)

Title: Re: Facebook Like Mod
Post by: ~DS~ on May 31, 2010, 04:26:57 PM
Quote from: anakmacan on May 31, 2010, 04:17:22 PM
Just wanna tell, the Like Button doesnt appear (after ive made manual changes to display.template.php and activated it on modif setting & board setting in admin section). , and im using the latest FB Connect mod (version 0.2.0)
http://www.simplemachines.org/community/index.php?topic=381323.msg2628002#msg2628002
Title: Re: Facebook Like Mod
Post by: anakmacan on May 31, 2010, 04:35:00 PM
Quoteto remove any old facebook code
.

What are they ?


So meantime i can only choose one, SA FB Connect mod or this mod. Hmm.. tough choice, both are useful mods...
Title: Re: Facebook Like Mod
Post by: Cutter65 on May 31, 2010, 08:53:18 PM
Quote from: divinicus on May 31, 2010, 03:01:00 PM
I thought it worked, but when I hit the "Like" button, it says "Error" in red and reports:

.....p?topic=2layout%3D%22standard%22 could not be reached

Can you help?

Thanks!

Im getting the same error.

forum/index.php?topic=2142layout%3D%22standard%22 could not be reached.
Title: Re: Facebook Like Mod
Post by: Stigmartyr on June 01, 2010, 10:47:54 AM
Quote from: Cutter65 on May 31, 2010, 08:53:18 PM
Quote from: divinicus on May 31, 2010, 03:01:00 PM
I thought it worked, but when I hit the "Like" button, it says "Error" in red and reports:

.....p?topic=2layout%3D%22standard%22 could not be reached

Can you help?

Thanks!

Im getting the same error.

forum/index.php?topic=2142layout%3D%22standard%22 could not be reached.

This started happening to me as well this morning.  I'm not sure if it is just this morning, as I didn't click it yesterday I dont think..  But either way.  I was thinking Facebook.com was having a SNAFU, then I thought I'd check here for other reports, and well.. there we go.
Title: Re: Facebook Like Mod
Post by: mirahalo on June 01, 2010, 10:54:06 AM
its not this mods, its facebook,   sometimes  it gets too busy and shows that error, normally after a few hours or maybe a day it gets back to normal ;)
Title: Re: Facebook Like Mod
Post by: ukhalik2 on June 01, 2010, 04:27:30 PM
i have only installed this fb mod,
But the fb like button appears no where, checked many posts but no where.. Although it said that mod installed successfully.. :(
Any help?
Title: Re: Facebook Like Mod
Post by: Stigmartyr on June 01, 2010, 08:03:42 PM
Quote from: 130860 on June 01, 2010, 10:54:06 AM
its not this mods, its facebook,   sometimes  it gets too busy and shows that error, normally after a few hours or maybe a day it gets back to normal ;)

Thanks!  Seems to be working again just fine.
Title: Re: Facebook Like Mod
Post by: DEK24 on June 02, 2010, 01:25:06 AM
I also installed this and nothing appears. Everything installed properly and I activated but nothing.
Title: Re: Facebook Like Mod
Post by: coolfx350 on June 02, 2010, 09:11:54 AM
any plans of making it for V1.1.11?
Title: Re: Facebook Like Mod
Post by: - danny on June 02, 2010, 03:00:56 PM
ukhalik2 & DEK24

are either of you using custom themes?
Title: Re: Facebook Like Mod
Post by: DEK24 on June 02, 2010, 03:50:09 PM
Quote from: ~aLEX on June 02, 2010, 03:00:56 PM
ukhalik2 & DEK24

are either of you using custom themes?

I am.

http://johnnyjungle.com/forum
Title: Re: Facebook Like Mod
Post by: - danny on June 02, 2010, 04:13:03 PM
dek24, make sure that you make the required edits for your theme.

i believe, you want to navigate to: /Themes/YOURTHEME/Display.template.php

find:
<span id="author">', $txt['author'], '</span>

replace with:

<span id="author">', $txt['author'], '</span>';
//Facebook Like
if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
echo'
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: \'your app id\', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement(\'script\'); e.async = true;
e.src = document.location.protocol +
\'//connect.facebook.net/en_US/all.js\';
document.getElementById(\'fb-root\').appendChild(e);
}());
</script>
<!-- Facebook Like Button -->
<span style="float:right; margin-top:4px;">
<fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="350" action="like" colorscheme="light" /></fb:like>
</span>
<!-- End of Facebook Like Button -->';
echo'


that should work for SMF 2.0 RC3; however, please back up your database first, if you're unsure of how to do manual edits.
Title: Re: Facebook Like Mod
Post by: ukhalik2 on June 03, 2010, 03:46:16 AM
Quote from: DEK24 on June 02, 2010, 03:50:09 PM
Quote from: ~aLEX on June 02, 2010, 03:00:56 PM
ukhalik2 & DEK24

are either of you using custom themes?

I am.

http://johnnyjungle.com/forum

No I am not using custom theme,
i am using default curve theme.

@~aLEX: the above function is already included in my display.template.php

help anyone plz.
Title: Re: Facebook Like Mod
Post by: DEK24 on June 04, 2010, 03:42:11 PM
I just didn't check off the box in board permissions. Now it works.
Title: Re: Facebook Like Mod
Post by: ukhalik2 on June 05, 2010, 03:13:06 AM
Quote from: DEK24 on June 04, 2010, 03:42:11 PM
I just didn't check off the box in board permissions. Now it works.
in my case, it was checked and still wont work :(
i cant understand where the problem is?
Title: Re: Facebook Like Mod
Post by: derby on June 07, 2010, 03:42:06 PM
Quote from: Afro on May 22, 2010, 05:52:05 AM
It means some other mod already modified that part of the Source/managesettings.php file.
Open the /source/managesettings.php file and add the appropriate code where it should be. then install the mod.
it will work.
You can send me the file here to add the codes or send it to my forum.
here it is
Title: Re: Facebook Like Mod
Post by: Afro on June 08, 2010, 04:36:45 AM
replace it with this file and install the mod.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 08, 2010, 05:18:34 AM
5.   Execute Modification   .Sources/ManageSettings.php   Test failed
   1.   Add After   .Sources/ManageSettings.php   Test failed

Same error

Title: Re: Facebook Like Mod
Post by: Afro on June 08, 2010, 07:22:25 AM
use code editor like crimson or notepad++ to open that file.
Then locate this code

// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

and then add this code after it.



array('check', 'facebookLike_allow'),
'',



Then install the mod, you will be fine.
Title: Re: Facebook Like Mod
Post by: derby on June 08, 2010, 07:39:58 AM
Quote from: Afro on June 08, 2010, 04:36:45 AM
replace it with this file and install the mod.
i have replaced it still not working
Title: Re: Facebook Like Mod
Post by: Afro on June 08, 2010, 12:08:27 PM
Quote from: derby on June 08, 2010, 07:39:58 AM
Quote from: Afro on June 08, 2010, 04:36:45 AM
replace it with this file and install the mod.
i have replaced it still not working

Did you add your facebook application number to the modification through your admin cpanel ?
Title: Re: Facebook Like Mod
Post by: uniektekniek on June 09, 2010, 12:05:25 AM
great mod... works perfectly for me.. except the php blocks are completely blank for some reason.. i have changed the yoursite.com to my domain.. is there anything else im missing that would make this work?
Title: Re: Facebook Like Mod
Post by: MATTEK on June 13, 2010, 02:46:13 PM
Quote5.     Execute Modification     .Sources/ManageSettings.php     Test failed
      1.    Add After    .Sources/ManageSettings.php    Test failed

Any ideas?
Title: Re: Facebook Like Mod
Post by: derby on June 13, 2010, 03:42:26 PM
Quote from: Afro on June 08, 2010, 12:08:27 PM
Quote from: derby on June 08, 2010, 07:39:58 AM
Quote from: Afro on June 08, 2010, 04:36:45 AM
replace it with this file and install the mod.
i have replaced it still not working

Did you add your facebook application number to the modification through your admin cpanel ?
U have not been able to install the application,so i will be able to add d facebook application number
Title: Re: Facebook Like Mod
Post by: DEK24 on June 13, 2010, 03:50:10 PM
Is there a way to change the "Be the first to like this" font to white as opposed to black?
Title: Re: Facebook Like Mod
Post by: Deadairdave on June 16, 2010, 03:58:24 AM
Okie, gonna ask a daft question.  ;)

The 'Comments Box' code in the 2nd reply on page 1, is that for making a 'comments' box on FaceBook; and if so, where do you add that code??

I've just set-up a 2nd FB account to see what the 'links' look like, as it shows up differently on 'my' account, I guess because it is me 'liking' the topics on my forum, lol.

Don't get me wrong, the Mod is working perfectly for me, just curious about that 'Comments Box' code and where it appears? 

I'm currently using SMF 2.0 RC3, 'default' template, with no portal added.

Thanks for you help,

Dave.
Title: Re: Facebook Like Mod
Post by: Mick. on June 16, 2010, 08:04:06 PM
Quote from: Deadairdave on June 16, 2010, 03:58:24 AM
Okie, gonna ask a daft question.  ;)

The 'Comments Box' code in the 2nd reply on page 1, is that for making a 'comments' box on FaceBook; and if so, where do you add that code??

I've just set-up a 2nd FB account to see what the 'links' look like, as it shows up differently on 'my' account, I guess because it is me 'liking' the topics on my forum, lol.

Don't get me wrong, the Mod is working perfectly for me, just curious about that 'Comments Box' code and where it appears? 

I'm currently using SMF 2.0 RC3, 'default' template, with no portal added.

Thanks for you help,

Dave.

Hey Dave,   I use the "comments box" on any html or php page.   I have created those pages with the portals.

Now, in your case, you probably dont have much use for it.     You could, if your member profiles are public, you can add the comments box to it.  If they're private,  Then no guests can see it unless theyre logged on.
Title: Re: Facebook Like Mod
Post by: Tearstar on June 18, 2010, 04:09:56 PM
Quote from: bluedevil on May 17, 2010, 11:12:20 AM
Quote from: Dismal Shadow on May 17, 2010, 10:58:55 AM
Quote from: bluedevil on May 17, 2010, 10:55:22 AM
Yes, that simpledesk's official page but,....

Where does this link takes you?

http://www.facebook.com/pages/SimpleDesk-for-SMF/122566027772681#!/pages/SimpleDesk-for-SMF/122566027772681
It takes me to your topic
http://www.bluedevilcustoms.com/index.php/topic,29.0.html
But in this url it shows
http://www.bluedevilcustoms.com/index.php/topic,29.0.html?PHPSESSID=80o21qq9lo605s4825oah356g7#!/pages/SimpleDesk-for-SMF/122566027772681

I am guessing it's ok?

That's what i thought.

V.1.3 has in admin--->miscellaneous---> a place to add your App ID# and your facebook's ID # for admin purposes in FB.   When users "like" a topic, a page is created in facebook just like any other personal page you create in Facebook.   ....but, only admins can see it to see how many folks liked it and you can also see the graph in the nsights page.   Also you could stream upadates to those who liked it.

No bug.  FB says:
Some sites may have hundreds or even thousands of pages with Open Graph protocol meta data.

I'm so glad I decided to look at this mod's thread lines . . .

I made a like button mod for another application and wondered why I was ending up with 100 pages on facebook . . . .lol . . . I half way expected to get blacklisted by facebook . . . Thanks for that info.

Title: Re: Facebook Like Mod
Post by: Mick. on June 18, 2010, 04:25:48 PM
Quote from: Tearstar on June 18, 2010, 04:09:56 PM

I'm so glad I decided to look at this mod's thread lines . . .

I made a like button mod for another application and wondered why I was ending up with 100 pages on facebook . . . .lol . . . I half way expected to get blacklisted by facebook . . . Thanks for that info.



Quiote frankly i find it useless on making a new page on facebook everytime someone likes a topic.  But the purpose is that, to view the graph, how many liked it and what not.

Im releasing 1.3 tomorrow. 
Title: Re: Facebook Like Mod
Post by: Tearstar on June 18, 2010, 04:35:03 PM
Have you worked out the SAFBC compatability, or are you not even considering it? I tried installing your mod, made the manual edits and got no like button . . . I understand it's due to using SAFBC but if I remove it, I loose all the other Facebook stuff I use.



Title: Re: Facebook Like Mod
Post by: Mick. on June 18, 2010, 04:42:07 PM
Quote from: Tearstar on June 18, 2010, 04:35:03 PM
Have you worked out the SAFBC compatability, or are you not even considering it? I tried installing your mod, made the manual edits and got no like button . . . I understand it's due to using SAFBC but if I remove it, I loose all the other Facebook stuff I use.


SA's mod uses an older version of Facebook, that's why we're not compatible.   I dont know if he are in the process of updating it tho'.

....and i dont know if its even available from Facebook to use the older code since they made lots of changes in the past 2 months.
Title: Re: Facebook Like Mod
Post by: ~DS~ on June 18, 2010, 04:44:20 PM
Quote from: bluedevil on June 18, 2010, 04:42:07 PM
Quote from: Tearstar on June 18, 2010, 04:35:03 PM
Have you worked out the SAFBC compatability, or are you not even considering it? I tried installing your mod, made the manual edits and got no like button . . . I understand it's due to using SAFBC but if I remove it, I loose all the other Facebook stuff I use.


SA's mod uses an older version of Facebook, that's why we're not compatible.   I dont know if he are in the process of updating it tho'.

....and i dont know if its even available from Facebook to use the older code since they made lots of changes in the past 2 months.
He is in process of updating it. :)
Title: Re: Facebook Like Mod
Post by: Mick. on June 18, 2010, 04:46:38 PM
Quote from: DS™ on June 18, 2010, 04:44:20 PM
He is in process of updating it. :)

Thats's good news!
Title: Re: Facebook Like Mod
Post by: Tearstar on June 18, 2010, 05:14:40 PM
According to Facebook they will still allow use of the old way, until the whole change to OpenGraph is more complete, I believe I read somewhere they will support it for another year, but don't quote me on the time frame
Title: Re: Facebook Like Mod
Post by: Mick. on June 18, 2010, 09:41:11 PM
FB Like v.1.3 added to mod site..  Now it uses the open graph protocol.

When a user likes a topic, it will create a new fan page for the topic.  You may end up with thousands of fan pages but thats ok.

In admin, ... add your app ID, Facebook User ID and select which boards you want folks to like topics.


Uninstall older version 1.2 before installing 1.3!
Title: Re: Facebook Like Mod
Post by: ~DS~ on June 18, 2010, 10:57:43 PM
QuoteWhen a user likes a topic, it will create a new fan page for the topic.  You may end up with thousands of fan pages but thats ok.
What the...? Is that a bug?
Title: Re: Facebook Like Mod
Post by: Mick. on June 18, 2010, 11:26:43 PM
Quote from: DS™ on June 18, 2010, 10:57:43 PM
QuoteWhen a user likes a topic, it will create a new fan page for the topic.  You may end up with thousands of fan pages but thats ok.
What the...? Is that a bug?

No.  http://www.simplemachines.org/community/index.php?topic=381323.msg2631740#msg2631740


Remember one thing,...... blogs and forums have thousands of pages with "like" on them.  Thats why a new fan page is created to match the likes.  They become fans of what they liked.    Then on FB, you can update your users with content or whatever is on your mind.

Title: Re: Facebook Like Mod
Post by: Mick. on June 18, 2010, 11:43:30 PM
DS, for testing purposes go ahead an "like" this thread:

http://www.bluedevilcustoms.com/devsite/index.php/topic,7.msg13.html#new


See if you can see it in you FB account settings in application pages or you fan pages list.   If you cant see it, then is just a page for admins to see the demographics of such threads liked.
Title: Re: Facebook Like Mod
Post by: ~DS~ on June 19, 2010, 12:30:37 AM
Quote from: bluedevil on June 18, 2010, 11:43:30 PM
DS, for testing purposes go ahead an "like" this thread:

http://www.bluedevilcustoms.com/devsite/index.php/topic,7.msg13.html#new


See if you can see it in you FB account settings in application pages or you fan pages list.   If you cant see it, then is just a page for admins to see the demographics of such threads liked.
"You are not allowed to access this section"
Don't worry, I have already tested.  :)
Title: Re: Facebook Like Mod
Post by: sinadam on June 19, 2010, 02:36:46 PM
does this only work on new topics after installation or it will work with topics already created?

I've installed this, enabled it, entered my Application ID and Profile ID (I'm supposed to leave the first box blank right?) but I don't see any "Like" buttons on my topics.

Website: http://www.brugamers.com (http://www.brugamers.com)
Title: Re: Facebook Like Mod
Post by: Mick. on June 19, 2010, 02:42:15 PM
Quote from: sinadam on June 19, 2010, 02:36:46 PM
does this only work on new topics after installation or it will work with topics already created?

I've installed this, enabled it, entered my Application ID and Profile ID (I'm supposed to leave the first box blank right?) but I don't see any "Like" buttons on my topics.

Website: http://www.brugamers.com (http://www.brugamers.com)

It works on all topics new or old.

Remember,  you have to activate which boards you want the FB button to show.

In admin---->forum---->boards--->modify boards

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=381323.0;attach=145071;image)
Title: Re: Facebook Like Mod
Post by: sinadam on June 19, 2010, 02:54:22 PM
Quote from: bluedevil on June 19, 2010, 02:42:15 PM

It works on all topics new or old.

Remember,  you have to activate which boards you want the FB button to show.

In admin---->forum---->boards--->modify boards


Found it. Turns out the options appeared at the top of the page. Must be my theme.
But now the "like" buttons look weird. There are two "like" buttons at the top of the page and it somehow expands the user info area and pushes the post area smaller.

See: http://www.brugamers.com/index.php?topic=1409.0
Title: Re: Facebook Like Mod
Post by: Mick. on June 19, 2010, 03:00:03 PM
Is your theme suppose to look like that?  It seems as tho is missing images?


Anywho,  open the displaytemplate.php and remove one instance of the facebook like mod as it's installed twice.  Use the parser in the mod section.


I take it you used the previous version and installed the latest?  You supposed to uninstall the old version and then upload the new.
Title: Re: Facebook Like Mod
Post by: sinadam on June 19, 2010, 03:15:10 PM
Quote from: bluedevil on June 19, 2010, 03:00:03 PM
Is your theme suppose to look like that?  It seems as tho is missing images?

Yeah, the current theme is still on beta. Front page looks fine but the rest of the boards look a bit weird. It's still a work in progress but I'd like to add a few packages first before I finish the theme.


Quote from: bluedevil on June 19, 2010, 03:00:03 PM
I take it you used the previous version and installed the latest?  You supposed to uninstall the old version and then upload the new.

Funny. I have no idea how that happened. 1.3 was my first version. It looks fine now, thanks. I edited the display.template manually. I must have accidentally pressed paste twice. Thanks again! Great mod!
Title: Re: Facebook Like Mod
Post by: zzzronzzz on June 20, 2010, 09:29:40 AM
Hello .. can you help me move the Like button inside the first post of the topic instead ? I am using the default template curve and it seems that the Like button can be easily ignored where you originally placed it because the like button and the default template has the same color .. thanks
Title: Re: Facebook Like Mod
Post by: Mick. on June 20, 2010, 09:35:52 AM
Quote from: zzzronzzz on June 20, 2010, 09:29:40 AM
Hello .. can you help me move the Like button inside the first post of the topic instead ? I am using the default template curve and it seems that the Like button can be easily ignored where you originally placed it because the like button and the default template has the same color .. thanks

You can change the color of the button and its text in:

Open:
/Themes/default/Display.template.php
Find:
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="300" action="like" colorscheme="light" /></fb:like>

Replace:
colorscheme="light"         for "dark" or "evil".
Title: Re: Facebook Like Mod
Post by: pinoypetfinder on June 23, 2010, 01:02:23 AM
any chance to be compatible on 1.1.x versions?
Title: Re: Facebook Like Mod
Post by: Heartlander on June 26, 2010, 04:28:51 PM
Can we simply use what Facebook is giving us with their Open Graph "Like" tool, insted of installing this mod, and do the edits by hand into our forum posts?

Would this or would it not solve the thousands of fan pages being created?
Title: Re: Facebook Like Mod
Post by: Mayhem30 on June 26, 2010, 07:05:41 PM
Quote from: Heartlander on June 26, 2010, 04:28:51 PM
Can we simply use what Facebook is giving us with their Open Graph "Like" tool, insted of installing this mod, and do the edits by hand into our forum posts?

Would this or would it not solve the thousands of fan pages being created?



Yes, I do not use the mod and I did a manual edit and it does not create any fan pages when someone 'like' a topic.

Edit your display.template.php file and chose a location where you want the button - and throw this in :

<td style="width: 80px; height: 21px; padding-bottom: 4px; padding-left: 5px;" valign="bottom"><iframe src="http://www.facebook.com/plugins/like.php?href=', $scripturl, '?topic=', $context['current_topic'], '&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px"></iframe></td>
Title: Re: Facebook Like Mod
Post by: Heartlander on June 26, 2010, 07:14:34 PM
Hmmm...the button shows, but.....
An error occurred with Facebook Platform Opt In. Please try again later.
Title: Re: Facebook Like Mod
Post by: Mick. on June 26, 2010, 10:34:51 PM
Quote from: Heartlander on June 26, 2010, 04:28:51 PM
Can we simply use what Facebook is giving us with their Open Graph "Like" tool, insted of installing this mod, and do the edits by hand into our forum posts?

Would this or would it not solve the thousands of fan pages being created?

You could use the previous mod, v1.2, much simpler.. ;)
Title: Re: Facebook Like Mod
Post by: Heartlander on June 26, 2010, 10:49:56 PM
That version eliminates the creation of fan pages then?
Title: Re: Facebook Like Mod
Post by: Mick. on June 26, 2010, 11:56:19 PM
Quote from: Heartlander on June 26, 2010, 10:49:56 PM
That version eliminates the creation of fan pages then?

Yes.
Title: Re: Facebook Like Mod
Post by: Heartlander on June 26, 2010, 11:59:34 PM
OK, well I downloaded that version initially and had the same error messages as others got on the install. If I follow the chain here back through the thread, then edits in settings files should work, I hope.
Title: Re: Facebook Like Mod
Post by: Tearstar on June 29, 2010, 01:46:10 AM
The creation of fanpages is by facebook design [apperently] that way you are able to keep track of the "insites" for each page that has been liked, I've seen other open graph's populated . . . it's actually real effective, I'm just not sure how safe they are from data miners.
Title: Re: Facebook Like Mod
Post by: Mick. on June 29, 2010, 02:22:07 PM
Quote from: Tearstar on June 29, 2010, 01:46:10 AM
The creation of fanpages is by facebook design [apperently] that way you are able to keep track of the "insites" for each page that has been liked, I've seen other open graph's populated . . . it's actually real effective, I'm just not sure how safe they are from data miners.
I admit, I have no use for open graph.  I still use the first version of the mod.
Title: Re: Facebook Like Mod
Post by: Tearstar on July 02, 2010, 01:03:57 AM
You will HAVE to go open graph eventually, Facebook is only going to continue to support the old code for limited amount of time. They WANT everything on Open Graph. All it is, is facebook is compiling one massive database, and opening up certain parts of it to the public, so you can more directly advertise. I think it's a load of bull, but I give my players what they want and they wand FB integration.
Title: Re: Facebook Like Mod
Post by: cthulhumythos on July 02, 2010, 01:33:12 AM
Have to?  :o Isnt the page being created for every post not correct in this usage, or did I assume wrong that facebook doesnt want us making everything graph yet? I have done my own implementation of a mixture of open graph tags and media tags. i dont need my posts to make pages unless its for something specific, and since i set all my forum text based open graph likes to type "article" those dont make pages. Or am i wrong? here is the quote from facebook in their open graph directions (http://developers.facebook.com/docs/opengraph#extra-data) that confused me:

Quote from: FacebookIt is currently designed for Web pages representing profiles of real-world things — things like movies, sports teams, celebrities, and restaurants.

Quote from: facebookNote that the Open Graph protocol is currently designed to support real-life objects. If your URL is a piece of content — such as a news article, photo, video, or similar — you should set og:type to article (see below).

a little further

Quote from: facebookUse article for any URL that represents transient content - such as a news article, blog post, photo, video, etc.

Anyway i worte my own meta tags script and did my own sdk integrations, but I also added a "facebook kill" button for this site, starting to do it for all my projects. They do slow page load, and some people (like me) are getting sick of this stuff. But as the post above, they want it, give it. My meta tags/shares in action, view source/share if you want to see what i did, and maybe tell me if i did something wrong? Cheers.

Normal Text Post (where the first image found inside the post is used as thumb, otherwise a site default icon for fb shares is used ("og:image"))
Youtube Post (default icon used as thumb, looks like youtube post on facebook but points back to us)
Mp3 Post (uses the native facebook mp3 player in facebook and embeds the first image in the post above it plus the text from the post)
Soundcloud post (embeds the soundcloud player, image from post, text and links back to the thread)

As you can see if you check the pages above my script only makes forum posts lacking media (mp3, audio, soundcloud, youtube, vimeo for my needs) open graph of type "article", then makes all the aforementioned-type media rich posts traditional share tags mimicking the big media clouds tags.




Title: Re: Facebook Like Mod
Post by: KensonPlays on July 02, 2010, 05:06:21 PM
NICE!!!!!!!! INSTALLED!!!!!!!!!!!
Title: Re: Facebook Like Mod
Post by: xsisonline on July 14, 2010, 05:29:07 PM
this is a nice mod

i have started a new forum

www.warezp.org


i did installed this mod

but when i try to click on i like button i am getting error saying "application id did not match for this domain"
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftigii.com%2Fimagehosting%2Fimages%2F76487721985764097334.png&hash=c3f0bcab71ab9ed21978cb8fd243d11407dbf84f)


while creating the mod i given the connect url as www.warezp.org/
but it didn't wrked....

then i gave the connect url as www.warezp.org/index.php?
because this is common in all url..

pls tell me what to do....

pls guys help me for this...............

u can check this error on ma forum ... right now i have installed this mod only in 1 group "----Announcements......"
pls help me for this..................

Title: Re: Facebook Like Mod
Post by: DEK24 on July 14, 2010, 07:41:30 PM
Quote from: bluedevil on June 18, 2010, 09:41:11 PM
FB Like v.1.3 added to mod site..  Now it uses the open graph protocol.

When a user likes a topic, it will create a new fan page for the topic.  You may end up with thousands of fan pages but thats ok.

In admin, ... add your app ID, Facebook User ID and select which boards you want folks to like topics.


Uninstall older version 1.2 before installing 1.3!

Do you insert the whole link where it prompts for that info or just the number or user name?
Title: Re: Facebook Like Mod
Post by: xsisonline on July 15, 2010, 07:51:57 AM
Quote from: xsisonline on July 14, 2010, 05:29:07 PM
this is a nice mod

i have started a new forum

www.warezp.org


i did installed this mod

but when i try to click on i like button i am getting error saying "application id did not match for this domain"
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftigii.com%2Fimagehosting%2Fimages%2F76487721985764097334.png&hash=c3f0bcab71ab9ed21978cb8fd243d11407dbf84f)


while creating the mod i given the connect url as www.warezp.org/
but it didn't wrked....

then i gave the connect url as www.warezp.org/index.php?
because this is common in all url..

pls tell me what to do....

pls guys help me for this...............

u can check this error on ma forum ... right now i have installed this mod only in 1 group "----Announcements......"
pls help me for this..................

pls someone reply to this querry
Title: Re: Facebook Like Mod
Post by: derby on July 15, 2010, 01:23:07 PM
please do i nid to create a facebook application for the facebook like mod to work?
Title: Re: Facebook Like Mod
Post by: mirahalo on July 15, 2010, 01:35:13 PM
Quote from: derby on July 15, 2010, 01:23:07 PM
please do i nid to create a facebook application for the facebook like mod to work?

not necessary, with out the FB app the like button will still work as long as the user is log in on FB.

with the app, you get comments, whenever a user likes somhing, a small box will appear and the user can leave a comment and that comment will appear on the user's wall.

without app, it will only show:   some user likes some page.

with no comment.
Title: Re: Facebook Like Mod
Post by: derby on July 15, 2010, 03:56:35 PM
im getting error on
                                 /Sources/ManageSettings.php   Test failed
   1.   Add After   ./Sources/ManageSettings.php   Test successful
   2.   Add After   ./Sources/ManageSettings.php   Test failed
Title: Re: Facebook Like Mod
Post by: sombra on July 17, 2010, 10:24:25 AM
this mod brings something like this?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi25.tinypic.com%2Fswsuix.png&hash=426476252cfc4d1f941a7c1697d976513af27b2e)

i dont really now the function of this but i think its for people from facebook become followers of your page or somethink like that

Title: Re: Facebook Like Mod
Post by: derby on July 21, 2010, 06:10:00 AM
Quote from: derby on July 15, 2010, 03:56:35 PM
im getting error on
                                 /Sources/ManageSettings.php   Test failed
   1.   Add After   ./Sources/ManageSettings.php   Test successful
   2.   Add After   ./Sources/ManageSettings.php   Test failed
Title: Re: Facebook Like Mod
Post by: ~DS~ on July 21, 2010, 06:50:03 AM
Derby, install manual, how hard is it to edit files?
Title: Re: Facebook Like Mod
Post by: derby on July 21, 2010, 09:40:14 AM
Quote from: Delita on July 21, 2010, 06:50:03 AM
Derby, install manual, how hard is it to edit files?
wat do i edit and add plz
Title: Re: Facebook Like Mod
Post by: Stigmartyr on July 21, 2010, 06:56:43 PM
Quote from: bluedevil on May 18, 2010, 08:50:57 AM
In admin---->configuration---->modification settings---->miscellaneous,   tick the box.

Hey Devil,
Having a bit of an issue with Pretty URLs and your like mod too.  Did you ever figure out how to get it to work together?

I recently put a facebook activity block on our front page and it was working nice: http://stangnation.com (lower left hand corner) with your mod.

I do want to keep pretty URLs because of the indexing benefits.  Now when a topic is liked (as of today) it doesn't give the topic name just that the person liked the site's title.

I noticed that the url it's serving is like this too: http://stangnation.com/index.php?topic=10359layout%3D%22standard%22 (http://stangnation.com/index.php?topic=10359layout%3D%22standard%22)

It seems to append layout%3D%22standard%22 to the end of the topic ID and it's not able to parse whatever pretty url is dishing out?

I'm looking into it on the url mod side but I am kind of stabbing in the dark here.  I pondered whether this was part of the .htaccess modifications or not.

Two steps forward and two steps back :P 
Title: Re: Facebook Like Mod
Post by: Stigmartyr on July 21, 2010, 11:57:53 PM
Quote from: Stigmartyr on July 21, 2010, 09:08:17 PM
Quote from: Stigmartyr on July 21, 2010, 06:56:43 PM
Quote from: bluedevil on May 18, 2010, 08:50:57 AM
In admin---->configuration---->modification settings---->miscellaneous,   tick the box.

Hey Devil,
Having a bit of an issue with Pretty URLs and your like mod too.  Did you ever figure out how to get it to work together?

I recently but a facebook activity block on our front page and it was working nice: http://stangnation.com (lower left hand corner) with your mod.

I do want to keep pretty URLs because of the indexing benefits.  Now when a topic is liked (as of today) it doesn't give the topic name just that the person liked the site's title.

Two steps forward and two steps back :P 

Update: I noticed that the url it's serving is like this too: http://stangnation.com/index.php?topic=10359layout%3D%22standard%22 (http://stangnation.com/index.php?topic=10359layout%3D%22standard%22)

It seems to append layout%3D%22standard%22 to the end of the topic ID and it's not able to parse whatever pretty url is dishing out?

I'm looking into it on the url mod side but I am kind of stabbing in the dark here.  I pondered whether this was part of the .htaccess modifications or not.

Yup - pretty sure I have it narrowed down to the coding of the Facebook LIKE button that needs to be updated to work with pretty URLs

I don't think it's very hard for someone who knows the syntax better than I do.

Here is your code unaltered:

<!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="350" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';



Here's what I experimented with and failed.  I might just need an expert push?

<!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href=', $boardurl, '?topic=', $context['pretty']['board_title']['topic'], 'layout="standard" width="350" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';




(I parsed Pretty URLs mod (http://custom.simplemachines.org/mods/index.php?mod=636) to try to figure out their topic calls/queries and drove into a ditch several times :P)


Halp?
Title: Re: Facebook Like Mod
Post by: Mick. on July 22, 2010, 09:48:08 AM
Dunno, but try replacing:

', $boardurl, '

for

', $scripturl, '

and see what gives?
Title: Re: Facebook Like Mod
Post by: Stigmartyr on July 22, 2010, 10:55:41 AM
Quote from: bluedevil on July 22, 2010, 09:48:08 AM
Dunno, but try replacing:

', $boardurl, '

for

', $scripturl, '

and see what gives?


Tried that too.  When I use scripturl it will print the domain name plus 'index.php' and then '?topic=' and then it bleeds off the variable for 'layout=standard'. Examle: http://www.stangnation.com/index.php?topic=layout%3D%22standard%22

I even tried using your PHP FB activity block so I could call the SDK and use the shortened activity code and that didn't work.  I'm pretty sure it's as simple as how the URL is printed so the like button can interpret it.

I'll also post to the Pretty URL board here: [Link] (http://www.simplemachines.org/community/index.php?topic=146969.msg2712795#msg2712795)
Title: Re: Facebook Like Mod
Post by: Mick. on July 22, 2010, 11:08:34 AM
Sorry Styg, i really dont know how Purl's work.


Try this?

Instead of:
['topic']


Add:
['current_topic']
Title: Re: Facebook Like Mod
Post by: Stigmartyr on July 22, 2010, 11:26:03 AM
Alrighty.. so we've got the fix, thanks to vbgamer45 over at the Purl mod page.  He tweaked the like button code just so.  All you'll need to do is open your /Themes/default/Display.template.php and replace the facebook like button code with:


               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href="', $scripturl, '?topic=', $context['current_topic'], '" layout="standard" width="350" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';


Quote from: vbgamer45 on July 22, 2010, 11:11:14 AM
Change
href=', $scripturl, '?topic=', $context['current_topic'], 'layout=
to

href="', $scripturl, '?topic=', $context['current_topic'], '" layout=

Title: Re: Facebook Like Mod
Post by: Mick. on July 22, 2010, 11:33:55 AM
Very cool Styg.   Thanx to you and vbgamer.

Ill add this to the 1st post ;)
Title: Re: Facebook Like Mod
Post by: derby on July 25, 2010, 03:47:27 PM
Quote from: derby on July 21, 2010, 09:40:14 AM
Quote from: Delita on July 21, 2010, 06:50:03 AM
Derby, install manual, how hard is it to edit files?
wat do i edit and add plz
Title: Re: Facebook Like Mod
Post by: mirahalo on July 25, 2010, 03:50:13 PM
check the mod's parser:  http://custom.simplemachines.org/mods/index.php?action=parse;mod=2543;attach=148651;smf_version=2.0_RC3


check what file did you get an error during install and check the changes this mod does to that file.

most likely a different mod already add code were this mod needs to edit, so its probable not that hard to edit.
Title: Re: Facebook Like Mod
Post by: derby on July 25, 2010, 04:21:39 PM
Quote from: 130860 on July 25, 2010, 03:50:13 PM
check the mod's parser:  http://custom.simplemachines.org/mods/index.php?action=parse;mod=2543;attach=148651;smf_version=2.0_RC3


check what file did you get an error during install and check the changes this mod does to that file.

most likely a different mod already add code were this mod needs to edit, so its probable not that hard to edit.
thank u veri much...would try it now
Title: Re: Facebook Like Mod
Post by: DEEPSNUYB on July 27, 2010, 03:09:18 AM
Just curious. This sounds great but wouldnt creating a Like page for each thread that gets tagged in your forum pretty much get you axed or IP banned from Facebook?
Title: Re: Facebook Like Mod
Post by: derby on July 27, 2010, 06:08:55 AM
Quote from: DeepSnuybing on July 27, 2010, 03:09:18 AM
Just curious. This sounds great but wouldnt creating a Like page for each thread that gets tagged in your forum pretty much get you axed or IP banned from Facebook?
this mod is like the facebook ILIKE..if u like the topic u login to facebook then like it on the forum
Title: Re: Facebook Like Mod
Post by: skydiamond on July 27, 2010, 09:33:29 AM
How I could display the button only in public sections?
Title: Re: Facebook Like Mod
Post by: Mick. on July 27, 2010, 04:54:56 PM
Quote from: skydiamond on July 27, 2010, 09:33:29 AM
How I could display the button only in public sections?

Go to admin--->forums--->boards----->modify boards.

Select what boards you want the "Facebook Like" button to show.
Title: Re: Facebook Like Mod
Post by: skydiamond on July 28, 2010, 11:31:29 AM
Quote from: bluedevil on July 27, 2010, 04:54:56 PM
Quote from: skydiamond on July 27, 2010, 09:33:29 AM
How I could display the button only in public sections?

Go to admin--->forums--->boards----->modify boards.

Select what boards you want the "Facebook Like" button to show.

I added the PHP code directly in display.template.php. I want to know how to manipulate an if statement to select only the public section where it has to show itself.
Title: Re: Facebook Like Mod
Post by: Stigmartyr on July 28, 2010, 11:46:51 AM
Quote from: skydiamond on July 28, 2010, 11:31:29 AM
Quote from: bluedevil on July 27, 2010, 04:54:56 PM
Quote from: skydiamond on July 27, 2010, 09:33:29 AM
How I could display the button only in public sections?

Go to admin--->forums--->boards----->modify boards.

Select what boards you want the "Facebook Like" button to show.

I added the PHP code directly in display.template.php. I want to know how to manipulate an if statement to select only the public section where it has to show itself.

Having trouble making sense of the last part of that sentence.  Do you mean, how do you make it work on only public boards?

If so: this mod has nothing to do with permissions.  If you enable it on a board it will start working.  You'll have to set board permissions to make it public or not.

Also no one will see the 'Like' mod unless they're also signed into Facebook.  Which is why the 'Recent Activity' block is helpful.  It will show a login button for FB if the visitor is not logged in.
Title: Re: Facebook Like Mod
Post by: wizzard1 on July 29, 2010, 06:37:34 AM
ok i like this mod but its conflicting with another mod im afraid ping this i have installed

this is where i go wrong
<span id="author">', $txt['author'], '</span>
<span class="floatright">
<script language="javascript">
pingthis();
</script>
</span>

<span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')</span>
</h3>
</div>';

if (!empty($settings['display_who_viewing']))


when i manualy add the code for this like mod in there the whole page goes screwed

something else i noticed when i removed ping to test it that somewhere my page font in a topic goes way bigger ?

but anyway where in this line of code do i paste the "like"code in display template
Title: Re: Facebook Like Mod
Post by: dsanchez on July 30, 2010, 06:47:32 AM
awesome mod guys!

a couple of questions:

*do you have any idea about how to change the colour of the "Be the first of your friends to like this" text?

*does the button and text always display in the top of the topic AND the first message of the topic? (i.e. http://curefans.com/index.php/topic,3652.0.html)?

thanks!
Title: Re: Facebook Like Mod
Post by: Stigmartyr on August 05, 2010, 08:22:34 PM
Quote from: dsanchez on July 30, 2010, 06:47:32 AM
awesome mod guys!

a couple of questions:

*do you have any idea about how to change the colour of the "Be the first of your friends to like this" text?
Not sure - I think facebook sets the standard for what the color is..

Quote
*does the button and text always display in the top of the topic AND the first message of the topic? (i.e. http://curefans.com/index.php/topic,3652.0.html)?

thanks!

Yes it should show at the top for every page.
Title: Re: Facebook Like Mod
Post by: Stigmartyr on August 05, 2010, 08:26:53 PM
Ok now for another issue that sorta cropped up today.  Maybe someone else has seen this or can confirm.

Today when using the like feature on my site it's now just printing the URL and not the site name or topic like it was just the other day and I've made no changes to the site.  Perhaps facebook made some changes?

Here's what I get when I use it now :( :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg685.imageshack.us%2Fimg685%2F9914%2Fexample1n.jpg&hash=191c77ffd66113ab9fe2e9972094d07589e7c978)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg694.imageshack.us%2Fimg694%2F4408%2Fexample2r.jpg&hash=cc89b40e669064080429743f51a4badb06522732)


Could this have anything to do with the .htaccess file that prettyURL uses?  But why would it have an issue now is what stumps me.  I tend to think facebook updated their API
Title: Re: Facebook Like Mod
Post by: Stigmartyr on August 07, 2010, 11:56:36 AM
Quote from: Stigmartyr on August 05, 2010, 08:26:53 PM
Ok now for another issue that sorta cropped up today.  Maybe someone else has seen this or can confirm.

Today when using the like feature on my site it's now just printing the URL and not the site name or topic like it was just the other day and I've made no changes to the site.  Perhaps facebook made some changes?

Here's what I get when I use it now :( :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg685.imageshack.us%2Fimg685%2F9914%2Fexample1n.jpg&hash=191c77ffd66113ab9fe2e9972094d07589e7c978)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg694.imageshack.us%2Fimg694%2F4408%2Fexample2r.jpg&hash=cc89b40e669064080429743f51a4badb06522732)


Could this have anything to do with the .htaccess file that prettyURL uses?  But why would it have an issue now is what stumps me.  I tend to think facebook updated their API

Well - it seems to have resolved itself.. :\  Guess it was just facebook oddness.  Disregard this I guess :P
Title: Re: Facebook Like Mod
Post by: DEK24 on August 10, 2010, 11:42:22 AM
Quote from: DEK24 on July 14, 2010, 07:41:30 PM
Quote from: bluedevil on June 18, 2010, 09:41:11 PM
FB Like v.1.3 added to mod site..  Now it uses the open graph protocol.

When a user likes a topic, it will create a new fan page for the topic.  You may end up with thousands of fan pages but thats ok.

In admin, ... add your app ID, Facebook User ID and select which boards you want folks to like topics.


Uninstall older version 1.2 before installing 1.3!

Do you insert the whole link where it prompts for that info or just the number or user name?

Anyone?
Title: Re: Facebook Like Mod
Post by: Stigmartyr on August 10, 2010, 12:24:32 PM
Quote from: DEK24 on August 10, 2010, 11:42:22 AM
Do you insert the whole link where it prompts for that info or just the number or user name?

I'm not sure I understand your question, sry.  What element in the code are you talking about here?  I'll try to help
Title: Re: Facebook Like Mod
Post by: Fabhino22Elz on August 11, 2010, 08:44:32 AM
Hey there, i have a Rpoblem. I installed the Mod, but when i enable the Mod and enable it in some boards the Button dosnt show up. What do i have to do?`I only installed the Facebook like mod. Do i need further things to geht this working?

Greetings!
Title: Re: Facebook Like Mod
Post by: Rain Forest on August 11, 2010, 09:00:56 AM
Quote from: Fabhino22Elz on August 11, 2010, 08:44:32 AM
Hey there, i have a Rpoblem. I installed the Mod, but when i enable the Mod and enable it in some boards the Button dosnt show up. What do i have to do?`I only installed the Facebook like mod. Do i need further things to geht this working?

Greetings!

Hmm, I (as a amateur of modding) guess u are using a custom theme. The button images are uploaded into the 'default' folder, so through a FTP or something u can add these images to your custom theme folder.
Title: Re: Facebook Like Mod
Post by: Fabhino22Elz on August 11, 2010, 10:09:44 AM
Quote from: giovannie_1 on August 11, 2010, 09:00:56 AM
Quote from: Fabhino22Elz on August 11, 2010, 08:44:32 AM
Hey there, i have a Rpoblem. I installed the Mod, but when i enable the Mod and enable it in some boards the Button dosnt show up. What do i have to do?`I only installed the Facebook like mod. Do i need further things to geht this working?

Greetings!

Hmm, I (as a amateur of modding) guess u are using a custom theme. The button images are uploaded into the 'default' folder, so through a FTP or something u can add these images to your custom theme folder.

Yeah, i thought of that, but the problem is - if i turn on the mod in the specific board and then look again, its turned of, the point is not set :-(

And when i set and go on save settings its unset again when i directly look again for it... :(
Title: Re: Facebook Like Mod
Post by: Fabhino22Elz on August 11, 2010, 05:24:40 PM
Push
Title: Re: Facebook Like Mod
Post by: crustybum on August 20, 2010, 11:37:19 AM
I get this error

The application ID specified within the "fb:app_id" meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to be a prefix of http://www.mysite/theforum/index.php?topic=8075.0.

any ideas?
Title: Re: Facebook Like Mod
Post by: sutko on August 23, 2010, 06:38:05 PM
Quote from: crustybum on August 20, 2010, 11:37:19 AM
I get this error

The application ID specified within the "fb:app_id" meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to be a prefix of http://www.mysite/theforum/index.php?topic=8075.0.

any ideas?

I have the same problem.
Title: Re: Facebook Like Mod
Post by: Dany Van Buuren on August 26, 2010, 02:17:12 AM
I really love this mod but i have a dark theme and the text
is not visible i'd love to change the widget apparience to the
short version I have tried but nothing happens

Can someone help me please

The one i'd love to have

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fa.imageshack.us%2Fimg251%2F1596%2Fscreenbg.jpg&hash=014873a5b344cccba56f3c53c43ff070e8dcb533)
Title: Re: Facebook Like Mod
Post by: seficar on September 10, 2010, 02:21:25 PM
how can i add forum url to the "like" code?
so something like this would appear on their facebook profile:
[name] likes [topic] on [forum].
Title: Re: Facebook Like Mod
Post by: Aleksi "Lex" Kilpinen on September 16, 2010, 07:45:10 AM
Thanks for a great mod, just one small question though - I'm a bit unfamiliar with FB apps, so why do you need the user ID of the FB app admin? It works without it as well, as far as I could see from my tests....

EDIT: Never mind, I found out browsing FB Developers - but I'd still like to point out that you are not required to have both, but at the moment leaving either empty will cause undefined errors. ( At least did for me. )

Quote from: seficar on September 10, 2010, 02:21:25 PM
how can i add forum url to the "like" code?
so something like this would appear on their facebook profile:
[name] likes [topic] on [forum].
That would be done through your application settings on FB.

Title: Re: Facebook Like Mod
Post by: mirahalo on September 16, 2010, 11:34:02 AM
yes, the user ID is not needed,   even the app ID is not needed either ;) the user id  is used to display some admin tool for the owner of the app, this should do the trick to avoid undefined errors:


on index.template.php

' , $modSettings['facebookLike_id'] ,'

replace

', !empty($modSettings['facebookLike_id']) ? $modSettings['facebookLike_id'] : '', '
Title: Re: Facebook Like Mod
Post by: Sakae on September 16, 2010, 02:44:35 PM
Quote from: sutko on August 23, 2010, 06:38:05 PM
Quote from: crustybum on August 20, 2010, 11:37:19 AM
I get this error

The application ID specified within the "fb:app_id" meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to be a prefix of http://www.mysite/theforum/index.php?topic=8075.0.

any ideas?

I have the same problem.

Same for me here.
Title: Re: Facebook Like Mod
Post by: uniektekniek on September 30, 2010, 09:10:13 PM
im having a little trouble with this mod, its only active on the public boards on my forum.. eg guests can view..  but everytime its used it shows on facebook "soandso likes login"...

is there something im missing?
Title: Re: Facebook Like Mod
Post by: twinsen on October 07, 2010, 12:58:51 AM
This is okey ??

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Flulzimg.com%2Fi6%2F67b045ae.jpg&hash=0d312b4696e1c8754b768c964c800b6caf4c56d2)

Quote from: bluedevil on June 18, 2010, 09:41:11 PM
FB Like v.1.3 added to mod site..  Now it uses the open graph protocol.

When a user likes a topic, it will create a new fan page for the topic.  You may end up with thousands of fan pages but thats ok.

In admin, ... add your app ID, Facebook User ID and select which boards you want folks to like topics.


Uninstall older version 1.2 before installing 1.3!

select which boards you want folks to like topics: I dont see this ...

The mod dont work for me
Title: Re: Facebook Like Mod
Post by: alsaka on October 07, 2010, 03:25:27 PM
i have error

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww12.0zz0.com%2F2010%2F10%2F07%2F19%2F955587869.gif&hash=98a08d599fd9ff37b38a3f8555503cfa55349bae)
Title: Re: Facebook Like Mod
Post by: twinsen on October 07, 2010, 04:55:58 PM
Any help ?. Please
Title: Re: Facebook Like Mod
Post by: Spoogs on October 07, 2010, 06:48:48 PM
Quote from: twinsen on October 07, 2010, 12:58:51 AM
This is okey ??
You need to create an application on Facebook to get the information you need

Quote from: twinsen on October 07, 2010, 12:58:51 AM
select which boards you want folks to like topics: I dont see this ...

The mod dont work for me
Go to create a new board or modify an existing board and the option should be there (based on the screen shots on the mod page)
Title: Re: Facebook Like Mod
Post by: Spoogs on October 07, 2010, 06:50:32 PM
Quote from: alsaka on October 07, 2010, 03:25:27 PM
i have error

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww12.0zz0.com%2F2010%2F10%2F07%2F19%2F955587869.gif&hash=98a08d599fd9ff37b38a3f8555503cfa55349bae)
Should be fine if you created an app on fb and using the correct info
That seems to be a facebook issue and should go away eventually
Title: Re: Facebook Like Mod
Post by: twinsen on October 07, 2010, 08:19:55 PM
Quote from: Spoogs on October 07, 2010, 06:48:48 PM
Quote from: twinsen on October 07, 2010, 12:58:51 AM
This is okey ??
You need to create an application on Facebook to get the information you need

Quote from: twinsen on October 07, 2010, 12:58:51 AM
select which boards you want folks to like topics: I dont see this ...

The mod dont work for me
Go to create a new board or modify an existing board and the option should be there (based on the screen shots on the mod page)

1) I create a aplication. I have the id application

2) Okey. I find the action. But now i have a error message:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Flulzimg.com%2Fi6%2Fa5ac8ca9.jpg&hash=c1bcd15439aefee1dfe0bf73790f20d32c4d54cb)

I click in "Error" and i have this:

La página de http://127.0.0.1/******/index.php?topic=7457layout%3D%22standard%22 no puede ser alcanzada. (In spanish)

Any ideas ??

Update: When i install this mod i lost the topic title in the bar (Where the "i like" ubication)
Title: Re: Facebook Like Mod
Post by: twinsen on October 08, 2010, 06:52:31 PM
Update 2: I upload my site to byethost for test purposes.

Same error. But when i click the error is:

Application ID does not match domain

Searching in google i obtain this: http://developers.facebook.com/tools/lint/?url=http%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Flint%2Fexamples%2Fbad_domain

Any help ??
Title: Re: Facebook Like Mod
Post by: Petee on October 10, 2010, 05:14:03 PM
Doesn't seem to work in Firefox for me.  The Like button just doesn't show up.
Title: Re: Facebook Like Mod
Post by: twinsen on October 10, 2010, 06:40:36 PM
Update 3: I upload everything in x10hosting (Free) for test this mod.

But now .. I CANT CLICK IN THE BUTTON !!!

Please. Help ...

I can see the botton but i cant click ...
Title: Re: Facebook Like Mod
Post by: TheSniperK2R on October 18, 2010, 06:39:49 AM
Alright so i have created a facebook fan page for my website (http://www.facebook.com/pages/CrazyKillas/150928564943670 (http://www.facebook.com/pages/CrazyKillas/150928564943670)) and i would like to use this mod (http://custom.simplemachines.org/mods/index.php?mod=2543 (http://custom.simplemachines.org/mods/index.php?mod=2543)) it allows people to like posts but it creates a fan page for every posts which is what i don't want. I want it to post on the wall of the website fan page. Like for example if "peter89" like recent photos and click "facebook like" i want that to post on the wall of the website fan page stating "peter89" liked recent photos. I don't know if this is even possible but i would be awesome if it is. Also i use the custom theme DarkBreak and my smf is SMF 2.0 RC3 |
Title: Re: Facebook Like Mod
Post by: Mick. on October 18, 2010, 05:54:40 PM
Quote from: TheSniperK2R on October 18, 2010, 06:39:49 AM
Alright so i have created a facebook fan page for my website (http://www.facebook.com/pages/CrazyKillas/150928564943670 (http://www.facebook.com/pages/CrazyKillas/150928564943670)) and i would like to use this mod (http://custom.simplemachines.org/mods/index.php?mod=2543 (http://custom.simplemachines.org/mods/index.php?mod=2543)) it allows people to like posts but it creates a fan page for every posts which is what i don't want. I want it to post on the wall of the website fan page. Like for example if "peter89" like recent photos and click "facebook like" i want that to post on the wall of the website fan page stating "peter89" liked recent photos. I don't know if this is even possible but i would be awesome if it is. Also i use the custom theme DarkBreak and my smf is SMF 2.0 RC3 |

Use the old mod.  v1.2 for that.  It does not create fan pages for each "like".

If your using a dark theme, you can change the text and button colors to:
"light", "dark" or "evil" in:

Open:
/Themes/default/Display.template.php

Find:

               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="300" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->


and replace "light" for your liking.
Title: Re: Facebook Like Mod
Post by: xpubstargamingx on October 20, 2010, 12:37:06 PM
Anything like this compatible with 1.1.11?
Title: Re: Facebook Like Mod
Post by: TheSniperK2R on October 20, 2010, 05:35:08 PM
I'm sorry for asking another question, but im new to this kind of stuff and i have no coding expierence whatsoever so i couldnt figure it out myself. But im using SMF 2.0 RC3 and the theme DarkBreak. I installed your facebook like mod. I am using the old version v1.2 since i don't want it creating new fan pages like you suggested. But when i go to like something only the "like" button appears and the "   Be the first of your friends to like this. appears. So when i click like it all hides underneath the theme. I took a picture below to show you exactly what i mean.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi932.photobucket.com%2Falbums%2Fad163%2FTheSniperK2R%2Fexample.jpg&hash=2234bdad1e66a714ae08a329a59666f3dfb059bd)
Title: Re: Facebook Like Mod
Post by: Mick. on October 21, 2010, 07:58:09 PM
Quote from: TheSniperK2R on October 20, 2010, 05:35:08 PM
I'm sorry for asking another question, but im new to this kind of stuff and i have no coding expierence whatsoever so i couldnt figure it out myself. But im using SMF 2.0 RC3 and the theme DarkBreak. I installed your facebook like mod. I am using the old version v1.2 since i don't want it creating new fan pages like you suggested. But when i go to like something only the "like" button appears and the "   Be the first of your friends to like this. appears. So when i click like it all hides underneath the theme. I took a picture below to show you exactly what i mean.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi932.photobucket.com%2Falbums%2Fad163%2FTheSniperK2R%2Fexample.jpg&hash=2234bdad1e66a714ae08a329a59666f3dfb059bd)

This is an issue ive noticed.  Its not an issue with the mod itself.
Its the theme.  The bar where it says: "topic: completed video links" is too small to accomodate the facebook button with the avatars.

Im going to re-write the mod to modify the theme in that aspect to fit the button and avatars soon.

Title: Re: Facebook Like Mod
Post by: TheSniperK2R on October 21, 2010, 08:56:45 PM
Alright that would be great. Looking towards it.
Title: Re: Facebook Like Mod
Post by: xpubstargamingx on October 23, 2010, 12:44:57 PM
Anything like this compatible with 1.1.11?
Title: Re: Facebook Like Mod
Post by: jpaulino on October 24, 2010, 05:33:02 AM
Why can't I check the option "Enable Facebook Like on topics [Facebook Like mod]" in the boards I want?

I have installed, create the Facebook application and entered the facebook Id and Application Id, but I cannot select that option :(

Any help?

By the way, great job ;)
Title: Re: Facebook Like Mod
Post by: qubbah on October 28, 2010, 12:50:32 AM
My forum have a lots of board and child. So many click can make to change all to enable permission for every board. any setting to enable this mod to all board?
Title: Re: Facebook Like Mod
Post by: xIsabel38 on October 31, 2010, 04:41:23 AM
Quote from: Sakae on September 16, 2010, 02:44:35 PM
Quote from: sutko on August 23, 2010, 06:38:05 PM
Quote from: crustybum on August 20, 2010, 11:37:19 AM
I get this error

The application ID specified within the "fb:app_id" meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to be a prefix of ....
any ideas?

I have the same problem.

Same for me here.


I have this same problem and I noticed these other people have had them also but no one seemed to respond to them. Or maybe I completely missed it somehow.

I'm a very untechnical person. When I had to create an app for this I just did it very quickly and generically (without having ever done it before or knowing what I was doing). I don't know if I messed up the app somehow but I've tried recreating it 4 times now and I still get the above error message when I try to "Like" something.

I don't know if I messed up my app so this is the one I created: facebook.com/apps/application.php?id=102670089803098
My forum is located here: killaxgirlz.com/forum/

Sorry I tried to link them but the forum said I was not allowed to post external links.

Any help would be appreciated, I'd really really like to have this working correctly.
Title: Re: Facebook Like Mod
Post by: Alex' Manson on November 01, 2010, 10:39:50 AM
simple little question,
how doi change the like button?
i mean, i have another gray like button that will look better at my forum
Title: Re: Facebook Like Mod
Post by: kat on November 01, 2010, 01:53:40 PM
http://www.simplemachines.org/community/index.php?topic=405926.msg2828875#msg2828875
Title: Re: Facebook Like Mod
Post by: Alex' Manson on November 01, 2010, 03:06:11 PM
did you read my last post? :o
Title: Re: Facebook Like Mod
Post by: L'AltroWeb on November 04, 2010, 11:05:56 PM
Hi! In my smf 1.1.11 (now *.12) i've simply put iframe code in my theme and it work flawlessy.
I don't have make any application, nothing. What is the difference with this mod (why i need to make an app from facebook when i can user iframe release)?
-
Thanks in advance, Wolf :)
Title: Re: Facebook Like Mod
Post by: Suki on November 04, 2010, 11:21:23 PM
Quote from: Dark-Wolf on November 04, 2010, 11:05:56 PM
Hi! In my smf 1.1.11 (now *.12) i've simply put iframe code in my theme and it work flawlessy.
I don't have make any application, nothing. What is the difference with this mod (why i need to make an app from facebook when i can user iframe release)?
-
Thanks in advance, Wolf :)


the main difference is the comments, with the iframe you get comments only if your button has a width of at least 400 pixels  with the XFBML version you get the comments always :)


http://developers.facebook.com/docs/reference/plugins/like
Title: Re: Facebook Like Mod
Post by: L'AltroWeb on November 04, 2010, 11:29:38 PM
Quote from: Miss All Sunday on November 04, 2010, 11:21:23 PM
the main difference is the comments, with the iframe you get comments only if your button has a width of at least 400 pixels  with the XFBML version you get the comments always :)

http://developers.facebook.com/docs/reference/plugins/like
My comment box is over 500px and comments works fine (also in homepage, with tinyportal box for topics) ;)
I've also switched language for like button (i've dropdown language menu for ita and eng) and put referrer (ref="***") :)

I've read the page yu've linked and i see:
Quotefb:admins or fb:app_id - A comma-separated list of either the Facebook IDs of page administrators or a Facebook Platform application ID. At a minimum, include only your own Facebook ID.
Just for this i think isn't required to make a custom app (but is required for comment box)

Anyway, thank'u for this work, this is a great mod (expecially for comment box - i can use with my custom page)  ;)
Title: Re: Facebook Like Mod
Post by: Alex' Manson on November 05, 2010, 05:07:12 AM
simple little question,
how doi change the like button?
i mean, i have another gray like button that will look better at my forum



===> recovered site and kicked hamed (long story) and copyright is back, to make sure: http://siskoplanet.tk
Title: Re: Facebook Like Mod
Post by: Suki on November 05, 2010, 11:35:29 AM
theres only two Color Scheme for the button, light and dark, if you want th dark one just add   colorscheme="dark"

to your button:  <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like colorscheme="dark"></fb:like>
Title: Re: Facebook Like Mod
Post by: Alex' Manson on November 05, 2010, 11:53:41 AM
thank you. :)
Title: Re: Facebook Like Mod
Post by: Mick. on November 05, 2010, 07:20:52 PM
There are 3 diff button colors.   

light
dark
evil
;)
Title: Re: Facebook Like Mod
Post by: Suki on November 05, 2010, 07:49:19 PM
ah! I forgot the evil one :P
Title: Re: Facebook Like Mod
Post by: Mick. on November 05, 2010, 08:25:09 PM
Quote from: Miss All Sunday on November 05, 2010, 07:49:19 PM
ah! I forgot the evil one :P

and who are you?   lol

changed names?
Title: Re: Facebook Like Mod
Post by: Drunken Clam on November 06, 2010, 05:51:16 AM
Quote from: Kill Me ☻ on November 05, 2010, 05:07:12 AM


===> recovered site and kicked hamed (long story) and copyright is back, to make sure: http://siskoplanet.tk


I think you should take another look!
Title: Re: Facebook Like Mod
Post by: Infitima on November 09, 2010, 06:34:49 PM
Does it work for RC4 yet? Tried it. Two things happened. Avatars that were larger and had scrollbars, lost their scrollbars.
And the comment box is under the bar O.o

Also.. is there any way we can request having it where it enables all forums automatically? Or by category instead of forum? Cause'... when you have like over 300 something boards as an RP site, it's kinda hard to go modify them all.
Title: Re: Facebook Like Mod
Post by: Neverhurry on November 12, 2010, 11:37:14 AM
Hi Bluedevil, that is a great MOD, but is it possible to let the "like" info appears on a Facebook page wall instead of Facebook users Recent Activity wall? Many thanks!
Title: Re: Facebook Like Mod
Post by: Mick. on November 12, 2010, 05:07:02 PM
Quote from: Neverhurry on November 12, 2010, 11:37:14 AM
Hi Bluedevil, that is a great MOD, but is it possible to let the "like" info appears on a Facebook page wall instead of Facebook users Recent Activity wall? Many thanks!
Im sure is possible to a degree but remember, i didnt write the Facebook 'like' app, Facebook did.  I only made it to work with SMF using Facebook's mod (requirements) in which is the "recent activity".
Title: Re: Facebook Like Mod
Post by: Neverhurry on November 13, 2010, 03:17:02 PM
Quote from: bluedevil on November 12, 2010, 05:07:02 PM
Quote from: Neverhurry on November 12, 2010, 11:37:14 AM
Hi Bluedevil, that is a great MOD, but is it possible to let the "like" info appears on a Facebook page wall instead of Facebook users Recent Activity wall? Many thanks!
Im sure is possible to a degree but remember, i didnt write the Facebook 'like' app, Facebook did.  I only made it to work with SMF using Facebook's mod (requirements) in which is the "recent activity".

Thank you Bluedevil!

A facebook page has a "recent activity" too. The problem is facebook page has a different url, something like: http://www.facebook.com/pages/piao-zai-hai-wai-Drifting-Overseas/169123193115432, which is quite different than a private account url like: http://www.facebook.com/profile.php?id=1493033217

That is why I don't know what to fill in the admin - configuration - Modification Settings - Miscellaneous, there is a option "Your Facebook Profile ID Number", as a facebook page doesn't have a profile ID number, what should I do?

Who understands facebook's application (what is a facebook application indeed? Is it something like SMF mod?) , and who can advise me how to create a app in facebook for a certain facebook page so the "like" info of my smf forum can appear there in the wall of the page. Any help will be highly appreciated, because the f...ing facebook is much more difficult to understand and to use than SMF, after having used it for 2 days, it really drives me nuts. ****** but I need facebook to attract some people to my smf forum.

Who
Title: Re: Facebook Like Mod
Post by: Mick. on December 04, 2010, 01:02:42 PM
Updated for RC4.

Changes...

- Removed the Open Graph as it seems to be a pain.
- Moved the "like" button to the actual post window below the user's post.
- Now showing FB avatars.
- Ability to also share it

Please uninstall previous versions before installing v. 1.4
Title: Re: Facebook Like Mod
Post by: Sakae on December 07, 2010, 12:53:06 PM
bluedevil, is it possible to change the Facebook like button to button_count layout instead of standard?

http://developers.facebook.com/docs/reference/plugins/like
Title: Re: Facebook Like Mod
Post by: ~DS~ on December 07, 2010, 02:07:32 PM
Quote from: Sakae on December 07, 2010, 12:53:06 PM
bluedevil, is it possible to change the Facebook like button to button_count layout instead of standard?

http://developers.facebook.com/docs/reference/plugins/like
SA's FB does offer button_count.
http://custom.simplemachines.org/mods/index.php?mod=2322
Title: Re: Facebook Like Mod
Post by: Mick. on December 07, 2010, 04:11:41 PM
Quote from: Sakae on December 07, 2010, 12:53:06 PM
bluedevil, is it possible to change the Facebook like button to button_count layout instead of standard?

http://developers.facebook.com/docs/reference/plugins/like
yes, I'll post tonight. I'm driving
Title: Re: Facebook Like Mod
Post by: Mick. on December 07, 2010, 11:03:10 PM
Quote from: Sakae on December 07, 2010, 12:53:06 PM
bluedevil, is it possible to change the Facebook like button to button_count layout instead of standard?

http://developers.facebook.com/docs/reference/plugins/like

@Sakae...

Open:
Themes/default/Display.template.php

Find:
layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>

Replace with:
layout="button_count" show_faces="false" width="450"></fb:like>
Title: Re: Facebook Like Mod
Post by: MaXiForum.cz on December 11, 2010, 01:29:58 PM
Nice modification man!
Two questions.

1. Is this actual on version 1.4: ?

Quote from: bluedevil on May 13, 2010, 01:28:23 PM
Pretty URL mod users

Open:
/Themes/default/Display.template.php

Find:
               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="300" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';


Replace with:
               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href="', $scripturl, '?topic=', $context['current_topic'], '" layout="standard" width="300" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';



2. How can I set facebook Like it button on every board at once? :)
Title: Re: Facebook Like Mod
Post by: Luke Wyrsta on December 13, 2010, 06:50:56 PM
Great work on this mod.

I've perused the thread but may have overlooked if someone else is experiencing this issue.

Seems to only show up on some threads? I can't put any explanation to why it only does some and not others.

I've modified both user and board permissions to allow FB like mod, but still it only shows up for very few topics?

Any thoughts on what is happening?
Title: Re: Facebook Like Mod
Post by: Mick. on December 13, 2010, 06:59:49 PM
Quote from: Luke Wyrsta on December 13, 2010, 06:50:56 PM
Great work on this mod.

I've perused the thread but may have overlooked if someone else is experiencing this issue.

Seems to only show up on some threads? I can't put any explanation to why it only does some and not others.

I've modified both user and board permissions to allow FB like mod, but still it only shows up for very few topics?

Any thoughts on what is happening?

This could be Facebook's server.  They're always tinkering.
Title: Re: Facebook Like Mod
Post by: Luke Wyrsta on December 13, 2010, 07:11:35 PM
Quote from: twinsen on October 07, 2010, 12:58:51 AM
This is okey ??

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Flulzimg.com%2Fi6%2F67b045ae.jpg&hash=0d312b4696e1c8754b768c964c800b6caf4c56d2)

Quote from: bluedevil on June 18, 2010, 09:41:11 PM
FB Like v.1.3 added to mod site..  Now it uses the open graph protocol.

When a user likes a topic, it will create a new fan page for the topic.  You may end up with thousands of fan pages but thats ok.

In admin, ... add your app ID, Facebook User ID and select which boards you want folks to like topics.


Uninstall older version 1.2 before installing 1.3!

select which boards you want folks to like topics: I dont see this ...

The mod dont work for me

No of these options appear for me.

Just the enable FB Like app tick box.
Title: Re: Facebook Like Mod
Post by: Mick. on December 13, 2010, 07:13:14 PM
Its where you modify each board...

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=381323.0;attach=145071;image)
Title: Re: Facebook Like Mod
Post by: Luke Wyrsta on December 13, 2010, 07:31:19 PM
Thanks for your help.

Any idea why I don't get those additional options as per the above post?

Thanks,
Luke
Title: Re: Facebook Like Mod
Post by: Mick. on December 13, 2010, 07:33:33 PM
Quote from: Luke Wyrsta on December 13, 2010, 07:31:19 PM
Thanks for your help.

Any idea why I don't get those additional options as per the above post?

Thanks,
Luke

What addition options you refering to?
Title: Re: Facebook Like Mod
Post by: Luke Wyrsta on December 13, 2010, 07:36:58 PM
Maybe I confused myself.

I saw this image posted by a previous user: http://i6.lulzimg.com/i/67b045ae.jpg

Luke
Title: Re: Facebook Like Mod
Post by: Mick. on December 13, 2010, 07:40:54 PM
Quote from: Luke Wyrsta on December 13, 2010, 07:36:58 PM
Maybe I confused myself.

I saw this image posted by a previous user: http://i6.lulzimg.com/i/67b045ae.jpg

Luke

Oh ok.  Thats version v.1.3

The latest version,1.4 doesnt have it.
Title: Re: Facebook Like Mod
Post by: Luke Wyrsta on December 13, 2010, 07:42:19 PM
Thanks dude.

Guess I'll just have to wait until FB stops playn around.

Thanks.
Luke
Title: Re: Facebook Like Mod
Post by: Sakae on December 14, 2010, 10:47:55 AM
Quote from: bluedevil on December 07, 2010, 11:03:10 PM
Quote from: Sakae on December 07, 2010, 12:53:06 PM
bluedevil, is it possible to change the Facebook like button to button_count layout instead of standard?

http://developers.facebook.com/docs/reference/plugins/like

@Sakae...

Open:
Themes/default/Display.template.php

Find:
layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>

Replace with:
layout="button_count" show_faces="false" width="450"></fb:like>

Thank you bluedevil.

I did this modification, but it doesn't works. I guess I might have to configure on my Facebook app, perhaps? I empty the cache and done all maintenance routines; even switched the show_faces=true to false (and to true again, just to be sure my edits were working, and they were), but haven't success.

Do you got this working?
Title: Re: Facebook Like Mod
Post by: Mick. on December 14, 2010, 10:53:04 AM
@sakae, I have not tried this yet but I'll give it a shot.
Title: Re: Facebook Like Mod
Post by: MaXiForum.cz on December 14, 2010, 11:36:20 AM
Quote from: MaXiForum.cz on December 11, 2010, 01:29:58 PM
Nice modification man!
Two questions.

1. Is this actual on version 1.4: ?

Quote from: bluedevil on May 13, 2010, 01:28:23 PM
Pretty URL mod users

Open:
/Themes/default/Display.template.php

Find:
               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="300" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';


Replace with:
               <!-- Facebook Like Button -->
               <span style="float:right; margin-top:4px;">
                  <fb:like href="', $scripturl, '?topic=', $context['current_topic'], '" layout="standard" width="300" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';



2. How can I set facebook Like it button on every board at once? :)

UP ::)
Title: Re: Facebook Like Mod
Post by: Mick. on December 14, 2010, 08:19:25 PM
Try this for pretty URL mod...

                  <fb:like href="', $scripturl, '?topic=', $context['current_topic'], '" layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>


Assuming you're using v 1.4  ;)
Title: Re: Facebook Like Mod
Post by: ilovelouis on December 15, 2010, 10:45:39 AM
great mod  :)
Title: Re: Facebook Like Mod
Post by: MaXiForum.cz on December 15, 2010, 11:06:12 AM
OK thank you :)
Title: Re: Facebook Like Mod
Post by: Luke Wyrsta on December 16, 2010, 12:13:09 AM
So...I "liked" one of the topics on my forum....appears on my Facebook.

Now I go back to the topic and the whole "Like" module has disappeared, whilst the "like" is still present on FB.

Very quirky FB.... :o
Title: Re: Facebook Like Mod
Post by: mtdesign on December 20, 2010, 02:53:56 PM
I may have overlooked the answer to this question somewhere, but I am using SMF 2.0 RC3 and when I "like" something it appears on my Facebook but it appears as "Scott T***** likes Login" it doesn't say exactly what I like..is this a permission issue I'm missing? all help appreciated.
Title: Re: Facebook Like Mod
Post by: Spoogs on December 20, 2010, 02:57:48 PM
If you like something that is not available to guests.. it shows as login because well you'd have to be logged in to view it
Title: Re: Facebook Like Mod
Post by: mtdesign on December 20, 2010, 03:31:08 PM
Well I have it set up that guests can view the page or topic but they aren't allowed to post, but it still shows up as login. I have even tried it with allowing guests to post and it still shows up as login, any ideas?
Title: Re: Facebook Like Mod
Post by: Spoogs on December 20, 2010, 03:41:47 PM
link please
Title: Re: Facebook Like Mod
Post by: mtdesign on December 20, 2010, 03:47:13 PM
*Link Removed by myself*
Title: Re: Facebook Like Mod
Post by: Spoogs on December 20, 2010, 03:56:28 PM
Yeah i see what you mean... it really shouldnt be doing that, maybe the mod author can look into it.
Title: Re: Facebook Like Mod
Post by: mtdesign on December 20, 2010, 03:57:53 PM
Okay I will keep checking back, but thanks for looking into it for me I appreciate it.
Title: Re: Facebook Like Mod
Post by: Spoogs on December 20, 2010, 04:10:17 PM
You're welcome...
Title: Re: Facebook Like Mod
Post by: Son of Man on December 21, 2010, 12:21:46 AM
I like this mod.  But I would prefer that it shared the same line with the Twitter mod.  Would that be an easy tweak?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc4%2Fjakejensen76%2Ftwitterfacebook.jpg&hash=aaf79201650cb702f8ceff0f27344861f21ea23e)

Title: Re: Facebook Like Mod
Post by: uzomaeze on December 21, 2010, 05:09:47 AM
hi, I use a forum with the smf 1.1.8, can this facebook mod be used on my type of forum in this case egusiland.com?

regards
Title: Re: Facebook Like Mod
Post by: mtdesign on December 21, 2010, 03:02:05 PM
Quote from: uzomaeze on December 21, 2010, 05:09:47 AM
hi, I use a forum with the smf 1.1.8, can this facebook mod be used on my type of forum in this case egusiland.com?

regards


You would have to check the mod download page and see if it has manual instructions for installing it on your version of SMF.
Title: Re: Facebook Like Mod
Post by: mtdesign on December 21, 2010, 03:12:10 PM
I am still having trouble getting this mod to work for me using 2.0 RC3. I can like things and stuff but when it post to my facebook it doesn't show what I like it just says I like "Login" but if I click on Login it will take me to whatever topic I like..any ideas?
Title: Re: Facebook Like Mod
Post by: Jue on December 21, 2010, 03:12:36 PM
I get the following error whilst trying to install this mod...

QuoteFatal error: require() [function.require]: Failed opening required '/*/*/domains/totaltechtalk.co.uk/public_html/Packages/temp/./installFBdatabase.php' (include_path='.:/usr/local/lib/php') in /*/*/domains/totaltechtalk.co.uk/public_html/Sources/Packages.php on line 945
Title: Re: Facebook Like Mod
Post by: Hoodie on December 22, 2010, 05:14:04 AM
Not sure if it's just me or what but the actual permissions system is not working the current way it is set up..  No matter if you click to Enable Topic Like under Miscellaneous Settings, all boards are showing it whether or not I tick the Enable on a per board basis..  I think the following is the culprit:

Replace:


      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
echo'
<div id="fb-root"><>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>

               <!-- End of Facebook Like Button --><br />';



With:


      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"><>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>

               <!-- End of Facebook Like Button --><br />';
}



The only thing I did was add {} around the whole part after the first if statement to include the whole code, otherwise just the script loading was being included..  Thought I'd let you know..
Title: Re: Facebook Like Mod
Post by: Hoodie on December 22, 2010, 05:15:58 AM
Also, is there a way to change the part on Facebook where it says:

*** likes (Topic Name) on (Webste).

for website, it gives me the web address, not the name of the forum..  Is there a way to get the forum name instead of the .com address?
Title: Re: Facebook Like Mod
Post by: Sapinho® on December 22, 2010, 11:16:41 PM
Hi bluedevil, i give thank u for this great mod

but i have problem

after install the mod, this enable automatic... aun cuando yo no active desde el panel de administracion, y desde las opciones de cada foro u can tell me how fix this?

i uninstall and install again but same error ty regards
Title: Re: Facebook Like Mod
Post by: mtdesign on December 23, 2010, 01:48:40 AM
Quote from: Sapinho® on December 22, 2010, 11:16:41 PM
Hi bluedevil, i give thank u for this great mod

but i have problem

after install the mod, this enable automatic... aun cuando yo no active desde el panel de administracion, y desde las opciones de cada foro u can tell me how fix this?

i uninstall and install again but same error ty regards

I am willing to help you but I don't understand what you're asking exactly, could you please be a little more specific?


Also, is there a way we can edit the code to where it doesn't create a new facebook page every single time we like something? Like for example could we create a fan page or group page and each time we like something it posts on the fan page instead of creating a seperate page every single time?
Title: Re: Facebook Like Mod
Post by: DanteOz on December 23, 2010, 09:46:35 AM
with this mod, can i also have like button on board index, and share button in topics? thnx
Title: Re: Facebook Like Mod
Post by: mtdesign on December 23, 2010, 02:44:51 PM
Quote from: Hoodie on December 22, 2010, 05:15:58 AM
Also, is there a way to change the part on Facebook where it says:

*** likes (Topic Name) on (Webste).

for website, it gives me the web address, not the name of the forum..  Is there a way to get the forum name instead of the .com address?


Not sure if this is what you mean but if you edit the index.template.php and find

<head>

add after it

<meta property="og:site_name" content="Your Site/Forum Name would go here"/>



Title: Re: Facebook Like Mod
Post by: mtdesign on December 23, 2010, 02:48:22 PM
Quote from: DanteOz on December 23, 2010, 09:46:35 AM
with this mod, can i have also have like button on board index, and share button in topics? thnx

There is a Share mod for smf that you could use that allows you to share topics on various social networking sites, but depending on what version of SMF you use then you may have to install the mod manually.
Title: Re: Facebook Like Mod
Post by: DanteOz on December 23, 2010, 05:17:02 PM
ok thanks, all i need is share on few social sites & like in all my topics, then like in the board index. the sa facebook connect i am using is always reseting the number of likes to 0 for no resson. pls can u suggest mods for me
Title: Re: Facebook Like Mod
Post by: mtdesign on December 23, 2010, 05:52:59 PM
What version of SMF are you currently using?

This one is called Share Your Topic

http://custom.simplemachines.org/mods/index.php?mod=2111 (http://custom.simplemachines.org/mods/index.php?mod=2111)

Compatible With:
    1.1.11, 1.1.12, 2.0 RC3, 2.0 RC4   - But can be manually installed on other versions, but I personally haven't used this one.
Title: Re: Facebook Like Mod
Post by: eslao on December 23, 2010, 11:15:35 PM
2.0 RC4 + pretty urls 1.0RC4 is not compatible with this mode
have anyone any idea ?
Title: Re: Facebook Like Mod
Post by: mtdesign on December 24, 2010, 01:29:01 AM
Quote from: eslao on December 23, 2010, 11:15:35 PM
2.0 RC4 + pretty urls 1.0RC4 is not compatible with this mode
have anyone any idea ?

There is some replies earlier in this thread that has the code to get the mod to work with pretty urls....just read from page 1 until you come across it and see if that helps ya.


updated: okay it looks like theres a code on page 8 that will get the mod to work with the pretty url mod..but still may wanna read from page 1 might see something else as well.
Title: Re: Facebook Like Mod
Post by: eslao on December 24, 2010, 02:41:18 AM
i read and tried but it made no result :) but i ll try again now

///edit
error gain
Title: Re: Facebook Like Mod
Post by: DanteOz on December 24, 2010, 07:03:15 AM
thanks, what about like button on board index?
Title: Re: Facebook Like Mod
Post by: mtdesign on December 24, 2010, 02:35:52 PM
Quote from: eslao on December 24, 2010, 02:41:18 AM
i read and tried but it made no result :) but i ll try again now

///edit
error gain

Okay I will see if I can figure something out for you if the mod creator doesn't respond first.
Title: Re: Facebook Like Mod
Post by: mtdesign on December 24, 2010, 02:38:01 PM
Quote from: DanteOz on December 24, 2010, 07:03:15 AM
thanks, what about like button on board index?


Are you wanting a Like button to appear at the top of the board index? like the FB Connect but instead show a like button?
Title: Re: Facebook Like Mod
Post by: Mick. on December 25, 2010, 08:40:46 AM
Quote from: eslao on December 23, 2010, 11:15:35 PM
2.0 RC4 + pretty urls 1.0RC4 is not compatible with this mode
have anyone any idea ?

Try this..
http://www.simplemachines.org/community/index.php?topic=381323.msg2881503#msg2881503
Title: Re: Facebook Like Mod
Post by: Mick. on December 25, 2010, 08:56:18 AM
@Hoodie.

Thanx for the find and verified.   Im surprised no one caught it earlier. 500 downloads later lol


Zip updated  ;)
Title: Re: Facebook Like Mod
Post by: Mick. on December 25, 2010, 09:18:04 AM
Quote from: Son of Man on December 21, 2010, 12:21:46 AM
I like this mod.  But I would prefer that it shared the same line with the Twitter mod.  Would that be an easy tweak?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc4%2Fjakejensen76%2Ftwitterfacebook.jpg&hash=aaf79201650cb702f8ceff0f27344861f21ea23e)



You have a link of that twitter mod?
Title: Re: Facebook Like Mod
Post by: Sakae on December 25, 2010, 09:52:07 AM

Quote from: Son of Man on December 21, 2010, 12:21:46 AM
I like this mod.  But I would prefer that it shared the same line with the Twitter mod.  Would that be an easy tweak?


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc4%2Fjakejensen76%2Ftwitterfacebook.jpg&hash=aaf79201650cb702f8ceff0f27344861f21ea23e)


I did on mine, is pretty neat http://www.tigrelog.com.br/index.php?topic=6513


Just edit this on your theme's Display.template.php:


1) BACKUP your Display.template.php (OF COURSE!);


2) Search for "// Let's show the button... if it's the first topic :P" and erase ALL after this untill the following line "// Maybe they want to report this post to the moderator(s)?"


3) Add this code in that place:



// Let's show the button... if it's the first topic :P
if ($message['id'] == $context['topic_first_message']) {


        echo'<br><table border="0"><tr><td><a href="http://twitter.com/share" class="twitter-share-button">', $txt['retweet'],'</a></td><td>&nbsp;</td><td>
<div id="fb-root"><>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>


<!-- Facebook Like Button -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="button_count" show_faces="true" width="450"></fb:like>
<!-- End of Facebook Like Button -->
</td></tr></table><br />'; 
  }
// Maybe they want to report this post to the moderator(s)?



Hope you got working now! :)
Title: Re: Facebook Like Mod
Post by: Hack-King on December 25, 2010, 01:20:04 PM
cool
Title: Re: Facebook Like Mod
Post by: derby on December 27, 2010, 01:30:24 PM
Quote from: bluedevil on July 27, 2010, 04:54:56 PM
Quote from: skydiamond on July 27, 2010, 09:33:29 AM
How I could display the button only in public sections?

Go to admin--->forums--->boards----->modify boards.

Select what boards you want the "Facebook Like" button to show.
how do u make the ILIKE button show below the menu?
Title: Re: Facebook Like Mod
Post by: Mick. on December 27, 2010, 01:48:37 PM
Quote from: derby on December 27, 2010, 01:30:24 PM
how do u make the ILIKE button show below the menu?

If you want a 'like' button for folks to like your forum, use this:
<iframe src="http://www.facebook.com/plugins/like.php?href=www.myurl.com&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>

Make sure you replace 'www.myurl.com' in the code with your forum url.

You can place the code using the ads mods youre using.
Title: Re: Facebook Like Mod
Post by: derby on December 27, 2010, 02:11:34 PM
But on my topic the Ilike button is not showing dont rilly know why
Title: Re: Facebook Like Mod
Post by: Hoodie on December 30, 2010, 02:17:31 AM
Quote from: mtdesign on December 23, 2010, 02:44:51 PM
Quote from: Hoodie on December 22, 2010, 05:15:58 AM
Also, is there a way to change the part on Facebook where it says:

*** likes (Topic Name) on (Webste).

for website, it gives me the web address, not the name of the forum..  Is there a way to get the forum name instead of the .com address?


Not sure if this is what you mean but if you edit the index.template.php and find

<head>

add after it

<meta property="og:site_name" content="Your Site/Forum Name would go here"/>


That didn't work..  I'm not sure where FB is pulling that from but other sites are obviously using it..

I've hard refreshed and emptied the file cache btw as well..
Title: Re: Facebook Like Mod
Post by: Aleksi "Lex" Kilpinen on December 30, 2010, 02:23:46 AM
Quote from: mtdesign on December 20, 2010, 02:53:56 PM
I may have overlooked the answer to this question somewhere, but I am using SMF 2.0 RC3 and when I "like" something it appears on my Facebook but it appears as "Scott T***** likes Login" it doesn't say exactly what I like..is this a permission issue I'm missing? all help appreciated.
Hi mydesign, I've noticed that FB doesn't always check pages again - but keeps the old results from the first time for some period of time. So, when you first probably had a permission issue with this while trying, and perhaps changed the settings later - the FB post would not reflect the changes immediately. Have you tried with different topics / boards if it still does the same?
Title: Re: Facebook Like Mod
Post by: Hoodie on December 30, 2010, 02:49:38 AM
Quote from: Hoodie on December 30, 2010, 02:17:31 AM
Quote from: mtdesign on December 23, 2010, 02:44:51 PM
Quote from: Hoodie on December 22, 2010, 05:15:58 AM
Also, is there a way to change the part on Facebook where it says:

*** likes (Topic Name) on (Webste).

for website, it gives me the web address, not the name of the forum..  Is there a way to get the forum name instead of the .com address?


Not sure if this is what you mean but if you edit the index.template.php and find

<head>

add after it

<meta property="og:site_name" content="Your Site/Forum Name would go here"/>


That didn't work..  I'm not sure where FB is pulling that from but other sites are obviously using it..

I've hard refreshed and emptied the file cache btw as well..

Nevermind me..  Forget what I said..  It worked perfectly..  Guess I just didn't get FB's servers enough time to update it..  The good thing is that it will also fix old links that were liked as well..

BD, if you want to add the following to the mod package, it will make it look better on facebook's website when people like links..

In Index.template.php, find:<head>


Replace with:<head>
<meta property="og:site_name" content="', $context['forum_name'], '"/>



It should install on every theme as each will have a <head> tag and each will have called $context in the function..


Hope this helps..
Title: Re: Facebook Like Mod
Post by: DanteOz on December 31, 2010, 08:04:45 AM
how can i make the like button show on first message on every topic page, assuming the topic is more than 1 page
Title: Re: Facebook Like Mod
Post by: haroldgtv on January 01, 2011, 07:42:26 PM
Hallo,

I have a problem installing the mod.

I have upload the zip file from my pc.  And then i try to install it.

This is what is says

QuoteType    Actie    Omschrijving
   1.    Voer code uit    installFBdatabase.php    
*    2.    Voer aanpassing uit    ./Sources/Display.php    Succes
      1.    Voeg toe na    ./Sources/Display.php    Succes
*    3.    Voer aanpassing uit    ./Themes/default/Display.template.php    Succes
      1.    Voeg toe na    ./Themes/default/Display.template.php    Succes
*    4.    Voer aanpassing uit    ./Themes/default/ManageBoards.template.php    Succes
      1.    Voeg toe voor    ./Themes/default/ManageBoards.template.php    Succes
*    5.    Voer aanpassing uit    ./Sources/ManageSettings.php    Succes
      1.    Voeg toe na    ./Sources/ManageSettings.php    Succes
*    6.    Voer aanpassing uit    ./Sources/ManageBoards.php    Succes
      1.    Voeg toe na    ./Sources/ManageBoards.php    Succes
      2.    Voeg toe na    ./Sources/ManageBoards.php    Succes
*    7.    Voer aanpassing uit    ./Sources/Subs-Boards.php    Succes
      1.    Voeg toe na    ./Sources/Subs-Boards.php    Succes
      2.    Voeg toe na    ./Sources/Subs-Boards.php    Succes
      3.    Voeg toe na    ./Sources/Subs-Boards.php    Succes
      4.    Voeg toe voor    ./Sources/Subs-Boards.php    Succes
*    8.    Voer aanpassing uit    ./Sources/Load.php    Succes
      1.    Voeg toe na    ./Sources/Load.php    Succes
      2.    Voeg toe na    ./Sources/Load.php    Succes
*    9.    Voer aanpassing uit    ./Themes/default/languages/Modifications.english.php    Succes
      1.    Voeg toe voor    ./Themes/default/languages/Modifications.english.php    Succes
   10.    Voer aanpassing uit    ./Themes/default/languages/Modifications.english-utf8.php    Bestand overgeslagen

(succes = successful in dutch)

So it seems ok.. and then i click the install button.. and it comes up with the following message.

QuoteIncorrect table name 'alfagiu_forum.smf_boards'
Bestand: /home/alfagiu/domains/alfagiuliettaclub.nl/public_html/forum/Packages/temp/installFBdatabase.php
Regel: 24

The forum works great besides this problem.. no error's what so ever.  And also installed a youtube mod without any problems.

Can somebody help me please.  I'm really no expert.  So please in a simple way :)

I have checked line 24 in the installfbdatabase.php file but there is nothing there ??

Quote<?php
/******************************************************************************
* installFBdatabase.php                                                       *
*******************************************************************************
* Facebook LIke Mod  -by bluedevil bluedevilcustoms.com                       *
******************************************************************************/
// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
   require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
   die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

db_extend('packages');

$smcFunc['db_add_column'] (
   '{db_prefix}boards',
   array
   (
      'name' => 'facebooklike_board_enable',
                'type' => 'tinyint',
                'size' => 1,
   )
);

?>
Title: Re: Facebook Like Mod
Post by: dvera on January 01, 2011, 11:46:31 PM
I'm having the following errors when trying to install:

./Sources/Subs-Boards.php

Find:         b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.id_profile,
Add:         b.facebookLike_board_enable,


./Sources/Load.php

Find: b.id_theme, b.override_theme, b.count_posts, b.id_profile,
Add: b.facebookLike_board_enable,


I'm using SMF 2.0 RC3 with a custom template

I manually searched in the files for something similar without success...
Title: Re: Facebook Like Mod
Post by: magarto on January 02, 2011, 08:02:53 AM
I have similar problems than http://www.simplemachines.org/community/index.php?topic=381323.msg2712844#msg2712844
Using this same post, it solved it but now, in Facebook wall, I cannot read the name of the post... only the url.
How can I solve it?
Thanks in advance.
Title: Re: Facebook Like Mod
Post by: Hoodie on January 02, 2011, 11:04:47 PM
Quote from: magarto on January 02, 2011, 08:02:53 AM
I have similar problems than http://www.simplemachines.org/community/index.php?topic=381323.msg2712844#msg2712844 (http://www.simplemachines.org/community/index.php?topic=381323.msg2712844#msg2712844)
Using this same post, it solved it but now, in Facebook wall, I cannot read the name of the post... only the url.
How can I solve it?
Thanks in advance.

Find this in your Index.template.php:
<head>


Add after:
<meta property="og:site_name" content="', $context['forum_name'], '"/>
Title: Re: Facebook Like Mod
Post by: taucher on January 03, 2011, 07:37:56 AM
I have installed it, but when i click like, "error" appears.

Facebook says: Die Seite unter http://www.taucherforum.at/index.php?topic=7647layout%3D%22standard%22 kann nicht aufgerufen werden.

How can i fix this?
Title: Re: Facebook Like Mod
Post by: mortymoose on January 05, 2011, 07:42:40 AM
Quote from: dvera on January 01, 2011, 11:46:31 PM
I'm having the following errors when trying to install:

./Sources/Subs-Boards.php

Find:         b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.id_profile,
Add:         b.facebookLike_board_enable,


./Sources/Load.php

Find: b.id_theme, b.override_theme, b.count_posts, b.id_profile,
Add: b.facebookLike_board_enable,


I'm using SMF 2.0 RC3 with a custom template

I manually searched in the files for something similar without success...

Using RC4 with the same error..... any luck on what to do.....er...uhm, bearing in mind that I am a newbie kinda guy that knows where to switch my monitor on....
Title: Re: Facebook Like Mod
Post by: kenso on January 06, 2011, 12:18:34 AM
Hi Blue Devil, Is the some way to have it for each post rather than the one at the top? I am sure that someone has asked this already but couldn't find it.

Kenso
ozfarmer.com
Title: Re: Facebook Like Mod
Post by: Mick. on January 06, 2011, 10:36:23 AM
Quote from: kenso on January 06, 2011, 12:18:34 AM
Hi Blue Devil, Is the some way to have it for each post rather than the one at the top? I am sure that someone has asked this already but couldn't find it.

Kenso
ozfarmer.com

Yes, in ./Themes/default/Display.template.php

find:
    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">


replace with:

echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
Title: Re: Facebook Like Mod
Post by: kenso on January 06, 2011, 05:03:35 PM
Sorry BD, didn't change it, still the first post only... :'(

Kenso
ozfarmer.com
Title: Re: Facebook Like Mod
Post by: JeneeB53 on January 07, 2011, 10:24:28 AM
What do I need to do to put it back into the heading of the thread, such as here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=381323.0;attach=145067;image
(looks like that was the original setting, but was changed with the most recent release)

Thanks!
Title: Re: Facebook Like Mod
Post by: Mick. on January 07, 2011, 10:39:53 AM
@jenee

open Display.template.php

Find:
<p id="whoisviewing" class="smalltext">';

add after:
      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br /><br />';
}
Title: Re: Facebook Like Mod
Post by: JeneeB53 on January 07, 2011, 10:08:04 PM
Wow, that was a quick reply. I've modified the file as you suggested, but for some reason it is not showing up. Would you mind taking a look??
Title: Re: Facebook Like Mod
Post by: Mick. on January 07, 2011, 10:13:08 PM
Quote from: JeneeB53 on January 07, 2011, 10:08:04 PM
Wow, that was a quick reply. I've modified the file as you suggested, but for some reason it is not showing up. Would you mind taking a look??

Is this for your royal forum?  Because this mod is for smf 2.0
Title: Re: Facebook Like Mod
Post by: JeneeB53 on January 07, 2011, 10:14:58 PM
I have it on a test site now, that's running SMF 2. Just getting ready for the final release :D
Title: Re: Facebook Like Mod
Post by: Mick. on January 07, 2011, 10:15:49 PM
Quote from: JeneeB53 on January 07, 2011, 10:14:58 PM
I have it on a test site now, that's running SMF 2. Just getting ready for the final release :D

You also have to activate it in admin and when modifying boards.
Title: Re: Facebook Like Mod
Post by: JeneeB53 on January 07, 2011, 10:16:43 PM
Yup, all activated - it disappeared when I moved the code
Title: Re: Facebook Like Mod
Post by: Mick. on January 07, 2011, 10:17:02 PM
Quote from: JeneeB53 on January 07, 2011, 10:16:43 PM
Yup, all activated - it disappeared when I moved the code

Hang on,...
Title: Re: Facebook Like Mod
Post by: Mick. on January 07, 2011, 10:23:26 PM
@jenne

Sorry i mislead you. I was looking at an older code.

Revert to where it was before....

Open, /Themes/default/Display.template.php

Find:
<span id="author">', $txt['author'], '</span>

Replace with:

<span id="author">', $txt['author'], '</span>';


      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button -->';
}
echo'


See if this works ;)
Title: Re: Facebook Like Mod
Post by: JeneeB53 on January 07, 2011, 10:42:08 PM
Oh dear, Template Parse Error with that one...

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in .../Themes/default/Display.template.php on line 211

202:                <span style="float:left;">
203: <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
204:                   <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
205:                </span>
206:                <!-- End of Facebook Like Button -->';
207: }
208: echo'
209:
210: echo'

211: ', $txt['topic'], ': ', $context['subject'], '  (', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')

212: </h3>
213: </div>';
214:
215: if (!empty($settings['display_who_viewing']))



I removed that second echo ' on line 210, which fixed the error - but the like button still does not show :lol:
Title: Re: Facebook Like Mod
Post by: ysNoi on January 10, 2011, 05:34:22 AM
I like this mod very well...

Thanks a lot...
Title: Re: Facebook Like Mod
Post by: Clickout on January 15, 2011, 10:46:26 PM
I've manually installed the facebook like mod and "../installFBdatabase.php" is executed but the button is not showing up, no error reported and i checked the enable facebook mod in my admin panel

what should i do? pl. help.
Title: Re: Facebook Like Mod
Post by: Mick. on January 15, 2011, 10:49:13 PM
Quote from: Clickout on January 15, 2011, 10:46:26 PM
I've manually installed the facebook like mod and "../installFBdatabase.php" is executed but the button is not showing up, no error reported and i checked the enable facebook mod in my admin panel

what should i do? pl. help.
Double check with the parser. Make sure you made the edits to the default theme..

/Sources/Display.php
/Themes/default/Display.template.php
Title: Re: Facebook Like Mod
Post by: Clickout on January 15, 2011, 11:03:41 PM
Thanks for your fast reply,

I've re checked the mentioned files and there is no mistake in it. i'm using a custom theme.

edit:
when i executed the ../installFBdatabase.php file, it returned a blank screen. i'm using 2.0rc4

edit:
Is there is a chance of CHMOD issues.? pl.help.
Title: Re: Facebook Like Mod
Post by: Phoenix1127 on January 21, 2011, 02:28:45 PM
Hello All,

I was asked to help a friend get this Mod installed on his SMF forum and have pretty much gotten it working, thanks in part to this thread.  I am still confused about the fact that on the Facebook Activity feed it is showing as [username] likes Login on iDENTiTY CRiSiS.  I am assuming that this is happening because the boards in question are restricted to particular membergroups, but I would think it would be fine to display the topic name with the link and let the board show a "You are not allowed to view this topic" message if someone without permissions were to click on the link.  Or is there something else I am missing?  I haven't seen a definitive answer to this question in this thread yet, but I apologize if it is there and I missed it.  Thanks for a great Mod and for any help you can provide.
Title: Re: Facebook Like Mod
Post by: Clickout on February 06, 2011, 06:51:59 AM
i've installed the fb like mod, the button shows up correctly in posts but the pop up is not opening.

i copied the script from my forum page and created an html page to test the script; the pop up opened correctly in my html file.

how can i solve the problem?
Title: Re: Facebook Like Mod
Post by: king kratos on February 24, 2011, 09:14:30 PM
I installed this and it doesn't seem to be working properly.

Everything works in the forums, but nothing shows up on Facebook. When I like a post, it shows that I liked it, but the post never shows up in facebook, anywhere.

Did I do something wrong?


***Scratch that! It does show up. However, it doesn't announce it on the news feed. Is this supposed to happen this way? If so, is there a way to make it announce that I have liked a post or topic in my news feed as compared to just on my profile?

Kratos
Title: Re: Facebook Like Mod
Post by: Mick. on February 24, 2011, 09:34:28 PM
Quote from: king kratos on February 24, 2011, 09:14:30 PM
I installed this and it doesn't seem to be working properly.

Everything works in the forums, but nothing shows up on Facebook. When I like a post, it shows that I liked it, but the post never shows up in facebook, anywhere.

Did I do something wrong?


***Scratch that! It does show up. However, it doesn't announce it on the news feed. Is this supposed to happen this way? If so, is there a way to make it announce that I have liked a post or topic in my news feed as compared to just on my profile?

Kratos

King, im not sure if 'likes' are shown in news feed.  Also it may be a Facebook behavior in which i cannot fix.
Title: Re: Facebook Like Mod
Post by: Aleksi "Lex" Kilpinen on February 24, 2011, 11:51:11 PM
Likes are shown in recent activity, not posted to the news like shares.
Title: Re: Facebook Like Mod
Post by: zanadu_celal on February 25, 2011, 05:42:55 AM
not working :(
Title: Re: Facebook Like Mod
Post by: !RFAN on February 25, 2011, 09:09:14 AM
how to add this to aeva media gallery?
Title: Re: Facebook Like Mod
Post by: Mick. on February 25, 2011, 09:20:00 AM
Quote from: !RFAN on February 25, 2011, 09:09:14 AM
how to add this to aeva media gallery?
I'm not familiar with that mod as I don't use it. Your best bet is to post in their thread.
Title: Re: Facebook Like Mod
Post by: Pupo on March 06, 2011, 04:03:09 AM
I install mod on RC5, and broke default template  :( Any sugestion?

Pls help
Title: Re: Facebook Like Mod
Post by: RvG on March 11, 2011, 12:41:15 PM
worked fine on my rc5 installation even I have so many mods installed already. Nice one. :)
Title: Re: Facebook Like Mod
Post by: therealaru on March 12, 2011, 12:25:44 PM
I just finished installing the FB like mod yesterday, for some odd reason I do not see any like button, and also I receive this error when I try to create a new forum :

Field 'facebooklike_board_enable' doesn't have a default value
File: C:\inetpub\wwwroot\Sources\Subs-Boards.php
Line: 801

I looked into the php file itself, went to the actual lines but since I do not personally remember any of my old php knowledge from my phpbb3 trouble shooting days, im at a loss. So I was wondering if there would be any way to uninstall it or at least get it working without that error. Any help would be much appreciated, also apologies for any inconvenience.

Forgot to say I have 2.0 RC5
Title: Re: Facebook Like Mod
Post by: RvG on March 12, 2011, 12:38:40 PM
Quote from: therealaru on March 12, 2011, 12:25:44 PM
I just finished installing the FB like mod yesterday, for some odd reason I do not see any like button, and also I receive this error when I try to create a new forum :

Field 'facebooklike_board_enable' doesn't have a default value
File: C:\inetpub\wwwroot\Sources\Subs-Boards.php
Line: 801

I looked into the php file itself, went to the actual lines but since I do not personally remember any of my old php knowledge from my phpbb3 trouble shooting days, im at a loss. So I was wondering if there would be any way to uninstall it or at least get it working without that error. Any help would be much appreciated, also apologies for any inconvenience.

Forgot to say I have 2.0 RC5

seems you have to install it manually. some of your mods had changed the subs-board.php
Title: Re: Facebook Like Mod
Post by: therealaru on March 12, 2011, 12:47:23 PM
*Reinstalled just to give it a shot, received the following once I tried to create a board : Field 'facebooklike_board_enable' doesn't have a default value
File: C:\inetpub\wwwroot\Sources\Subs-Boards.php
Line: 808*

Was wondering how to fix, or remove this mod.. I have been looking at both of the codes and also took a look into my sub-boards.php, but facebook like is everywhere in there, so I would imagine removing every bit would eliminate that aspect, but I am weary of what to remove. Any help in that area would be much appreciated, as I run a game forum and cannot add any more forums due to this issue. :-/

Also, since this is a DB only error, what would be the default value required for it to work?
Title: Re: Facebook Like Mod
Post by: MATTEK on March 15, 2011, 01:11:51 PM
I'm also unable to see the like button after installing and enabling. RC5.
Title: Re: Facebook Like Mod
Post by: TheListener on March 16, 2011, 07:46:18 PM
Installed the mod with only a couple edits required.

The mod has been activated in the admin section.

However I see no Facebook Likes on the topics.  :(

Using RC4 on www.miltonkeynesaware.co.cc/mkaforum

There were no errors once installed.

Title: Re: Facebook Like Mod
Post by: Mick. on March 16, 2011, 07:52:18 PM
Quote from: Brack1 on March 16, 2011, 07:46:18 PM
Installed the mod with only a couple edits required.

The mod has been activated in the admin section.

However I see no Facebook Likes on the topics.  :(

Using RC4 on www.miltonkeynesaware.co.cc/mkaforum

There were no errors once installed.



What couple edits required?  Because of the twitter mod you have there?


Title: Re: Facebook Like Mod
Post by: TheListener on March 16, 2011, 07:58:20 PM
Second edit on Sources/ Manage Boards

and second edit on Sources/ Sub Board

Plus the Sources / Manage Settings edit.
Title: Re: Facebook Like Mod
Post by: Mick. on March 16, 2011, 09:05:02 PM
Quote from: Brack1 on March 16, 2011, 07:58:20 PM
Second edit on Sources/ Manage Boards

and second edit on Sources/ Sub Board

Plus the Sources / Manage Settings edit.

did you activated it in admin settings?
Title: Re: Facebook Like Mod
Post by: TheListener on March 16, 2011, 09:10:48 PM
I sure did.

By the way love the new hairdo.

;D
Title: Re: Facebook Like Mod
Post by: Mick. on March 16, 2011, 09:21:20 PM
Quote from: Brack1 on March 16, 2011, 09:10:48 PM
I sure did.

By the way love the new hairdo.

;D

Is your theme using display.template.php from the default theme?
Title: Re: Facebook Like Mod
Post by: TheListener on March 16, 2011, 09:23:09 PM
Sure is.

It's one of the few things I checked early on.
Title: Re: Facebook Like Mod
Post by: Mick. on March 16, 2011, 09:30:22 PM
Quote from: Brack1 on March 16, 2011, 09:23:09 PM
Sure is.

It's one of the few things I checked early on.

Ok.    go activate the 'like' button in your boards you want it.  "modify boards" in admin.
Title: Re: Facebook Like Mod
Post by: TheListener on March 16, 2011, 09:42:42 PM
Now why the eck didn't I think to look there?

Sorted. Thanks BD.

By the way I miss the avatar you once had with the blue motor.
Title: Re: Facebook Like Mod
Post by: Mick. on March 16, 2011, 09:46:56 PM
Quote from: Brack1 on March 16, 2011, 09:42:42 PM
Now why the eck didn't I think to look there?

Sorted. Thanks BD.

By the way I miss the avatar you once had with the blue motor.

No problem ;)

The one with the truck?
Title: Re: Facebook Like Mod
Post by: TheListener on March 16, 2011, 09:48:39 PM
That's the one.
Title: Re: Facebook Like Mod
Post by: valentino86 on March 31, 2011, 07:47:13 PM
Hello. I've installed this mod and this is my display.template.php

// Maybe they want to report this post to the moderator(s)?

      //Facebook Like     
     if( !empty($modSettings['facebookLike_allow']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br />';
}


I got a problem with the counter because it's the same for each board. Check this out please? www.meccanicaweb.it/forum
Title: Re: Facebook Like Mod
Post by: Mick. on March 31, 2011, 07:56:50 PM
Quote from: valentino86 on March 31, 2011, 07:47:13 PM
Hello. I've installed this mod and this is my display.template.php

// Maybe they want to report this post to the moderator(s)?

      //Facebook Like     
     if( !empty($modSettings['facebookLike_allow']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br />';
}


I got a problem with the counter because it's the same for each board. Check this out please? www.meccanicaweb.it/forum


Either your using an old mod or miscopied to your custom theme.  It looks incomplete.


Use this version,  Facebook_Like_V.1.4.zip


or replace that code you posted with this one.

      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br /><br />';
}
Title: Re: Facebook Like Mod
Post by: waruna on March 31, 2011, 09:55:06 PM
Hi Bluedevil..

I already follow your tips (Add facebook comment to first post). Do I have to revert back the code to install this mod?

THanks in advance.
Title: Re: Facebook Like Mod
Post by: Mick. on March 31, 2011, 10:01:32 PM
Quote from: waruna on March 31, 2011, 09:55:06 PM
Hi Bluedevil..

I already follow your tips (Add facebook comment to first post). Do I have to revert back the code to install this mod?

THanks in advance.

It should install fine.
Title: Re: Facebook Like Mod
Post by: waruna on March 31, 2011, 11:09:56 PM
Quote from: bluedevil on March 31, 2011, 10:01:32 PM
Quote from: waruna on March 31, 2011, 09:55:06 PM
Hi Bluedevil..

I already follow your tips (Add facebook comment to first post). Do I have to revert back the code to install this mod?

THanks in advance.

It should install fine.

By using this mod, users and guests also can comment and post in their wall right? Might as well I just install this mod only without the trick "Add facebook comment to first post", am I right Sir?

Thanks.
Title: Re: Facebook Like Mod
Post by: xpubstargamingx on March 31, 2011, 11:28:12 PM
Anything like this compatible with 1.1.13?
Title: Re: Facebook Like Mod
Post by: waruna on March 31, 2011, 11:53:19 PM
Got this error when try to install:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Should I emulate RC version? Because I'm using RC2
Title: Re: Facebook Like Mod
Post by: TheListener on April 01, 2011, 12:39:11 AM
Quote from: waruna on March 31, 2011, 11:53:19 PM
Got this error when try to install:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Should I emulate RC version? Because I'm using RC2

Have you tried it?
Title: Re: Facebook Like Mod
Post by: waruna on April 01, 2011, 03:53:37 AM
Quote from: Brack1 on April 01, 2011, 12:39:11 AM
Quote from: waruna on March 31, 2011, 11:53:19 PM
Got this error when try to install:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Should I emulate RC version? Because I'm using RC2

Have you tried it?

Yes, I've emulate RC version last night. After that the error comes up. Any other options? Thanks in advance.
Title: Re: Facebook Like Mod
Post by: valentino86 on April 01, 2011, 08:01:34 AM
Quote from: bluedevil on March 31, 2011, 07:56:50 PM

Either your using an old mod or miscopied to your custom theme.  It looks incomplete.


Use this version,  Facebook_Like_V.1.4.zip

No I've just customized that mod to display the mod on each message and no just on the first but it doens't work neither in the original status.
Title: Re: Facebook Like Mod
Post by: xpubstargamingx on April 01, 2011, 09:44:32 AM
Anything like this compatible with 1.1.13?
Title: Re: Facebook Like Mod
Post by: Mick. on April 01, 2011, 09:47:02 AM
Quote from: xpubstargamingx on April 01, 2011, 09:44:32 AM
Anything like this compatible with 1.1.13?
No. Not that I know.
Title: Re: Facebook Like Mod
Post by: waruna on April 01, 2011, 11:11:07 AM
So, should I emulate version to RC5? Because I got this error when installing:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: Facebook Like Mod
Post by: waruna on April 01, 2011, 01:01:15 PM
Installation success. Like button appears, but after a while an error comes out like this:

the url is : "http://www.facebook.com/connect/connect_to_node_error.php?title=Invalid%20app%20ID&body=The%20app%20ID%20%2MYUSERID%22%20specified%20within%20the%20%22fb%3Aapp_id%22%20meta%20tag%20was%20invalid."

with error message: "The app ID "MY USER ID" specified within the "fb:app_id" meta tag was invalid.

Anybody can help? Thanks in advance
Title: Re: Facebook Like Mod
Post by: Mick. on April 01, 2011, 01:07:16 PM
You're using the old version.

Uninstall an download the new version. Emulate rc5 and install.

It doesn't have app id tags.
Title: Re: Facebook Like Mod
Post by: waruna on April 01, 2011, 01:11:30 PM
Quote from: Rise Against on April 01, 2011, 01:07:16 PM
You're using the old version.

Uninstall an download the new version. Emulate rc5 and install.

It doesn't have app id tags.

Yup. I just download from your mod site just now :(..
Title: Re: Facebook Like Mod
Post by: waruna on April 01, 2011, 02:34:28 PM
Hi Sir, it seems to be working now.. But I notice some problems that really-really need your help :(..

1- When users click 'Like' and post a comment, how do I display the comments on first post just like your tips HERE (http://www.simplemachines.org/community/index.php?topic=427861.0)?

2- Users can't post a comment if they don't post it right after hit the Like button. They must post the comment right after click 'Like' button.
Example: User click 'Like', then refresh the page, the "post a comment" pop up didn't appear. How to solve this?

3- Is there is a possibility to see the 'xx others like this'? Example: Users click at the 'xx others like this' and the popup just like facebook style comes out shows all likes.

Thanks in advance Sir
Title: Re: Facebook Like Mod
Post by: waruna on April 02, 2011, 11:31:07 AM
Anyone? Thanks. :)
Title: Re: Facebook Like Mod
Post by: SC RaceFan on April 15, 2011, 07:36:55 PM
I could use a little help with this if you have time.  I am running SMF 2.0 RC 5 installed you mod v 1.4 and made the changes to the managesettings.php file.  SMF says that the mod is installed and has the green light. I have gone to the misc. and placed the check there, but nothing shows.   I'm kinda lost from there
Title: Re: Facebook Like Mod
Post by: SC RaceFan on April 16, 2011, 01:27:29 PM
Quote from: SC RaceFan on April 15, 2011, 07:36:55 PM
I could use a little help with this if you have time.  I am running SMF 2.0 RC 5 installed you mod v 1.4 and made the changes to the managesettings.php file.  SMF says that the mod is installed and has the green light. I have gone to the misc. and placed the check there, but nothing shows.   I'm kinda lost from there
Sorry, I got to working this morning... Didn't realize that I had to go in and modify each board to get it to show up.... I'm learning this stuff as I go seat of the pants style. LOL
Title: Re: Facebook Like Mod
Post by: Leemy on April 26, 2011, 09:49:34 PM
BD, thanks for the mod. I dont need to enter any application ID it seems, right?

One big big problem: When the user clicks the link in Facebook, it goes to the SMF main index! If they click "Like" in a specific topic, why wouldn't it take them to the topic??
Title: Re: Facebook Like Mod
Post by: PLAYBOY on April 28, 2011, 01:04:42 AM
can we make this mod compatible with 1.1.13?
or a mod like this one for 1.1.13?
Title: Re: Facebook Like Mod
Post by: quebo on April 28, 2011, 01:19:29 AM
how to change the icon on the facebook page, sometimes the picture used on facebook is really not relative to the 'i like it' topic ... is there a way to choose the picture ? Thx (great mod btw)
Title: Re: Facebook Like Mod
Post by: Edson on April 28, 2011, 10:56:28 AM
that the administration is the image?

http://custom.simplemachines.org/mods/index.php?action=download;mod=2543;id=143174;image
Title: Facebook Like Mod - Port to SMF 1.1.x
Post by: MiY4Gi on April 29, 2011, 10:08:43 PM
Is there a port to SMF 1.1.x in development? It's not fair that only the risk takers (those using SMF RC) get to use such a neat mod.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on April 29, 2011, 10:12:32 PM
Quote from: cltgra005 on April 29, 2011, 10:08:43 PM
Is there a port to SMF 1.1.x in development? It's not fair that only the risk takers (those using SMF RC) get to use such a neat mod.

Strongly AGREE!
Title: Re: Facebook Like Mod
Post by: Suki on April 29, 2011, 10:15:35 PM
There are other options on the mod site for those who use SMF 1.1.x
Title: Re: Facebook Like Mod
Post by: Leemy on April 30, 2011, 02:06:23 AM
Does no one else notice that it does not link the FB user to the liked topic? it just links you to the main forum page. not really helpful. i used the "share this topic" mod instead (or until this one goes to the topic the user clicks)
Title: Re: Facebook Like Mod
Post by: MiY4Gi on April 30, 2011, 12:52:40 PM
Quote from: Miss All Sunday on April 29, 2011, 10:15:35 PM
There are other options on the mod site for those who use SMF 1.1.x

You mean there is ONE other option:

Share This Topic (http://custom.simplemachines.org/mods/index.php?mod=2111)

Okay, I think I'll settle with Share This Topic. It's been in development longer, and it supports more social networks.

Title: Re: Facebook Like Mod
Post by: me1982 on May 02, 2011, 10:56:26 AM
Hi, thanks for your great work.

How would I change the language of the mod (Button, sentence near the button etc. pp.)

Thx!
Title: Re: Facebook Like Mod
Post by: [Lucien] on May 18, 2011, 07:03:21 PM
Quote from: me1982 on May 02, 2011, 10:56:26 AM
Hi, thanks for your great work.

How would I change the language of the mod (Button, sentence near the button etc. pp.)

Thx!

Yes i would like to know this too please, thanks :)
Title: Re: Facebook Like Mod
Post by: PLAYBOY on May 19, 2011, 12:45:55 AM
Me too...
Title: Re: Facebook Like Mod
Post by: olufemo on May 20, 2011, 06:51:50 AM
Just wish the FB User is linked to the liked topic page & not the main forum home page ! Or is it behaving like this on my forum alone.
Somebody help me out
Title: Re: Facebook Like Mod
Post by: lutador on May 20, 2011, 09:50:38 AM
Is there something I am missing? Once I hit the like button, my FB profile only shows the link as my "login" page to the forum. Nothing about the topic I actually "liked". Is there an edit somewhere I need to make?
Title: Re: Facebook Like Mod
Post by: Suki on May 20, 2011, 10:11:39 AM
To change the language, go to your Themes/yourtheme/Display.template.php  find:

en_US   and change that to your own language:

http://forum.developers.facebook.net/viewtopic.php?pid=328705



@lutador   does your forum is open to guest?
Title: Re: Facebook Like Mod
Post by: lutador on May 20, 2011, 11:02:40 AM
Quote from: Miss All Sunday on May 20, 2011, 10:11:39 AM
To change the language, go to your Themes/yourtheme/Display.template.php  find:

en_US   and change that to your own language:

http://forum.developers.facebook.net/viewtopic.php?pid=328705



@lutador   does your forum is open to guest?

yes, it is.
Title: Re: Facebook Like Mod
Post by: Suki on May 20, 2011, 11:21:13 AM
does guest have access to the topics you share?  can I have a link to your forum?
Title: Re: Facebook Like Mod
Post by: lutador on May 20, 2011, 12:30:39 PM
Quote from: Miss All Sunday on May 20, 2011, 11:21:13 AM
does guest have access to the topics you share?  can I have a link to your forum?

www.metricdevilmoto.com/forum
Title: Re: Facebook Like Mod
Post by: Suki on May 20, 2011, 12:35:12 PM
I couldn't see any topic with a share this on facebook or similar.
Title: Re: Facebook Like Mod
Post by: [Lucien] on May 22, 2011, 09:51:43 AM
Quote from: Miss All Sunday on May 20, 2011, 10:11:39 AM
To change the language, go to your Themes/yourtheme/Display.template.php  find:

en_US   and change that to your own language:

http://forum.developers.facebook.net/viewtopic.php?pid=328705

Thank you very much for your help!
Title: Re: Facebook Like Mod
Post by: [Lucien] on May 22, 2011, 02:37:54 PM
I have another question, is it possible to integrate the like mod into the arcade below every game and the arcade index?
That would be awesome :)
Title: Re: Facebook Like Mod
Post by: Suki on May 22, 2011, 06:23:20 PM
It can be done for sure, but I'm afraid I don't know this and the arcade mod enough to tell you how to do that,  maybe in the arcade support site there's info about it.
Title: Re: Facebook Like Mod
Post by: [Lucien] on May 23, 2011, 07:50:33 AM
Quote from: Miss All Sunday on May 22, 2011, 06:23:20 PM
It can be done for sure, but I'm afraid I don't know this and the arcade mod enough to tell you how to do that,  maybe in the arcade support site there's info about it.

Oke i'm using e-arcade on RC5, i will create a topic on their forum :) I will report back here if i have more news.

Thank you Miss :D
Title: Re: Facebook Like Mod
Post by: Leemy on May 24, 2011, 01:55:53 AM
Quote from: olufemo on May 20, 2011, 06:51:50 AM
Just wish the FB User is linked to the liked topic page & not the main forum home page ! Or is it behaving like this on my forum alone.
Somebody help me out



Same with mine. Seems to be "intended behavior" but it seems useless to not link to the Topic (no offense to mod author; i imagine it's a feasible change if you make it). I used "Share this Topic" mod instead, which links to the topic itself.
Title: Re: Facebook Like Mod
Post by: More-to-life on May 25, 2011, 03:07:08 PM
Hi All

I installed the mod but it didn't give me the option to install on my theme (inferno) only core theme

I have the option in the admin panel to set the like button to on but I cant see anything in the forum

Any ideas guys?

Thanks in advance

*SOLVED* - I didn't activate the option in the boards DOH! I need sleep :-[
Title: Re: Facebook Like Mod
Post by: More-to-life on May 27, 2011, 12:35:26 PM
This is a great mod thank you

Is it possible to display forum usernames instead of facebook names?


Thanks in advance
Title: Re: Facebook Like Mod
Post by: Suki on May 27, 2011, 12:38:23 PM
No, its not possible, sorry.
Title: Re: Facebook Like Mod
Post by: GlitchPC on June 05, 2011, 08:14:28 AM
I'm not sure if this has been covered within this thread but, I apologize if it has and ask that you direct me to the appropriate reply post, please.

I've noticed that if you click the "Like" button, the topic is posted on your Facebook Wall with a thumbnail image.  It would seem the thumbnail image is the online.gif image from my forum.  Is this hard-coded in the mod?  Can it be changed and/or removed?
Title: Re: Facebook Like Mod
Post by: Suki on June 05, 2011, 05:38:36 PM
if you want to add a custom image for this mod you will have to manually edit your theme's Index.template.php  see this page:

http://developers.facebook.com/docs/opengraph/


you will have to add this

xmlns:og="http://ogp.me/ns#"
      xmlns:fb="http://www.facebook.com/2008/fbml"

to your <html> tag  and then add the metatags:

example:


<meta property="og:title" content="The Rock"/>
    <meta property="og:type" content="movie"/>
    <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
    <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
    <meta property="og:site_name" content="IMDb"/>
    <meta property="fb:admins" content="USER_ID"/>
    <meta property="og:description"
          content="A group of U.S. Marines, under command of
                   a renegade general, take over Alcatraz and
                   threaten San Francisco Bay with biological
                   weapons."/>



the image one:


<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>


is where you will add yur custom image, perhaps a logo from your forum.
Title: Re: Facebook Like Mod
Post by: GlitchPC on June 05, 2011, 06:10:47 PM
I'm a little confused here.  Thanks for the reply, by the way.

Anyhow...why do I need to add all those meta tags to the index.template.php file?  Also...isn't the mod, itself, coded for this?  I mean...it has to be pulling an image from somewhere, right?

On that same note...

Where would I insert this information on the Index.template.php file?  It's not easy looking for html...since it's written in PHP.

Never mind...figured it out.
Title: Re: Facebook Like Mod
Post by: Suki on June 05, 2011, 10:57:54 PM
GlitchPC  do not make 3 messages in a row, edit your previous one if you have something more to add.


Quote from: GlitchPC on June 05, 2011, 06:10:47 PM

Anyhow...why do I need to add all those meta tags to the index.template.php file?  Also...isn't the mod, itself, coded for this?  I mean...it has to be pulling an image from somewhere, right?


please re read this more carefully:

http://developers.facebook.com/docs/opengraph/


there are   four required properties:

og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
og:type - The type of your object, e.g., "movie". See the complete list of supported types.
og:image - An image URL which should represent your object within the graph. The image must be at least 50px by 50px and have a maximum aspect ratio of 3:1. We support PNG, JPEG and GIF formats. You may include multiple og:image tags to associate multiple images with your page.
og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., http://www.imdb.com/title/tt0117500/.



if you do not use the metatags, facebook will search your page looking for images to show, I already explain this before.


Quote from: GlitchPC on June 05, 2011, 06:37:48 PM
On that same note...

Where would I insert this information on the Index.template.php file?  It's not easy looking for html...since it's written in PHP.


even if it is php, the tag is still the same:    <html xmlns="http://www.w3.org/1999/xhtml"
Title: Re: Facebook Like Mod
Post by: GlitchPC on June 06, 2011, 02:50:58 AM
Sorry for making 3 posts in a row so, I removed two and combined them into the first one.  I did read that link you posted but, you missed my last comment of the third post that I combined into the first post which was:

QuoteNever mind...figured it out.

Thanks for the help...
Title: Re: Facebook Like Mod
Post by: Game.ruler on June 06, 2011, 08:31:10 PM
Plz help. I am getting 2 copies of "Be the first of your friends to like this." line.
How to solve it.
Attaching the image.
Title: Re: Facebook Like Mod
Post by: Suki on June 06, 2011, 08:41:35 PM
you probably installed the mod twice.


attach your theme's  Display.template.php
Title: Re: Facebook Like Mod
Post by: Game.ruler on June 07, 2011, 05:49:57 AM
thanx @miss all sunday for your help.
here is file.
Title: Re: Facebook Like Mod
Post by: Suki on June 07, 2011, 10:16:35 AM
use this one
Title: Re: Facebook Like Mod
Post by: Game.ruler on June 08, 2011, 10:49:44 AM
^ Thanx a lot @miss all sunday.
I will try this and reply. Thanx again.
Title: Re: Facebook Like Mod
Post by: Game.ruler on June 08, 2011, 10:50:07 AM
Its working fine. You guys are awesome.
Title: Re: Facebook Like Mod
Post by: cheesee on June 12, 2011, 08:30:38 PM
I cant get it working, it works fine on the default SMF theme. But not the theme LEVITATE. My website is www. webmastergateway .com
Title: Re: Facebook Like Mod
Post by: Suki on June 12, 2011, 09:02:12 PM
does your theme has its own Display.template.php  file?  if so, attach it here.
Title: Re: Facebook Like Mod
Post by: cheesee on June 12, 2011, 10:00:52 PM
It just uses the one in the default folder. But I attached it anyways.
Title: Re: Facebook Like Mod
Post by: ade9ja on June 12, 2011, 10:02:55 PM
First thanks for the mod, it's a good initiative but the mod isn't compatible with my version 1.1.13 though now want to upgrade to 1.1.14. Plz how can u help on this?
Title: Re: Facebook Like Mod
Post by: Suki on June 12, 2011, 10:44:10 PM
this mod does not support 1.1.x versions, you will need to find other mod thats compatible with your SMF version.

@cheesee   if your theme uses the default one, then you don't installed the mod correctly  or haven't setup the mod corretly,  go to your boards and active the mod from there.
Title: Re: Facebook Like Mod
Post by: cheesee on June 12, 2011, 11:16:21 PM
Quote from: Miss All Sunday on June 12, 2011, 10:44:10 PM
this mod does not support 1.1.x versions, you will need to find other mod thats compatible with your SMF version.

@cheesee   if your theme uses the default one, then you don't installed the mod correctly  or haven't setup the mod corretly,  go to your boards and active the mod from there.

How is it not setup correctly IF IT WORKS using the default theme? but when I change to my main theme the like button disappears.
Title: Re: Facebook Like Mod
Post by: Suki on June 13, 2011, 10:14:15 AM
then your theme does have its own Display.template.php  and you must apply the code on to that file manually using the parser:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2543;attach=173087;smf_version=2.0_RC5
Title: Re: Facebook Like Mod
Post by: ade9ja on June 13, 2011, 08:59:03 PM
Quote from: Miss All Sunday on June 12, 2011, 10:44:10 PM
this mod does not support 1.1.x versions, you will need to find other mod thats compatible with your SMF version.

@cheesee   if your theme uses the default one, then you don't installed the mod correctly  or haven't setup the mod corretly,  go to your boards and active the mod from there.
is any way i can do manual modification to make the mod work with 1.1.14 with the default theme?
Title: Re: Facebook Like Mod
Post by: Mick. on June 13, 2011, 09:04:16 PM
Quote from: ade9ja on June 13, 2011, 08:59:03 PM
Quote from: Miss All Sunday on June 12, 2011, 10:44:10 PM
this mod does not support 1.1.x versions, you will need to find other mod thats compatible with your SMF version.

@cheesee   if your theme uses the default one, then you don't installed the mod correctly  or haven't setup the mod corretly,  go to your boards and active the mod from there.
is any way i can do manual modification to make the mod work with 1.1.14 with the default theme?

Yes it is possible. The truth is, im not familiar with SMF 1.1.x series.
Title: Re: Facebook Like Mod
Post by: ade9ja on June 13, 2011, 09:19:28 PM
Quote from: bluedevil on June 13, 2011, 09:04:16 PM
Quote from: ade9ja on June 13, 2011, 08:59:03 PM
Quote from: Miss All Sunday on June 12, 2011, 10:44:10 PM
this mod does not support 1.1.x versions, you will need to find other mod thats compatible with your SMF version.

@cheesee   if your theme uses the default one, then you don't installed the mod correctly  or haven't setup the mod corretly,  go to your boards and active the mod from there.
is any way i can do manual modification to make the mod work with 1.1.14 with the default theme?

Yes it is possible. The truth is, im not familiar with SMF 1.1.x series.
then plz who is familiar and can help.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 13, 2011, 09:45:04 PM
Same problem here!
Title: Re: Facebook Like Mod
Post by: TurtleKicker on June 14, 2011, 05:24:42 PM
Does this mod work with 2.0 final if you emulate RC4 during install?
Title: Re: Facebook Like Mod
Post by: Suki on June 14, 2011, 10:41:47 PM
yes
Title: Re: Facebook Like Mod
Post by: cheesee on June 15, 2011, 05:38:46 PM
Quote from: Miss All Sunday on June 13, 2011, 10:14:15 AM
then your theme does have its own Display.template.php  and you must apply the code on to that file manually using the parser:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2543;attach=173087;smf_version=2.0_RC5

No it doesn't I even moved the display.template file from the default folder to the custom theme....still no like button.
BTW I just went over the manually instructions, to make sure everything is installed right, and it is. Checked boards to make sure its enabled for each board, and mod settings.
Title: Re: Facebook Like Mod
Post by: Suki on June 15, 2011, 08:27:23 PM
@cheesee  can I have a link to your site?
Title: Re: Facebook Like Mod
Post by: cheesee on June 15, 2011, 08:30:51 PM
http:// www. webmastergateway .com
Title: Re: Facebook Like Mod
Post by: BeingSimplest on June 16, 2011, 07:31:04 AM
Are you going to upgrade it to be compatible with SMF 2.0? I like this mod :)
Title: Re: Facebook Like Mod
Post by: Mick. on June 16, 2011, 08:42:31 AM
Yes, this evening ;)
Title: Re: Facebook Like Mod
Post by: danialasghar on June 17, 2011, 05:37:56 AM
I have installed this mod and enabled from the Modification Setting > [FacebookLike] Enable Topic Like in your forum?

But i can't find this setting pages which is in snap attached, please help.

Thank You

Title: Re: Facebook Like Mod
Post by: Suki on June 17, 2011, 09:24:47 AM
@danialasghar   do you use another language in your forum?

any error on your error log?
Title: Re: Facebook Like Mod
Post by: cheesee on June 18, 2011, 01:14:56 AM
I'll pay $5 if someone can fix the like button for me(make it show up on my theme in each topic), you will get ftp access.
Title: Re: Facebook Like Mod
Post by: ade9ja on June 18, 2011, 12:35:22 PM
i will also be willing to pay any dude who can do same too to my 1.1.14 version.
Title: Re: Facebook Like Mod
Post by: TheListener on June 18, 2011, 01:33:32 PM
Quote from: ade9ja on June 18, 2011, 12:35:22 PM
i will also be willing to pay any dude who can do same too to my 1.1.14 version.

You would be better off making a topic in the Mods request board.

I can confirm the mod works on my 2.0 test forum.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 19, 2011, 02:33:27 PM
Doesnt install on 2.0!
Title: Re: Facebook Like Mod
Post by: Suki on June 19, 2011, 08:19:41 PM
Quote from: PLAYBOY on June 19, 2011, 02:33:27 PM
Doesnt install on 2.0!

of course not.....  you will need  to emulate 2.0 RC5  on your forum if you want to install this mod on your 2.0 installation.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 03:18:53 AM
Installed successful, but I'm not seeing the like button. I am using pretty URLs and I have made the necessary edits as instructed in the OP. All settings are enabled as well. Using 2.0 RC5.

Here's my display php
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 20, 2011, 05:00:51 AM
Quote from: Miss All Sunday on June 19, 2011, 08:19:41 PM
Quote from: PLAYBOY on June 19, 2011, 02:33:27 PM
Doesnt install on 2.0!

of course not.....  you will need  to emulate 2.0 RC5  on your forum if you want to install this mod on your 2.0 installation.

What do u mean emulate? I have never heard it before. Can you tell me step by step how can i do it?
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 08:07:16 AM
on your mod list there's an avanced  button on the bottom, click on it, a field will appear with your current versión, change that to SMF RC4 or  SMF RC5  and save, now you can installthis mod, onces installed revert the  process.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 20, 2011, 08:49:29 AM
Is there an easy way to check on/off for all boards (or multiple boards) at once?
I have 220 boards and looks like it would be pain to go to each of them and change the setting.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 02:17:32 PM
No one can help me? If you can, please go back 1 page and look at my post near the bottom.
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 02:24:21 PM
@MATTEK   you have the code correctly in your file,  this mod adds a check to enable / disable the mod,  pelase verify that this option is checked, its on your admin panel


@PLAYBOY  by runing a query directly on your phpmyadmin interface.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 02:49:42 PM
Quote from: MATTEK on June 20, 2011, 03:18:53 AM
Installed successful, but I'm not seeing the like button. I am using pretty URLs and I have made the necessary edits as instructed in the OP. All settings are enabled as well. Using 2.0 RC5.

Here's my display php

Yup. All settings are checked.
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 03:02:12 PM
on your display.template.pgp try removing the following:


     //Facebook Like
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{


if the buttons is displayed that means  you haven't checked the mod's settings to be enable  or you haven't activate the mod on your boards
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 03:32:47 PM
Quote from: Miss All Sunday on June 20, 2011, 03:02:12 PM
on your display.template.pgp try removing the following:


     //Facebook Like
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{


if the buttons is displayed that means  you haven't checked the mod's settings to be enable  or you haven't activate the mod on your boards

I'll try that now, thanks. However, I'm 100% positive that everything is enabled. I've enabled under the Misc. sttings as well as under the board of which I'm testing. I'll let you know how it goes in a few minutes.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 03:34:58 PM
Still no Like button.
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 03:37:24 PM
any error o your error log?  did you get any error on install?    can you check that all your files are correctly modified with the mod's code:  http://custom.simplemachines.org/mods/index.php?action=parse;mod=2543;attach=173087;smf_version=2.0_RC5




are you using another theme?  does this theme has its own Display.template.php file?
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 03:44:16 PM
Quote from: Miss All Sunday on June 20, 2011, 03:37:24 PM
any error o your error log?  did you get any error on install?    can you check that all your files are correctly modified with the mod's code:  http://custom.simplemachines.org/mods/index.php?action=parse;mod=2543;attach=173087;smf_version=2.0_RC5




are you using another theme?  does this theme has its own Display.template.php file?

I'm using default theme. No errors on install And I'm not exactly sure how to properly verify that all my files are correctly modified. That's why I'm asking for help. :P I could try and make the edits myself, but when I look at a php file I'm completely lost - I'm not sure if the spacing is right, etc.
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 03:46:36 PM
you dont need to know php to do that, you only need to follow what says in here

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2543;attach=173087;smf_version=2.0_RC5

for example  ./Sources/Display.php


the parser says this mod will add this code:


      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="true" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br /><br />';
}



so go to that file and make sure this code is there,  thats all you need to do with all the files this mod modifies.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 03:49:41 PM
I'll check.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 04:13:28 PM
It's all there and looks fine.
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 04:20:14 PM
Then I ran out of ideas, sorry, maybe the mod author can help you further.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 20, 2011, 05:39:18 PM
Quote@PLAYBOY  by runing a query directly on your phpmyadmin interface.

What kind of query? I am not good at these things. It would be VERY useful if the check box was available for categories (too). That would save a lot... Do you think you can add an option like that?
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 05:47:17 PM
I'm not the mod author  ;)  I'm juts helping with the support.

a query like this one:

UPDATE `dev`.`smf_boards` SET `facebooklike_board_enable` = '1';


where smf_ is the prefix of your tables, run that on your SQL  menu in your phpmyadmin,  keep in mind that this would activate the mod in all your boards
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 20, 2011, 05:50:10 PM
Then can you just give me the query to activate the mod in multiple boards i pick but not every single board. Because i realized i have some VIP boards and i dont want people to be able to share the content of those boards on facebook.
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 05:51:58 PM
UPDATE `dev`.`smf_boards` SET `facebooklike_board_enable` = '0' WHERE `smf_boards`.`id_board` =1;


this will activate the mos on the board with ID 1,  you can add multiples IDs
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 20, 2011, 06:52:24 PM
Maybe i am so stupid or scared to do anything wrong but can you explain the last query please?
Which one is the board ids? Will i put comma between them?
Will the rest of the query stay the same?
Title: Re: Facebook Like Mod
Post by: Suki on June 20, 2011, 07:27:56 PM
just build multiple queries following the example I gave you above, for example if you want to change 15 boards at once  make 15 queries:

UPDATE `dev`.`smf_boards` SET `facebooklike_board_enable` = '1' WHERE `smf_boards`.`id_board` =1;



the board's ID is the last part:  id_board` =1       1 is the board ID


`dev`   is the name of your board, in this case "dev"

`smf_boards`   is the name of your table

`facebooklike_board_enable`  is the name of the column


WHERE `smf_boards`.`id_board` =1;    here is the instruction,  only change the `facebooklike_board_enable` to 1  if the `id_board`  is 1
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 07:46:55 PM
Still looking for help. :)
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 20, 2011, 07:51:36 PM
Quote from: MATTEK on June 20, 2011, 07:46:55 PM
Still looking for help. :)
can you quote your problem here so they can see it faster? along with the fixes you tried and the results?
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 07:57:15 PM
Original help request:
Quote from: MATTEK on June 20, 2011, 03:18:53 AM
Installed successful, but I'm not seeing the like button. I am using pretty URLs and I have made the necessary edits as instructed in the OP. All settings are enabled as well. Using 2.0 RC5.

Here's my display php

And then I was told to try this:
Quote from: Miss All Sunday on June 20, 2011, 03:02:12 PM
on your display.template.pgp try removing the following:


     //Facebook Like
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{


if the buttons is displayed that means  you haven't checked the mod's settings to be enable  or you haven't activate the mod on your boards

To no avail. In fact trying this gave me a parse error.

I'm using the default theme Curve and I've made sure all of the edits the Like mod makes are in the right places. No errors in my log nor when I installed the package.
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 20, 2011, 08:19:06 PM
what are the other mods you are using.. ?
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 08:30:26 PM
1.   Team Page   
2.   SA FBConnect   
3.   Arcade Skin 2.5 RC1   1.0.0   
4.   OS & Browser Detection   
5.   Menu Order   0.2.5   
6.   WYSIWYG Quick Reply   
7.   SMF Arcade   
8.   Board Viewers Mod   
9.   Aeva Media   
10.   Ultimate Profile     
11.   Pretty URLs   
12.   Favicon   
13.   reCAPTCHA for SMF   0.9.8   
14.   Yet Another Global Announcements Mod   
15.   ENotify   2.0   
16.   Custom_Top_menu     
17.   Adk Blog   
18.   SimplePortal

Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 20, 2011, 08:57:52 PM
uninstall SA FBConnect and re-try.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 09:00:58 PM
Well. This is a problem.


Quote2.   Execute Modification   .Sources/ManagePermissions.php   Test failed
   1.   Replace   .Sources/ManagePermissions.php   Test failed


4.   Execute Modification   .Themes/default/Display.template.php   Test failed
   1.   Replace   .Themes/default/Display.template.php   Test failed
   2.   Replace   .Themes/default/Display.template.php   Test failed
   3.   Replace   .Themes/default/Display.template.php   Test failed

18.   Execute Modification   .Sources/Subs.php   Test failed
   1.   Replace   .Sources/Subs.php   Test failed
   2.   Replace   .Sources/Subs.php   Test failed
   3.   Replace   .Sources/Subs.php   Test failed
   4.   Replace   .Sources/Subs.php   Test failed
   5.   Add Before   .Sources/Subs.php   Test failed
   6.   Replace   .Sources/Subs.php   Test failed
   7.   Replace   .Sources/Subs.php   Test failed


21.   Execute Modification   .Themes/default/index.template.php   Test failed
   1.   Replace   .Themes/default/index.template.php   Test failed
   2.   Replace   .Themes/default/index.template.php   Test failed
   3.   Replace   .Themes/default/index.template.php   Test failed
   4.   Replace   .Themes/default/index.template.php   Test failed
   5.   Replace   .Themes/default/index.template.php   Test failed
   6.   Replace   .Themes/default/index.template.php   Test failed
   7.   Replace   .Themes/default/index.template.php   Test failed
   8.   Replace   .Themes/default/index.template.php   Test failed
   9.   Replace   .Themes/default/index.template.php   Test failed
   10.   Replace   .Themes/default/index.template.php   Test failed
   11.   Replace   .Themes/default/index.template.php   Test failed
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 20, 2011, 09:05:38 PM
Edit the files manually,
here's a helpful article.
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Title: Re: Facebook Like Mod
Post by: MATTEK on June 20, 2011, 09:19:32 PM
Quote from: Sisko Punk on June 20, 2011, 09:05:38 PM
Edit the files manually,
here's a helpful article.
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)

The only thing is, I don't know if the FBC mod changed anything that another mod may have changed before. Inserting the original stuff from the pare option shouldn't mess anything else up should it?
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 20, 2011, 09:27:47 PM
you only need to unistall SA Facebook Connect and the mod should work, as i see you can't uninstall it automatically, so do it manually by performing the installation steps backwards.

then, this mod will work.
i can guarantee it.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 21, 2011, 01:48:04 AM
Ok. So I just upgraded to 2.0 Gold. Mod seems to work, but when I click like I got an "error" message right beside it. It didn't post to my FB page either. At least not until I commented, anyway.

Any ideas?
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 21, 2011, 08:57:07 AM
1) Your settings are wrong
2) The mod is NOT compatible with SMF 2.0, You may notice errors.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 21, 2011, 09:06:16 AM
Quote from: Miss All Sunday on June 20, 2011, 07:27:56 PM
just build multiple queries following the example I gave you above, for example if you want to change 15 boards at once  make 15 queries:

UPDATE `dev`.`smf_boards` SET `facebooklike_board_enable` = '1' WHERE `smf_boards`.`id_board` =1;



the board's ID is the last part:  id_board` =1       1 is the board ID


`dev`   is the name of your board, in this case "dev"

`smf_boards`   is the name of your table

`facebooklike_board_enable`  is the name of the column


WHERE `smf_boards`.`id_board` =1;    here is the instruction,  only change the `facebooklike_board_enable` to 1  if the `id_board`  is 1

I dont get it man. Its ok. You tried. I am very afraid to mess up anything in DB anyways.

I just wish the mod writer can add the option to categories or something so it would be lot easier.




One question: When you share a topic, does it get the content and put it on facebook? or does it just put the link on the facebook?
Because if a VIP member shares a topic from a private VIP section on his facebook, will a regular member or a visitor can see the content?
So how secure is this mod when it comes to what is being shared...?
Title: Re: Facebook Like Mod
Post by: Mick. on June 21, 2011, 09:17:49 AM
No. It will not show the content. Only the link to your forum and the link of the topic.
Title: Re: Facebook Like Mod
Post by: Suki on June 21, 2011, 09:20:07 AM

it will only work if your boards are visible to guest, Facebook scan tool is a guest on your forum,  if you share something from a board guest cannot  see,     the same with regular members who had no access to private boards, they will see the link, but when they click on it it will show them an error page.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 21, 2011, 02:52:37 PM
Quote from: Miss All Sunday on June 21, 2011, 09:20:07 AM

it will only work if your boards are visible to guest, Facebook scan tool is a guest on your forum,  if you share something from a board guest cannot  see,     the same with regular members who had no access to private boards, they will see the link, but when they click on it it will show them an error page.

I dont get an error page. It' s just the word "error" beside trhe like button. When I refresh the page it goes away though.

However, just by clicking like it does not publish to my FB page. It only publishes it I leave a comment. Is that normal?
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 21, 2011, 08:08:28 PM
Quotethe mod writer can add the option to categories or something so it would be lot easier.

Any ideas maybe work about this humble little request?
It would make this mod so useful for me.
Title: Re: Facebook Like Mod
Post by: Mick. on June 21, 2011, 09:14:48 PM
Quote from: PLAYBOY on June 21, 2011, 08:08:28 PM
Quotethe mod writer can add the option to categories or something so it would be lot easier.

Any ideas maybe work about this humble little request?
It would make this mod so useful for me.

Categories, no. Simply because im sure you have boards in that category that you dont want to use the 'like".

...but, i can make it to show all boards at once and 'check' which boards you want all in 1 page instead of going to every single board one by one.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 21, 2011, 09:22:06 PM
Quote from: bluedevil on June 21, 2011, 09:14:48 PM
Quote from: PLAYBOY on June 21, 2011, 08:08:28 PM
Quotethe mod writer can add the option to categories or something so it would be lot easier.

Any ideas maybe work about this humble little request?
It would make this mod so useful for me.

Categories, no. Simply because im sure you have boards in that category that you dont want to use the 'like".

...but, i can make it to show all boards at once and 'check' which boards you want all in 1 page instead of going to every single board one by one.

Sure, That would be nice.
I think it would be also good if you update it so people can install it on 2.0 without emulating.
Title: Re: Facebook Like Mod
Post by: Mick. on June 21, 2011, 09:36:04 PM
Quote from: PLAYBOY on June 21, 2011, 09:22:06 PM
Quote from: bluedevil on June 21, 2011, 09:14:48 PM
Quote from: PLAYBOY on June 21, 2011, 08:08:28 PM
Quotethe mod writer can add the option to categories or something so it would be lot easier.

Any ideas maybe work about this humble little request?
It would make this mod so useful for me.

Categories, no. Simply because im sure you have boards in that category that you dont want to use the 'like".

...but, i can make it to show all boards at once and 'check' which boards you want all in 1 page instead of going to every single board one by one.

Sure, That would be nice.
I think it would be also good if you update it so people can install it on 2.0 without emulating.

I updated it to 2.0 earlier today. ;
Title: Re: Facebook Like Mod
Post by: BeingSimplest on June 21, 2011, 11:52:35 PM
Quote from: bluedevil on June 21, 2011, 09:36:04 PM
I updated it to 2.0 earlier today. ;

Looking for some donation if available.
Title: Re: Facebook Like Mod
Post by: BeingSimplest on June 22, 2011, 12:00:14 AM
Ah also, as I've noticed, when the "like" comes to facebook's wall, the default image (thumbnail) is linked to one of the images in the post, which is usually "/images/post/xx.gif" or an custom emoticon. This certainly looks not very nice on facebook's wall and has no ads effect.

Do you have any idea about changing the default image thumbnail for the post like? It doesn't seem to catch my logo on top, but the small icon in the post.
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 22, 2011, 12:04:07 AM
@BeingSimplest, why are you looking for donations?
why should we give you money?
for fun?
Title: Re: Facebook Like Mod
Post by: BeingSimplest on June 22, 2011, 01:08:51 AM
Quote from: Sisko Punk on June 22, 2011, 12:04:07 AM
@BeingSimplest, why are you looking for donations?
why should we give you money?
for fun?

Please read my reply again and clarify these 3 points:

1) Who made this mod? Did I? No I didn't.
2) Who did I talk to? You? No, the one who made this mod.
3) Even if I was the one who made an interesting mod, why couldn't I earn some donation?

To sum up, I don't know why did you ask me that. I didn't create the mod, and I was asking if the creator wants some donation from me. Please read and understand something carefully before replying something.
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 22, 2011, 02:28:42 AM
Quote from: BeingSimplest on June 22, 2011, 01:08:51 AM
Quote from: Sisko Punk on June 22, 2011, 12:04:07 AM
@BeingSimplest, why are you looking for donations?
why should we give you money?
for fun?

Please read my reply again and clarify these 3 points:

1) Who made this mod? Did I? No I didn't.
2) Who did I talk to? You? No, the one who made this mod.
3) Even if I was the one who made an interesting mod, why couldn't I earn some donation?

To sum up, I don't know why did you ask me that. I didn't create the mod, and I was asking if the creator wants some donation from me. Please read and understand something carefully before replying something.
well, then You need to learn how to talk.
Title: Re: Facebook Like Mod
Post by: BeingSimplest on June 22, 2011, 04:37:27 AM
Quote from: Sisko Punk on June 22, 2011, 02:28:42 AM
well, then You need to learn how to talk.
dumbass.

Ok, look, I don't want to argue with you because there is no point to argue here. If you at least have some basic social skills, then please:

1) Don't ever never jump into other people's conversation unless they talk to you.
2) Don't say bad word to me (or to someone else), because you are the one who said wrong, not me.

You had a bunch of other ways to prove you are an educated person. Telling me a "dumbass" doesn't help you finish this argument successfully, but it does prove you a loser because you had nothing else to say apart from this word.

In case you don't know how to react in this basic social issue, I'll show you this: just ask gently "what do you mean?". I'll gently answer to clarify my point, and the conversation remains peaceful and constructive. Hope you learned something. You're not a young boy any more.
Title: Re: Facebook Like Mod
Post by: frx on June 22, 2011, 05:44:09 AM
Hi there.

I've installed this mod in a forum.

All gone OK!

Then i went to Admin -> Miscellaneous -> And i've enabled Topic Like in forum.

Then i went into a forum topic, but i didn't see the Like Button :(

Then i saw the image, in mod link, that has the board settings, went to a board and have enabled the like button.
Now the question...

I have about 60 board/sub-boards.
Is it possible to activate the Like Button all at once, instead gone one by one ?

Title: Re: Facebook Like Mod
Post by: Mick. on June 22, 2011, 07:12:00 AM
Beingsimplest and frx,

No, i do not accePt donations. Thank you for the offer.

Facebook scans the first image it can get. Sometimes it will post the xx.gif and sometimes it will post your avatar or someone else's avatar.

I already looked into having us selecting an image of our choice wether is an uploaded image or a hot linked image. But the way smf loads images, it would be a nightmare to accomplish this. At least I was told this when I wrote the mod. Trust me I don't like it either.

I soon will change how to select the boards to all in one page instead oh going thru all boards one by one.

Thanx,
Mick.
Title: Re: Facebook Like Mod
Post by: Mick. on June 22, 2011, 07:14:19 AM
....and please, no hating on my board. I will not tolerate hazing.
Title: Re: Facebook Like Mod
Post by: Mick. on June 22, 2011, 07:20:20 AM
After a quick thought in the bathroom, I think if I use Facebook ogtype to snag the image of your server  may be a solution. Simple load an image tothe server an type the link to it in admin. Hmm, I'm at work but will look into it tonight.
Title: Re: Facebook Like Mod
Post by: BeingSimplest on June 22, 2011, 07:37:43 AM
I'm not so clear by what you mean. By the way, I don't know if Facebook can recognize invisible/hidden images, if yes we can place a hidden image somewhere on the board.

But the way Facebook captures thumbnails is annoying since I can't really guess how the images will be captured.  I wrote an URL-shortening tool the other day, each URL will be header()'ed to the destination URL, but when the shortened URL loaded onto Facebook, sometimes the images can be able to be captured sometimes they can't.

I'll try to think about it as well.

Thanks Mick and sorry about the argument above, I didn't aim to do so.
Title: Re: Facebook Like Mod
Post by: Alex' Manson on June 22, 2011, 09:17:50 AM
alright i apologize to both of you.
Title: Re: Facebook Like Mod
Post by: MATTEK on June 22, 2011, 10:28:31 AM
Thanks for the 2.0 update!
Title: Re: Facebook Like Mod
Post by: Staind on June 22, 2011, 10:55:21 AM
i have installed the mod,
using smf 2.0,i installed the new facebook like mod that was updated yesterday,howeve i dont see the 'like' in my posts and equally i do not see where the setttings for the mod is  :(
Title: Re: Facebook Like Mod
Post by: Mick. on June 22, 2011, 10:59:02 AM
Settings is under miscellaneous. Then edit each board to activate the Facebook like.
Title: Re: Facebook Like Mod
Post by: Staind on June 22, 2011, 11:37:35 AM
thanks for the rapid response..
was hard finding the miscellaneous(finally found it in the modification settings.. ;D,might be of help!!
so i have to be editing them manually for all the boards ???
i also noticed that the question appears twice 8)
Title: Re: Facebook Like Mod
Post by: pgordemer on June 22, 2011, 11:55:24 AM
Quote from: bluedevil on June 22, 2011, 07:20:20 AM
After a quick thought in the bathroom, I think if I use Facebook ogtype to snag the image of your server  may be a solution. Simple load an image tothe server an type the link to it in admin. Hmm, I'm at work but will look into it tonight.

Here is how I have done it. Add the following code to the HEAD section of the index.template.php of your theme that points to the graphics file you want facebook to use.

// Facebook meta code START PMG
echo '<meta property="og:image" content="http://canvascampers.com/images/cc_fb_50.png" />';
// Facebook Meta code END PMG
Title: Re: Facebook Like Mod
Post by: BeingSimplest on June 22, 2011, 12:08:03 PM
Quote from: pgordemer on June 22, 2011, 11:55:24 AM
// Facebook meta code START PMG
echo '<meta property="og:image" content="http://canvascampers.com/images/cc_fb_50.png" />';
// Facebook Meta code END PMG


This is great! (: I should not have forgotten header() can send meta information.
Thanks for this man ^^
Title: Re: Facebook Like Mod
Post by: MATTEK on June 22, 2011, 12:21:27 PM
The Recent Activity block doesn't seem to be working. All I have is ecommerce things on there and I'v e liked 3 topics since I added the block.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on June 22, 2011, 01:26:37 PM
Quotei can make it to show all boards at once and 'check' which boards you want all in 1 page instead of going to every single board one by one.

Did you add this feature in the update?
Title: Re: Facebook Like Mod
Post by: Mick. on June 22, 2011, 02:17:01 PM
Not yet.
Title: Re: Facebook Like Mod
Post by: kat on June 22, 2011, 02:33:48 PM
Quote from: Sisko Punk on June 22, 2011, 09:17:50 AM
alright i apologize to both of you.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2FThanx.gif&hash=3521eacb576780d9465b08d30bbf7b6e9e859bd1)
Title: Re: Facebook Like Mod
Post by: Mick. on June 22, 2011, 04:38:37 PM
Quote from: pgordemer on June 22, 2011, 11:55:24 AM
Quote from: bluedevil on June 22, 2011, 07:20:20 AM
After a quick thought in the bathroom, I think if I use Facebook ogtype to snag the image of your server  may be a solution. Simple load an image tothe server an type the link to it in admin. Hmm, I'm at work but will look into it tonight.

Here is how I have done it. Add the following code to the HEAD section of the index.template.php of your theme that points to the graphics file you want facebook to use.

// Facebook meta code START PMG
echo '<meta property="og:image" content="http://canvascampers.com/images/cc_fb_50.png" />';
// Facebook Meta code END PMG


Yup, that's it. Ill have it in admin so users can input the image URL instead of going to the server.
Ill update the mod real quick for the time being. All boards at once may take me some time as i yet have to study the code.
Title: Re: Facebook Like Mod
Post by: Staind on June 23, 2011, 12:51:58 AM
it keeps showing twice..
it shows be the first of your friends to like this twice...
Title: Re: Facebook Like Mod
Post by: Mick. on June 23, 2011, 09:12:06 AM
Staind,
Make sure this bit isn't twice in display.template.php
If it is, remove one instance.



      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="false" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br /><br />';
}
Title: Re: Facebook Like Mod
Post by: Staind on June 24, 2011, 04:22:32 AM
just as you said ...it appeareed twice in my display.template.php,
i deleted the other and uploaded it,it now appears once.
thanks  ;D
Title: Re: Facebook Like Mod
Post by: frx on June 24, 2011, 08:58:22 AM
Don't understand why my nick was citted here:
Quote from: bluedevil on June 22, 2011, 07:12:00 AM
Beingsimplest and frx,

:D :D

I just wanted to know about this:

Quotei can make it to show all boards at once and 'check' which boards you want all in 1 page instead of going to every single board one by one.

I'l wait for that update :)
Thanks,
FRX
Title: Re: Facebook Like Mod
Post by: GlitchPC on June 27, 2011, 09:40:42 PM
I don't know about anyone else but, I'd like to see this mod validate XHTML.  Currently, with the Facebook Like being used on certain forums, it returns 7 validation errors.

Is this going to be resolved in the next release?

My version of SMF:  2.0 Final
Title: Re: Facebook Like Mod
Post by: mariusfv on June 29, 2011, 11:43:48 AM
I use this mod with smf 2.0 and Tinyportal, everything work great, but If I use the function "promote topic to frontpage" my topic appear on frontpage but the Like button doesn't appear on frontpage, is visible only the entire topic without like button.

Can be that solved bluedevil? as I see on your website that is possible with Simpleportal.

10x in advance!
Title: Re: Facebook Like Mod
Post by: Adrek on June 30, 2011, 02:11:52 PM
How can I change button style to look like this: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg94.imageshack.us%2Fimg94%2F9099%2Fcapturemgf.png&hash=70e5328e1ce649bf0c3ccc7449326f2e35199b77) ?
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on July 02, 2011, 10:39:32 AM
I can't seem to get this to work for me. It's turned on and I can't see any permissions so am I doing something wrong?
Title: Re: Facebook Like Mod
Post by: slider11111 on July 02, 2011, 01:17:18 PM
I have 2.0 Final with default curve theme. I installed this Mod. It shows items are ticked both in misc. and in the boards. The Facebook Like does not show up in the Topic? I tried to uninstall and get error's see attachment. What to do?
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on July 03, 2011, 12:44:17 AM
Thanks Luuuciano, now I know where to turn it on from. But in the boards? There's no way to quickly change that :(. I have 55 boards to activate it on :(.
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on July 03, 2011, 01:13:04 AM
After running an SQL query to add it to 55 boards it's sending me errors on liking. Can I please have detailed instructions on installing and setting up your mod? I have no idea what's going on and the readme gives me no indication that there's more than "turning it on" to do.
Title: Re: Facebook Like Mod
Post by: PLAYBOY on July 03, 2011, 01:29:15 AM
Quote from: Jade Elizabeth on July 03, 2011, 12:44:17 AM
Thanks Luuuciano, now I know where to turn it on from. But in the boards? There's no way to quickly change that :(. I have 55 boards to activate it on :(.

I have 220 boards and im still waiting for the same option too.
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on July 03, 2011, 02:26:46 AM
Use this query darls :)

UPDATE `smf_boards` SET `facebooklike_board_enable` = '1' WHERE `id_board` IN (1,2,3)

I have half a screen of boards and a bit of notepad, then I just hover to get the numbers and type them as I go, makes it faster.


The mod is still erroring even when I replace the appid in the code with my app id, which I had to make via a tutorial of another mod. Where's the tutorial on setting this up please BlueDevil?
Title: Re: Facebook Like Mod
Post by: Mick. on July 03, 2011, 10:26:48 AM
Quote from: Jade Elizabeth on July 03, 2011, 02:26:46 AM
Use this query darls :)

UPDATE `smf_boards` SET `facebooklike_board_enable` = '1' WHERE `id_board` IN (1,2,3)

I have half a screen of boards and a bit of notepad, then I just hover to get the numbers and type them as I go, makes it faster.


The mod is still erroring even when I replace the appid in the code with my app id, which I had to make via a tutorial of another mod. Where's the tutorial on setting this up please BlueDevil?

No need to use appID since the mod does not uses OpenGraph.  Ive been busy with work lately, ill update the mod to select boards at once soon and other changes as well.
Title: Re: Facebook Like Mod
Post by: Mick. on July 03, 2011, 10:29:46 AM
Quote from: ph4ntom on June 30, 2011, 02:11:52 PM
How can I change button style to look like this: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg94.imageshack.us%2Fimg94%2F9099%2Fcapturemgf.png&hash=70e5328e1ce649bf0c3ccc7449326f2e35199b77) ?

Find:
Quote'layout="standard"

replace with:
Quote'layout="box_count"
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on July 03, 2011, 12:04:36 PM
Quote from: bluedevil on July 03, 2011, 10:26:48 AM
Quote from: Jade Elizabeth on July 03, 2011, 02:26:46 AM
Use this query darls :)

UPDATE `smf_boards` SET `facebooklike_board_enable` = '1' WHERE `id_board` IN (1,2,3)

I have half a screen of boards and a bit of notepad, then I just hover to get the numbers and type them as I go, makes it faster.


The mod is still erroring even when I replace the appid in the code with my app id, which I had to make via a tutorial of another mod. Where's the tutorial on setting this up please BlueDevil?

No need to use appID since the mod does not uses OpenGraph.  Ive been busy with work lately, ill update the mod to select boards at once soon and other changes as well.

But that doesnt help me at all, I still cannot get it to work. That was an attempt to get it to work. Why isnt it working for me? :(
Title: Re: Facebook Like Mod
Post by: PLAYBOY on July 03, 2011, 01:03:40 PM
Quote from: bluedevil on July 03, 2011, 10:29:46 AM
Quote from: ph4ntom on June 30, 2011, 02:11:52 PM
How can I change button style to look like this: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg94.imageshack.us%2Fimg94%2F9099%2Fcapturemgf.png&hash=70e5328e1ce649bf0c3ccc7449326f2e35199b77) ?

Find:
Quote'layout="standard"

replace with:
Quote'layout="box_count"

I think this option should be added to the new update also. Its pretty cool.
Title: Re: Facebook Like Mod
Post by: bruce86 on July 05, 2011, 05:11:21 AM
I can not find the setting on the third image attached (main post) thanks.
Title: Re: Facebook Like Mod
Post by: pedro_miguel on July 05, 2011, 06:49:14 AM
I installed this mod. All went well. Just changed this portion of the code:  from en_EN to  pt_PT

Check this page and try to "like" it:

http://www.forumenfermagem.org/forum/index.php/topic,8609.0.html


Why doesn't work? It takes no action...


Tryed putting my api and it keeps doing the same...
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on July 05, 2011, 08:38:40 PM
Still not working for me either, and the error page doesnt ever load. Apparently symbols in it are encoded or something.
Title: Re: Facebook Like Mod
Post by: pedro_miguel on July 06, 2011, 05:03:16 AM
I needed to add these meta-tags to <head>


<meta property="og:url" content="     " />
<meta property="og:image" content="     ">
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="    " />
<meta property="og:title" content="    " />
<meta property="og:site_name" content="     " />


It now shows who likes but it doesn't leave any post on profile....
Title: Re: Facebook Like Mod
Post by: MiY4Gi on July 06, 2011, 08:06:03 AM
Great mod. I installed in on 2.0 Gold and haven't noticed any problems yet.
Title: Re: Facebook Like Mod
Post by: pedro_miguel on July 06, 2011, 08:17:30 AM
Quote from: MiY4Gi on July 06, 2011, 08:06:03 AM
Great mod. I installed in on 2.0 Gold and haven't noticed any problems yet.

Can you give me your forum url where I can see the button working? Thanks
Title: Re: Facebook Like Mod
Post by: MiY4Gi on July 06, 2011, 09:13:29 AM
Quote from: pedro_miguel on July 06, 2011, 08:17:30 AM

Can you give me your forum url where I can see the button working? Thanks

http://theanimeclub.co.za/index.php/topic,16.msg49.html

I think I may have added a <br /> somewhere in the modifications code, since the Like button was a little crammed at its original location. I also edited it so that the Like Button lies below my Google +1 button and not above.
Title: Re: Facebook Like Mod
Post by: pedro_miguel on July 06, 2011, 09:21:27 AM
Quote from: MiY4Gi on July 06, 2011, 09:13:29 AM
Quote from: pedro_miguel on July 06, 2011, 08:17:30 AM

Can you give me your forum url where I can see the button working? Thanks

http://theanimeclub.co.za/index.php/topic,16.msg49.html

I think I may have added a <br /> somewhere in the modifications code, since the Like button was a little crammed at its original location. I also edited it so that the Like Button lies below my Google +1 button and not above.


Your button is not working. I click and 1sec after it does a reset... It doesn't save my like   :/
Title: Re: Facebook Like Mod
Post by: MiY4Gi on July 07, 2011, 06:33:22 PM
Oh I see now what you mean. Yes, it resets now whenever you click on it. Weird, it worked when I installed it.
Title: Re: Facebook Like Mod
Post by: MiY4Gi on July 08, 2011, 04:17:18 PM
Now it's working fine.  :o
Title: Re: Facebook Like Mod
Post by: Mick. on July 08, 2011, 04:22:22 PM
Facebook is like the weather. Sometimes is nice, sometimes is bad.
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on July 09, 2011, 02:55:53 AM
Quote from: Jade Elizabeth on July 02, 2011, 10:39:32 AM
I can't seem to get this to work for me. It's turned on and I can't see any permissions so am I doing something wrong?
Quote from: Jade Elizabeth on July 03, 2011, 01:13:04 AM
After running an SQL query to add it to 55 boards it's sending me errors on liking. Can I please have detailed instructions on installing and setting up your mod? I have no idea what's going on and the readme gives me no indication that there's more than "turning it on" to do.
Quote from: Jade Elizabeth on July 03, 2011, 02:26:46 AM
Use this query darls :)

UPDATE `smf_boards` SET `facebooklike_board_enable` = '1' WHERE `id_board` IN (1,2,3)

I have half a screen of boards and a bit of notepad, then I just hover to get the numbers and type them as I go, makes it faster.


The mod is still erroring even when I replace the appid in the code with my app id, which I had to make via a tutorial of another mod. Where's the tutorial on setting this up please BlueDevil?
Quote from: Jade Elizabeth on July 05, 2011, 08:38:40 PM
Still not working for me either, and the error page doesnt ever load. Apparently symbols in it are encoded or something.

Can I please have a hand? It's not working at all for me it just says error and loads a blank error page :(.
Title: Re: Facebook Like Mod
Post by: naniawf on July 09, 2011, 07:41:03 PM
hi guys mine is also not working , its not even showing up at all after installing it at the package manager, any ideas pls.

http://africanwebforum.com/index.php
Title: Re: Facebook Like Mod
Post by: MiY4Gi on July 09, 2011, 11:10:41 PM
Quote from: Jade Elizabeth on July 09, 2011, 02:55:53 AM
Can I please have a hand? It's not working at all for me it just says error and loads a blank error page :(.

An easy way to find out if there's something wrong with your mod/installation is to try to uninstall it. If the un-installation process throws you errors, look at those errors, then go to the appropriate files/code to fix those errors.
Title: Re: Facebook Like Mod
Post by: Babadinho on July 11, 2011, 06:34:12 PM
mine shows you liked a link in site instead of you liked name of topic as it shows in previous version. whats wrong?
Title: Re: Facebook Like Mod
Post by: mtv5858 on July 11, 2011, 07:08:49 PM
PLEASE HELP:
Every time I try and create a board I always get this error:
QuoteField 'facebooklike_board_enable' doesn't have a default value
File: C:\Users\Mike\Documents\forum\Sources\Subs-Boards.php
Line: 779

and this is what line 779 looks like:
<?php

/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines http://www.simplemachines.org
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

if (!defined('SMF'))
die('Hacking attempt...');

/* This file is mainly concerned with minor tasks relating to boards, such as
marking them read, collapsing categories, or quick moderation.  It defines
the following list of functions:

void markBoardsRead(array boards)
// !!!

void MarkRead()
// !!!

int getMsgMemberID(int id_msg)
// !!!

void modifyBoard(int board_id, array boardOptions)
- general function to modify the settings and position of a board.
- used by ManageBoards.php to change the settings of a board.

int createBoard(array boardOptions)
- general function to create a new board and set its position.
- allows (almost) the same options as the modifyBoard() function.
- with the option inherit_permissions set, the parent board permissions
  will be inherited.
- returns the ID of the newly created board.

void deleteBoards(array boards_to_remove, moveChildrenTo = null)
- general function to delete one or more boards.
- allows to move the children of the board before deleting it
- if moveChildrenTo is set to null, the child boards will be deleted.
- deletes all topics that are on the given boards.
- deletes all information that's associated with the given boards.
- updates the statistics to reflect the new situation.

void reorderBoards()
- updates the database to put all boards in the right order.
- sorts the records of the boards table.
- used by modifyBoard(), deleteBoards(), modifyCategory(), and
  deleteCategories() functions.

void fixChildren(int parent, int newLevel, int newParent)
- recursively updates the children of parent's child_level and
  id_parent to newLevel and newParent.
- used when a board is deleted or moved, to affect its children.

bool isChildOf(int child, int parent)
- determines if child is a child of parent.
- recurses down the tree until there are no more parents.
- returns true if child is a child of parent.

void getBoardTree()
- load information regarding the boards and categories.
- the information retrieved is stored in globals:
- $boards properties of each board.
- $boardList a list of boards grouped by category ID.
- $cat_tree properties of each category.

void recursiveBoards()
- function used by getBoardTree to recursively get a list of boards.

bool isChildOf(int child, int parent)
- determine if a certain board id is a child of another board.
- the parent might be several levels higher than the child.
*/

// Mark a board or multiple boards read.
function markBoardsRead($boards$unread false)
{
global $user_info$modSettings$smcFunc;

// Force $boards to be an array.
if (!is_array($boards))
$boards = array($boards);
else
$boards array_unique($boards);

// No boards, nothing to mark as read.
if (empty($boards))
return;

// Allow the user to mark a board as unread.
if ($unread)
{
// Clear out all the places where this lovely info is stored.
// !! Maybe not log_mark_read?
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_mark_read
WHERE id_board IN ({array_int:board_list})
AND id_member = {int:current_member}'
,
array(
'current_member' => $user_info['id'],
'board_list' => $boards,
)
);
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_boards
WHERE id_board IN ({array_int:board_list})
AND id_member = {int:current_member}'
,
array(
'current_member' => $user_info['id'],
'board_list' => $boards,
)
);
}
// Otherwise mark the board as read.
else
{
$markRead = array();
foreach ($boards as $board)
$markRead[] = array($modSettings['maxMsgID'], $user_info['id'], $board);

// Update log_mark_read and log_boards.
$smcFunc['db_insert']('replace',
'{db_prefix}log_mark_read',
array('id_msg' => 'int''id_member' => 'int''id_board' => 'int'),
$markRead,
array('id_board''id_member')
);

$smcFunc['db_insert']('replace',
'{db_prefix}log_boards',
array('id_msg' => 'int''id_member' => 'int''id_board' => 'int'),
$markRead,
array('id_board''id_member')
);
}

// Get rid of useless log_topics data, because log_mark_read is better for it - even if marking unread - I think so...
$result $smcFunc['db_query']('''
SELECT MIN(id_topic)
FROM {db_prefix}log_topics
WHERE id_member = {int:current_member}'
,
array(
'current_member' => $user_info['id'],
)
);
list ($lowest_topic) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

if (empty($lowest_topic))
return;

// !!!SLOW This query seems to eat it sometimes.
$result $smcFunc['db_query']('''
SELECT lt.id_topic
FROM {db_prefix}log_topics AS lt
INNER JOIN {db_prefix}topics AS t /*!40000 USE INDEX (PRIMARY) */ ON (t.id_topic = lt.id_topic
AND t.id_board IN ({array_int:board_list}))
WHERE lt.id_member = {int:current_member}
AND lt.id_topic >= {int:lowest_topic}'
,
array(
'current_member' => $user_info['id'],
'board_list' => $boards,
'lowest_topic' => $lowest_topic,
)
);
$topics = array();
while ($row $smcFunc['db_fetch_assoc']($result))
$topics[] = $row['id_topic'];
$smcFunc['db_free_result']($result);

if (!empty($topics))
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_topics
WHERE id_member = {int:current_member}
AND id_topic IN ({array_int:topic_list})'
,
array(
'current_member' => $user_info['id'],
'topic_list' => $topics,
)
);
}

// Mark one or more boards as read.
function MarkRead()
{
global $board$topic$user_info$board_info$modSettings$smcFunc;

// No Guests allowed!
is_not_guest();

checkSession('get');

if (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'all')
{
// Find all the boards this user can see.
$result $smcFunc['db_query']('''
SELECT b.id_board
FROM {db_prefix}boards AS b
WHERE {query_see_board}'
,
array(
)
);
$boards = array();
while ($row $smcFunc['db_fetch_assoc']($result))
$boards[] = $row['id_board'];
$smcFunc['db_free_result']($result);

if (!empty($boards))
markBoardsRead($boards, isset($_REQUEST['unread']));

$_SESSION['id_msg_last_visit'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit();
}
elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'unreadreplies')
{
// Make sure all the boards are integers!
$topics explode('-'$_REQUEST['topics']);

$markRead = array();
foreach ($topics as $id_topic)
$markRead[] = array($modSettings['maxMsgID'], $user_info['id'], (int) $id_topic);

$smcFunc['db_insert']('replace',
'{db_prefix}log_topics',
array('id_msg' => 'int''id_member' => 'int''id_topic' => 'int'),
$markRead,
array('id_member''id_topic')
);

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit('action=unreadreplies');
}

// Special case: mark a topic unread!
elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'topic')
{
// First, let's figure out what the latest message is.
$result $smcFunc['db_query']('''
SELECT id_first_msg, id_last_msg
FROM {db_prefix}topics
WHERE id_topic = {int:current_topic}'
,
array(
'current_topic' => $topic,
)
);
$topicinfo $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);

if (!empty($_GET['t']))
{
// If they read the whole topic, go back to the beginning.
if ($_GET['t'] >= $topicinfo['id_last_msg'])
$earlyMsg 0;
// If they want to mark the whole thing read, same.
elseif ($_GET['t'] <= $topicinfo['id_first_msg'])
$earlyMsg 0;
// Otherwise, get the latest message before the named one.
else
{
$result $smcFunc['db_query']('''
SELECT MAX(id_msg)
FROM {db_prefix}messages
WHERE id_topic = {int:current_topic}
AND id_msg >= {int:id_first_msg}
AND id_msg < {int:topic_msg_id}'
,
array(
'current_topic' => $topic,
'topic_msg_id' => (int) $_GET['t'],
'id_first_msg' => $topicinfo['id_first_msg'],
)
);
list ($earlyMsg) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);
}
}
// Marking read from first page?  That's the whole topic.
elseif ($_REQUEST['start'] == 0)
$earlyMsg 0;
else
{
$result $smcFunc['db_query']('''
SELECT id_msg
FROM {db_prefix}messages
WHERE id_topic = {int:current_topic}
ORDER BY id_msg
LIMIT ' 
. (int) $_REQUEST['start'] . ', 1',
array(
'current_topic' => $topic,
)
);
list ($earlyMsg) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

$earlyMsg--;
}

// Blam, unread!
$smcFunc['db_insert']('replace',
'{db_prefix}log_topics',
array('id_msg' => 'int''id_member' => 'int''id_topic' => 'int'),
array($earlyMsg$user_info['id'], $topic),
array('id_member''id_topic')
);

redirectexit('board=' $board '.0');
}
else
{
$categories = array();
$boards = array();

if (isset($_REQUEST['c']))
{
$_REQUEST['c'] = explode(','$_REQUEST['c']);
foreach ($_REQUEST['c'] as $c)
$categories[] = (int) $c;
}
if (isset($_REQUEST['boards']))
{
$_REQUEST['boards'] = explode(','$_REQUEST['boards']);
foreach ($_REQUEST['boards'] as $b)
$boards[] = (int) $b;
}
if (!empty($board))
$boards[] = (int) $board;

if (isset($_REQUEST['children']) && !empty($boards))
{
// They want to mark the entire tree starting with the boards specified
// The easist thing is to just get all the boards they can see, but since we've specified the top of tree we ignore some of them

$request $smcFunc['db_query']('''
SELECT b.id_board, b.id_parent
FROM {db_prefix}boards AS b
WHERE {query_see_board}
AND b.child_level > {int:no_parents}
AND b.id_board NOT IN ({array_int:board_list})
ORDER BY child_level ASC
'
,
array(
'no_parents' => 0,
'board_list' => $boards,
)
);
while ($row $smcFunc['db_fetch_assoc']($request))
if (in_array($row['id_parent'], $boards))
$boards[] = $row['id_board'];
$smcFunc['db_free_result']($request);
}

$clauses = array();
$clauseParameters = array();
if (!empty($categories))
{
$clauses[] = 'id_cat IN ({array_int:category_list})';
$clauseParameters['category_list'] = $categories;
}
if (!empty($boards))
{
$clauses[] = 'id_board IN ({array_int:board_list})';
$clauseParameters['board_list'] = $boards;
}

if (empty($clauses))
redirectexit();

$request $smcFunc['db_query']('''
SELECT b.id_board
FROM {db_prefix}boards AS b
WHERE {query_see_board}
AND b.' 
implode(' OR b.'$clauses),
array_merge($clauseParameters, array(
))
);
$boards = array();
while ($row $smcFunc['db_fetch_assoc']($request))
$boards[] = $row['id_board'];
$smcFunc['db_free_result']($request);

if (empty($boards))
redirectexit();

markBoardsRead($boards, isset($_REQUEST['unread']));

foreach ($boards as $b)
{
if (isset($_SESSION['topicseen_cache'][$b]))
$_SESSION['topicseen_cache'][$b] = array();
}

if (!isset($_REQUEST['unread']))
{
// Find all the boards this user can see.
$result $smcFunc['db_query']('''
SELECT b.id_board
FROM {db_prefix}boards AS b
WHERE b.id_parent IN ({array_int:parent_list})
AND {query_see_board}'
,
array(
'parent_list' => $boards,
)
);
if ($smcFunc['db_num_rows']($result) > 0)
{
$logBoardInserts '';
while ($row $smcFunc['db_fetch_assoc']($result))
$logBoardInserts[] = array($modSettings['maxMsgID'], $user_info['id'], $row['id_board']);

$smcFunc['db_insert']('replace',
'{db_prefix}log_boards',
array('id_msg' => 'int''id_member' => 'int''id_board' => 'int'),
$logBoardInserts,
array('id_member''id_board')
);
}
$smcFunc['db_free_result']($result);

if (empty($board))
redirectexit();
else
redirectexit('board=' $board '.0');
}
else
{
if (empty($board_info['parent']))
redirectexit();
else
redirectexit('board=' $board_info['parent'] . '.0');
}
}
}

// Get the id_member associated with the specified message.
function getMsgMemberID($messageID)
{
global $smcFunc;

// Find the topic and make sure the member still exists.
$result $smcFunc['db_query']('''
SELECT IFNULL(mem.id_member, 0)
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE m.id_msg = {int:selected_message}
LIMIT 1'
,
array(
'selected_message' => (int) $messageID,
)
);
if ($smcFunc['db_num_rows']($result) > 0)
list ($memberID) = $smcFunc['db_fetch_row']($result);
// The message doesn't even exist.
else
$memberID 0;
$smcFunc['db_free_result']($result);

return (int) $memberID;
}

// Modify the settings and position of a board.
function modifyBoard($board_id, &$boardOptions)
{
global $sourcedir$cat_tree$boards$boardList$modSettings$smcFunc;

// Get some basic information about all boards and categories.
getBoardTree();

// Make sure given boards and categories exist.
if (!isset($boards[$board_id]) || (isset($boardOptions['target_board']) && !isset($boards[$boardOptions['target_board']])) || (isset($boardOptions['target_category']) && !isset($cat_tree[$boardOptions['target_category']])))
fatal_lang_error('no_board');

// All things that will be updated in the database will be in $boardUpdates.
$boardUpdates = array();
$boardUpdateParameters = array();

// In case the board has to be moved
if (isset($boardOptions['move_to']))
{
// Move the board to the top of a given category.
if ($boardOptions['move_to'] == 'top')
{
$id_cat $boardOptions['target_category'];
$child_level 0;
$id_parent 0;
$after $cat_tree[$id_cat]['last_board_order'];
}

// Move the board to the bottom of a given category.
elseif ($boardOptions['move_to'] == 'bottom')
{
$id_cat $boardOptions['target_category'];
$child_level 0;
$id_parent 0;
$after 0;
foreach ($cat_tree[$id_cat]['children'] as $id_board => $dummy)
$after max($after$boards[$id_board]['order']);
}

// Make the board a child of a given board.
elseif ($boardOptions['move_to'] == 'child')
{
$id_cat $boards[$boardOptions['target_board']]['category'];
$child_level $boards[$boardOptions['target_board']]['level'] + 1;
$id_parent $boardOptions['target_board'];

// People can be creative, in many ways...
if (isChildOf($id_parent$board_id))
fatal_lang_error('mboards_parent_own_child_error'false);
elseif ($id_parent == $board_id)
fatal_lang_error('mboards_board_own_child_error'false);

$after $boards[$boardOptions['target_board']]['order'];

// Check if there are already children and (if so) get the max board order.
if (!empty($boards[$id_parent]['tree']['children']) && empty($boardOptions['move_first_child']))
foreach ($boards[$id_parent]['tree']['children'] as $childBoard_id => $dummy)
$after max($after$boards[$childBoard_id]['order']);
}

// Place a board before or after another board, on the same child level.
elseif (in_array($boardOptions['move_to'], array('before''after')))
{
$id_cat $boards[$boardOptions['target_board']]['category'];
$child_level $boards[$boardOptions['target_board']]['level'];
$id_parent $boards[$boardOptions['target_board']]['parent'];
$after $boards[$boardOptions['target_board']]['order'] - ($boardOptions['move_to'] == 'before' 0);
}

// Oops...?
else
trigger_error('modifyBoard(): The move_to value \'' $boardOptions['move_to'] . '\' is incorrect'E_USER_ERROR);

// Get a list of children of this board.
$childList = array();
recursiveBoards($childList$boards[$board_id]['tree']);

// See if there are changes that affect children.
$childUpdates = array();
$levelDiff $child_level $boards[$board_id]['level'];
if ($levelDiff != 0)
$childUpdates[] = 'child_level = child_level ' . ($levelDiff '+ ' '') . '{int:level_diff}';
if ($id_cat != $boards[$board_id]['category'])
$childUpdates[] = 'id_cat = {int:category}';

// Fix the children of this board.
if (!empty($childList) && !empty($childUpdates))
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET ' 
implode(',
'
$childUpdates) . '
WHERE id_board IN ({array_int:board_list})'
,
array(
'board_list' => $childList,
'category' => $id_cat,
'level_diff' => $levelDiff,
)
);

// Make some room for this spot.
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET board_order = board_order + {int:new_order}
WHERE board_order > {int:insert_after}
AND id_board != {int:selected_board}'
,
array(
'insert_after' => $after,
'selected_board' => $board_id,
'new_order' => count($childList),
)
);

$boardUpdates[] = 'id_cat = {int:id_cat}';
$boardUpdates[] = 'id_parent = {int:id_parent}';
$boardUpdates[] = 'child_level = {int:child_level}';
$boardUpdates[] = 'board_order = {int:board_order}';
$boardUpdateParameters += array(
'id_cat' => $id_cat,
'id_parent' => $id_parent,
'child_level' => $child_level,
'board_order' => $after 1,
);
}

// This setting is a little twisted in the database...
if (isset($boardOptions['posts_count']))
{
$boardUpdates[] = 'count_posts = {int:count_posts}';
$boardUpdateParameters['count_posts'] = $boardOptions['posts_count'] ? 1;
}

// Set the theme for this board.
if (isset($boardOptions['board_theme']))
{
$boardUpdates[] = 'id_theme = {int:id_theme}';
$boardUpdateParameters['id_theme'] = (int) $boardOptions['board_theme'];
}

// Should the board theme override the user preferred theme?
if (isset($boardOptions['override_theme']))
{
$boardUpdates[] = 'override_theme = {int:override_theme}';
$boardUpdateParameters['override_theme'] = $boardOptions['override_theme'] ? 0;
}

// Who's allowed to access this board.
if (isset($boardOptions['access_groups']))
{
$boardUpdates[] = 'member_groups = {string:member_groups}';
$boardUpdateParameters['member_groups'] = implode(','$boardOptions['access_groups']);
}

if (isset($boardOptions['board_name']))
{
$boardUpdates[] = 'name = {string:board_name}';
$boardUpdateParameters['board_name'] = $boardOptions['board_name'];
}

if (isset($boardOptions['board_description']))
{
$boardUpdates[] = 'description = {string:board_description}';
$boardUpdateParameters['board_description'] = $boardOptions['board_description'];
}

if (isset($boardOptions['profile']))
{
$boardUpdates[] = 'id_profile = {int:profile}';
$boardUpdateParameters['profile'] = (int) $boardOptions['profile'];
}

if (isset($boardOptions['redirect']))
{
$boardUpdates[] = 'redirect = {string:redirect}';
$boardUpdateParameters['redirect'] = $boardOptions['redirect'];
}

if (isset($boardOptions['num_posts']))
{
$boardUpdates[] = 'num_posts = {int:num_posts}';
$boardUpdateParameters['num_posts'] = (int) $boardOptions['num_posts'];
}

// Do the updates (if any).
if (!empty($boardUpdates))
$request $smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET
implode(',
'
$boardUpdates) . '
WHERE id_board = {int:selected_board}'
,
array_merge($boardUpdateParameters, array(
'selected_board' => $board_id,
))
);

// Set moderators of this board.
if (isset($boardOptions['moderators']) || isset($boardOptions['moderator_string']))
{
// Reset current moderators for this board - if there are any!
$smcFunc['db_query']('''
DELETE FROM {db_prefix}moderators
WHERE id_board = {int:board_list}'
,
array(
'board_list' => $board_id,
)
);

// Validate and get the IDs of the new moderators.
if (isset($boardOptions['moderator_string']) && trim($boardOptions['moderator_string']) != '')
{
// Divvy out the usernames, remove extra space.
$moderator_string strtr($smcFunc['htmlspecialchars']($boardOptions['moderator_string'], ENT_QUOTES), array('&quot;' => '"'));
preg_match_all('~"([^"]+)"~'$moderator_string$matches);
$moderators array_merge($matches[1], explode(','preg_replace('~"[^"]+"~'''$moderator_string)));
for ($k 0$n count($moderators); $k $n$k++)
{
$moderators[$k] = trim($moderators[$k]);

if (strlen($moderators[$k]) == 0)
unset($moderators[$k]);
}

// Find all the id_member's for the member_name's in the list.
if (empty($boardOptions['moderators']))
$boardOptions['moderators'] = array();
if (!empty($moderators))
{
$request $smcFunc['db_query']('''
SELECT id_member
FROM {db_prefix}members
WHERE member_name IN ({array_string:moderator_list}) OR real_name IN ({array_string:moderator_list})
LIMIT ' 
count($moderators),
array(
'moderator_list' => $moderators,
)
);
while ($row $smcFunc['db_fetch_assoc']($request))
$boardOptions['moderators'][] = $row['id_member'];
$smcFunc['db_free_result']($request);
}
}

// Add the moderators to the board.
if (!empty($boardOptions['moderators']))
{
$inserts = array();
foreach ($boardOptions['moderators'] as $moderator)
$inserts[] = array($board_id$moderator);

$smcFunc['db_insert']('insert',
'{db_prefix}moderators',
array('id_board' => 'int''id_member' => 'int'),
$inserts,
array('id_board''id_member')
);
}

// Note that caches can now be wrong!
updateSettings(array('settings_updated' => time()));
}

if (isset($boardOptions['move_to']))
reorderBoards();

clean_cache('data');

if (empty($boardOptions['dont_log']))
logAction('edit_board', array('board' => $board_id), 'admin');
}

// Create a new board and set its properties and position.
function createBoard($boardOptions)
{
global $boards$modSettings$smcFunc;

// Trigger an error if one of the required values is not set.
if (!isset($boardOptions['board_name']) || trim($boardOptions['board_name']) == '' || !isset($boardOptions['move_to']) || !isset($boardOptions['target_category']))
trigger_error('createBoard(): One or more of the required options is not set'E_USER_ERROR);

if (in_array($boardOptions['move_to'], array('child''before''after')) && !isset($boardOptions['target_board']))
trigger_error('createBoard(): Target board is not set'E_USER_ERROR);

// Set every optional value to its default value.
$boardOptions += array(
'posts_count' => true,
'override_theme' => false,
'board_theme' => 0,
'access_groups' => array(),
'board_description' => '',
'profile' => 1,
'moderators' => '',
'inherit_permissions' => true,
'dont_log' => true,
);

// Insert a board, the settings are dealt with later.
$smcFunc['db_insert']('',
'{db_prefix}boards',
array(
'id_cat' => 'int''name' => 'string-255''description' => 'string''board_order' => 'int',
'member_groups' => 'string''redirect' => 'string',
),
array(
$boardOptions['target_category'], $boardOptions['board_name'] , ''0,
'-1,0''',
),
array('id_board')
);
$board_id $smcFunc['db_insert_id']('{db_prefix}boards''id_board');

if (empty($board_id))
return 0;

// Change the board according to the given specifications.
modifyBoard($board_id$boardOptions);

// Do we want the parent permissions to be inherited?
if ($boardOptions['inherit_permissions'])
{
getBoardTree();

if (!empty($boards[$board_id]['parent']))
{
$request $smcFunc['db_query']('''
SELECT id_profile
FROM {db_prefix}boards
WHERE id_board = {int:board_parent}
LIMIT 1'
,
array(
'board_parent' => (int) $boards[$board_id]['parent'],
)
);
list ($boardOptions['profile']) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET id_profile = {int:new_profile}
WHERE id_board = {int:current_board}'
,
array(
'new_profile' => $boardOptions['profile'],
'current_board' => $board_id,
)
);
}
}

// Clean the data cache.
clean_cache('data');

// Created it.
logAction('add_board', array('board' => $board_id), 'admin');

// Here you are, a new board, ready to be spammed.
return $board_id;
}

// Remove one or more boards.
function deleteBoards($boards_to_remove$moveChildrenTo null)
{
global $sourcedir$boards$smcFunc;

// No boards to delete? Return!
if (empty($boards_to_remove))
return;

getBoardTree();

// If $moveChildrenTo is set to null, include the children in the removal.
if ($moveChildrenTo === null)
{
// Get a list of the child boards that will also be removed.
$child_boards_to_remove = array();
foreach ($boards_to_remove as $board_to_remove)
recursiveBoards($child_boards_to_remove$boards[$board_to_remove]['tree']);

// Merge the children with their parents.
if (!empty($child_boards_to_remove))
$boards_to_remove array_unique(array_merge($boards_to_remove$child_boards_to_remove));
}
// Move the children to a safe home.
else
{
foreach ($boards_to_remove as $id_board)
{
// !!! Separate category?
if ($moveChildrenTo === 0)
fixChildren($id_board00);
else
fixChildren($id_board$boards[$moveChildrenTo]['level'] + 1$moveChildrenTo);
}
}

// Delete ALL topics in the selected boards (done first so topics can't be marooned.)
$request $smcFunc['db_query']('''
SELECT id_topic
FROM {db_prefix}topics
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);
$topics = array();
while ($row $smcFunc['db_fetch_assoc']($request))
$topics[] = $row['id_topic'];
$smcFunc['db_free_result']($request);

require_once($sourcedir '/RemoveTopic.php');
removeTopics($topicsfalse);

// Delete the board's logs.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_mark_read
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_boards
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_notify
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete this board's moderators.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}moderators
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete any extra events in the calendar.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}calendar
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete any message icons that only appear on these boards.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}message_icons
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete the boards.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}boards
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Latest message/topic might not be there anymore.
updateStats('message');
updateStats('topic');
updateSettings(array(
'calendar_updated' => time(),
));

// Plus reset the cache to stop people getting odd results.
updateSettings(array('settings_updated' => time()));

// Clean the cache as well.
clean_cache('data');

// Let's do some serious logging.
foreach ($boards_to_remove as $id_board)
logAction('delete_board', array('boardname' => $boards[$id_board]['name']), 'admin');

reorderBoards();
}

// Put all boards in the right order.
function reorderBoards()
{
global $cat_tree$boardList$boards$smcFunc;

getBoardTree();

// Set the board order for each category.
$board_order 0;
foreach ($cat_tree as $catID => $dummy)
{
foreach ($boardList[$catID] as $boardID)
if ($boards[$boardID]['order'] != ++$board_order)
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET board_order = {int:new_order}
WHERE id_board = {int:selected_board}'
,
array(
'new_order' => $board_order,
'selected_board' => $boardID,
)
);
}

// Sort the records of the boards table on the board_order value.
$smcFunc['db_query']('alter_table_boards''
ALTER TABLE {db_prefix}boards
ORDER BY board_order'
,
array(
'db_error_skip' => true,
)
);
}

// Fixes the children of a board by setting their child_levels to new values.
function fixChildren($parent$newLevel$newParent)
{
global $smcFunc;

// Grab all children of $parent...
$result $smcFunc['db_query']('''
SELECT id_board
FROM {db_prefix}boards
WHERE id_parent = {int:parent_board}'
,
array(
'parent_board' => $parent,
)
);
$children = array();
while ($row $smcFunc['db_fetch_assoc']($result))
$children[] = $row['id_board'];
$smcFunc['db_free_result']($result);

// ...and set it to a new parent and child_level.
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET id_parent = {int:new_parent}, child_level = {int:new_child_level}
WHERE id_parent = {int:parent_board}'
,
array(
'new_parent' => $newParent,
'new_child_level' => $newLevel,
'parent_board' => $parent,
)
);

// Recursively fix the children of the children.
foreach ($children as $child)
fixChildren($child$newLevel 1$child);
}

// Load a lot of useful information regarding the boards and categories.
function getBoardTree()
{
global $cat_tree$boards$boardList$txt$modSettings$smcFunc;

// Getting all the board and category information you'd ever wanted.
$request $smcFunc['db_query']('''
SELECT
IFNULL(b.id_board, 0) AS id_board, b.id_parent, b.name AS board_name, b.description, b.child_level,
b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.id_profile, b.redirect,
b.num_posts, b.num_topics, c.id_cat, c.name AS cat_name, c.cat_order, c.can_collapse
FROM {db_prefix}categories AS c
LEFT JOIN {db_prefix}boards AS b ON (b.id_cat = c.id_cat)
ORDER BY c.cat_order, b.child_level, b.board_order'
,
array(
)
);
$cat_tree = array();
$boards = array();
$last_board_order 0;
while ($row $smcFunc['db_fetch_assoc']($request))
{
if (!isset($cat_tree[$row['id_cat']]))
{
$cat_tree[$row['id_cat']] = array(
'node' => array(
'id' => $row['id_cat'],
'name' => $row['cat_name'],
'order' => $row['cat_order'],
'can_collapse' => $row['can_collapse']
),
'is_first' => empty($cat_tree),
'last_board_order' => $last_board_order,
'children' => array()
);
$prevBoard 0;
$curLevel 0;
}

if (!empty($row['id_board']))
{
if ($row['child_level'] != $curLevel)
$prevBoard 0;

$boards[$row['id_board']] = array(
'id' => $row['id_board'],
'category' => $row['id_cat'],
'parent' => $row['id_parent'],
'level' => $row['child_level'],
'order' => $row['board_order'],
'name' => $row['board_name'],
'member_groups' => explode(','$row['member_groups']),
'description' => $row['description'],
'count_posts' => empty($row['count_posts']),
'posts' => $row['num_posts'],
'topics' => $row['num_topics'],
'theme' => $row['id_theme'],
'override_theme' => $row['override_theme'],
'profile' => $row['id_profile'],
'redirect' => $row['redirect'],
'prev_board' => $prevBoard
);
$prevBoard $row['id_board'];
$last_board_order $row['board_order'];

if (empty($row['child_level']))
{
$cat_tree[$row['id_cat']]['children'][$row['id_board']] = array(
'node' => &$boards[$row['id_board']],
'is_first' => empty($cat_tree[$row['id_cat']]['children']),
'children' => array()
);
$boards[$row['id_board']]['tree'] = &$cat_tree[$row['id_cat']]['children'][$row['id_board']];
}
else
{
// Parent doesn't exist!
if (!isset($boards[$row['id_parent']]['tree']))
fatal_lang_error('no_valid_parent'false, array($row['board_name']));

// Wrong childlevel...we can silently fix this...
if ($boards[$row['id_parent']]['tree']['node']['level'] != $row['child_level'] - 1)
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET child_level = {int:new_child_level}
WHERE id_board = {int:selected_board}'
,
array(
'new_child_level' => $boards[$row['id_parent']]['tree']['node']['level'] + 1,
'selected_board' => $row['id_board'],
)
);

$boards[$row['id_parent']]['tree']['children'][$row['id_board']] = array(
'node' => &$boards[$row['id_board']],
'is_first' => empty($boards[$row['id_parent']]['tree']['children']),
'children' => array()
);
$boards[$row['id_board']]['tree'] = &$boards[$row['id_parent']]['tree']['children'][$row['id_board']];
}
}
}
$smcFunc['db_free_result']($request);

// Get a list of all the boards in each category (using recursion).
$boardList = array();
foreach ($cat_tree as $catID => $node)
{
$boardList[$catID] = array();
recursiveBoards($boardList[$catID], $node);
}
}

// Recursively get a list of boards.
function recursiveBoards(&$_boardList, &$_tree)
{
if (empty($_tree['children']))
return;

foreach ($_tree['children'] as $id => $node)
{
$_boardList[] = $id;
recursiveBoards($_boardList$node);
}
}

// Returns whether the child board id is actually a child of the parent (recursive).
function isChildOf($child$parent)
{
global $boards;

if (empty($boards[$child]['parent']))
return false;

if ($boards[$child]['parent'] == $parent)
return true;

return isChildOf($boards[$child]['parent'], $parent);
}

?>
Title: Re: Facebook Like Mod
Post by: bruce86 on July 14, 2011, 06:04:56 AM
Do not go, do not visualize.
Title: Re: Facebook Like Mod
Post by: MiY4Gi on July 14, 2011, 10:17:49 AM
Quote from: bruce86 on July 14, 2011, 06:04:56 AM
Do not go, do not visualize.

Do not pass begin. Do not collect R200.
Title: Re: Facebook Like Mod
Post by: bruce86 on July 17, 2011, 05:06:40 PM
Quote from: MiY4Gi on July 14, 2011, 10:17:49 AM
Quote from: bruce86 on July 14, 2011, 06:04:56 AM
Do not go, do not visualize.

Do not pass begin. Do not collect R200.
What does this mean?
Title: Re: Facebook Like Mod
Post by: goodtimes247 on July 18, 2011, 02:45:46 AM
I'm running 2.0 and just did a package manager install. I'm getting two errors right off the bat. Is anyone else getting this? Is there a fix? Thanks in Advance!
Title: Re: Facebook Like Mod
Post by: MiY4Gi on July 18, 2011, 12:07:09 PM
Quote from: goodtimes247 on July 18, 2011, 02:45:46 AM
I'm running 2.0 and just did a package manager install. I'm getting two errors right off the bat. Is anyone else getting this? Is there a fix? Thanks in Advance!

That's ONE error, not two. And I think I may have gotten a similar error, but that would be due to a conflict between the Facebook Like Mod and your other mods. Just do a manual edit of the Display.template.php file, then proceed with the installation as usual. In other words, find the Display.template.php file on your server, open in notepad, and edit in the necessary code manually. Errors like these happen all the time, if you install mods.
Title: Re: Facebook Like Mod
Post by: goodtimes247 on July 18, 2011, 08:02:16 PM
Quote from: MiY4Gi on July 18, 2011, 12:07:09 PM
Quote from: goodtimes247 on July 18, 2011, 02:45:46 AM
I'm running 2.0 and just did a package manager install. I'm getting two errors right off the bat. Is anyone else getting this? Is there a fix? Thanks in Advance!

That's ONE error, not two. And I think I may have gotten a similar error, but that would be due to a conflict between the Facebook Like Mod and your other mods. Just do a manual edit of the Display.template.php file, then proceed with the installation as usual. In other words, find the Display.template.php file on your server, open in notepad, and edit in the necessary code manually. Errors like these happen all the time, if you install mods.

Thanks Miyagi, but what am I editing to the display.template.php file? I've never edited any mods yet. Thanks
Title: Re: Facebook Like Mod
Post by: goodtimes247 on July 18, 2011, 10:27:35 PM
Got it to work, thanks to this forum. Thanks again Miyagi
Title: Re: Facebook Like Mod
Post by: bruce86 on July 19, 2011, 03:21:13 AM
help me..:)
Title: Re: Facebook Like Mod
Post by: aelmiger on July 26, 2011, 11:35:00 PM
As the MOD is set to appear. Place [FacebookLike] Enable Like in your forum topic?, But not on my topic

Sorry for my bad english
Title: Re: Facebook Like Mod
Post by: cubby61 on August 05, 2011, 09:19:40 AM
I just added this MOD to my newly upgraded SMF 2.0 site and everything worked great for the first day.  Then I noticed that when I clicked Like on a topic it would only post a link on Facebook to my board's Index (main page) and not the actual topic itself.

I uninstalled this app and reinstalled and that seemed to fix it.  A day later it was back to the same behaviour.  Another uninstall and reinstall didn't fix it.

Any suggestions?  The site is http://everythingsg.com/forum
Title: Re: Facebook Like Mod
Post by: MotRude on August 05, 2011, 08:20:43 PM
   3.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed

This is what i get when i try to install....HELP!
Title: Re: Facebook Like Mod
Post by: MotRude on August 06, 2011, 07:11:45 PM
With that error..Considering i'm not using the default board and the errors look to be on the default..do you think i can install considering i'm using a different theme?
Title: Re: Facebook Like Mod
Post by: Alex' Manson on August 08, 2011, 05:57:06 AM
you should put the codes manually on those files and then install the mod.
Title: Re: Facebook Like Mod
Post by: derby on August 23, 2011, 05:49:52 AM
CAN I USE IT ON RC3?
Title: Re: Facebook Like Mod
Post by: Suki on August 23, 2011, 08:10:41 AM
Sure, you just need to not use cap letters and use version emulation on install.
Title: Re: Facebook Like Mod
Post by: Pawned on September 01, 2011, 07:51:09 AM
Hello. I'm having a slight problem after installing this mod. It seems it's rendered my forum unable to create new boards.

The error reads:

Database Error:

Field 'facebooklike_board_enable' doesn't have a default value
File: /var/www/forums/Sources/Subs-Boards.php
Line: 793


Here's line 788 up to 793:

array(
$boardOptions['target_category'], $boardOptions['board_name'] , '', 0,
'-1,0', '',
),
array('id_board')
);


I've also manually removed every piece of facebooklike code from the forum, yet this error still persists. I'd be really grateful if anyone could help me to resolve this error.

Oh and I'm using SMF 2.0, btw.

EDIT: Solved the issue by uninstalling the mod and then removing the column "facebookLike_board_enable" from the table "smf_boards".
Title: Re: Facebook Like Mod
Post by: babalola olasehinde on September 01, 2011, 05:41:11 PM
pls i am tryn to install this mod Facebook Like v.2.0 and its coming up with this error



Type   Action   Description
1.   Execute Code   installFBdatabase.php   
   2.   Execute Modification   ./Sources/Display.php   Test successful
   3.   Execute Modification   ./Themes/default/Display.template.php   Test failed
   1.   Add After   ./Themes/default/Display.template.php   Test failed
   4.   Execute Modification   ./Themes/default/ManageBoards.template.php   Test successful
   5.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   6.   Execute Modification   ./Sources/ManageBoards.php   Test successful
   7.   Execute Modification   ./Sources/Subs-Boards.php   Test successful
   8.   Execute Modification   ./Sources/Load.php   Test successful
   9.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
10.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
    Core Theme
   Execute Modification   ./Themes/core/Display.template.php   Test successful
    green_theme_v2_2
   Execute Modification   ./Themes/green_theme_v2_2/Display.template.php   Test failed
   1.   Add After   ./Themes/green_theme_v2_2/Display.template.php   Test failed


i am tryn to install it in  green_theme_v2_2 . thanks
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 02, 2011, 03:06:19 PM
it was showing error when installing as shown in attachment but still i installed it and enabled it from admin panel but still i can't see anything for facebook in forum :(
Title: Re: Facebook Like Mod
Post by: Xavi-Nena on September 09, 2011, 07:35:11 PM
I installed and everything installed w/out a problem, went in to check the box in admin but i do not see it in the post threads. Please help, what am I doing wrong?

Link to example post http://bullybreednetwork.com/forum/index.php?topic=2
Title: Re: Facebook Like Mod
Post by: Mick. on September 09, 2011, 08:00:30 PM
Quote from: Xavi-Nena on September 09, 2011, 07:35:11 PM
I installed and everything installed w/out a problem, went in to check the box in admin but i do not see it in the post threads. Please help, what am I doing wrong?

Link to example post http://bullybreednetwork.com/forum/index.php?topic=2

You need to activate it in admin when modifing/creating boards.
Title: Re: Facebook Like Mod
Post by: Xavi-Nena on September 09, 2011, 08:09:41 PM
Quote from: bluedevil on September 09, 2011, 08:00:30 PM
Quote from: Xavi-Nena on September 09, 2011, 07:35:11 PM
I installed and everything installed w/out a problem, went in to check the box in admin but i do not see it in the post threads. Please help, what am I doing wrong?

Link to example post http://bullybreednetwork.com/forum/index.php?topic=2

You need to activate it in admin when modifing/creating boards.

Thank you very much :) will it only show on the first post of the thread? Or is it supposed to show on each of the posts in the thread?
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 10, 2011, 01:53:18 AM
Quote from: yourdailysaver on September 02, 2011, 03:06:19 PM
it was showing error when installing as shown in attachment but still i installed it and enabled it from admin panel but still i can't see anything for facebook in forum :(

can anybody solve my issue too :(
Title: Re: Facebook Like Mod
Post by: Xavi-Nena on September 10, 2011, 02:49:53 AM
Quote from: yourdailysaver on September 02, 2011, 03:06:19 PM
it was showing error when installing as shown in attachment but still i installed it and enabled it from admin panel but still i can't see anything for facebook in forum :(

Manually go into your themes display.template.php

and find:
// Maybe they want to report this post to the moderator(s)?

and after that line of code add this:


      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="false" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br /><br />';
}

Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 10, 2011, 03:45:06 AM
Quote from: Xavi-Nena on September 10, 2011, 02:49:53 AM
Quote from: yourdailysaver on September 02, 2011, 03:06:19 PM
it was showing error when installing as shown in attachment but still i installed it and enabled it from admin panel but still i can't see anything for facebook in forum :(

Manually go into your themes display.template.php

and find:
// Maybe they want to report this post to the moderator(s)?

and after that line of code add this:


      //Facebook Like     
      if( !empty($modSettings['facebookLike_allow']) && !empty($context['facebookLike_board_enable']))
{
echo'
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'your app id\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';

    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br /><!-- Facebook Like Button -->
               <span style="float:left;">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                  <fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="450" show_faces="false" action="like" colorscheme="light" /></fb:like>
               </span>
               <!-- End of Facebook Like Button --><br /><br />';
}


where is that file located ?
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 10, 2011, 03:51:53 AM
sir i have added that but didn't worked yet
Title: Re: Facebook Like Mod
Post by: Xavi-Nena on September 10, 2011, 04:55:04 AM
in your file manager you have your board installed on in the themes folder and in the folder of whichever theme you are using.
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 10, 2011, 04:59:50 AM
Quote from: Xavi-Nena on September 10, 2011, 04:55:04 AM
in your file manager you have your board installed on in the themes folder and in the folder of whichever theme you are using.

i have added that but not working yet :( not able to see anything in forum topics or posts
Title: Re: Facebook Like Mod
Post by: Xavi-Nena on September 10, 2011, 05:07:00 AM
have you activated in each board?
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 10, 2011, 05:12:55 AM
how to activate it ?
Title: Re: Facebook Like Mod
Post by: Xavi-Nena on September 10, 2011, 05:37:27 AM
admin > forum > boards > modify
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 10, 2011, 05:55:17 AM
its done thanks a lot dear :)
Title: Re: Facebook Like Mod
Post by: Xavi-Nena on September 10, 2011, 06:08:24 AM
your very welcome.
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 10, 2011, 06:45:27 AM
another issue. when i like any topic from my forum it shows entry in facebook like in attached picture. it is not displaying topic name or pictures inside the topic in facebook :) how to workout that ?
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 11, 2011, 11:34:48 PM
i have done everything to my other forum but still its not showing facebook button below post or topic ? :(
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 12, 2011, 01:50:41 AM
Quote from: yourdailysaver on September 10, 2011, 06:45:27 AM
another issue. when i like any topic from my forum it shows entry in facebook like in attached picture. it is not displaying topic name or pictures inside the topic in facebook :) how to workout that ?

Quote from: yourdailysaver on September 11, 2011, 11:34:48 PM
i have done everything to my other forum but still its not showing facebook button below post or topic ? :(

can somebody please flash a light on my two issues above :(
Title: Re: Facebook Like Mod
Post by: paq on September 15, 2011, 11:12:59 AM
I'm going nuts on this one

fresh install of 2.0
did all step by step TWICE
there where no errors during install, and I use the standard theme.
Only change: different language

I can find the check box in the board settings, but Admin > configuration > mod settings, shows an 'empty' page   (as in: I do see the page, but no contents)

Is there any way to manually activate this mod via the php files?

thanks in advance A LOT!
Title: Re: Facebook Like Mod
Post by: Mick. on September 15, 2011, 11:38:09 AM
Paq,  change the language back to english as its setup for english only.
Title: Re: Facebook Like Mod
Post by: paq on September 15, 2011, 11:51:16 AM
I tried to set it back to English, but I have the exact same result there.

(FYI I changed both modifications.English and modifications.mylanguage)
Title: Re: Facebook Like Mod
Post by: Mick. on September 15, 2011, 12:03:58 PM
Quote from: paq on September 15, 2011, 11:51:16 AM
I tried to set it back to English, but I have the exact same result there.

(FYI I changed both modifications.English and modifications.mylanguage)
did you empty the file cache in admin?
Title: Re: Facebook Like Mod
Post by: paq on September 15, 2011, 01:04:54 PM
Quote from: bluedevil on September 15, 2011, 12:03:58 PM
Quote from: paq on September 15, 2011, 11:51:16 AM
I tried to set it back to English, but I have the exact same result there.

(FYI I changed both modifications.English and modifications.mylanguage)
did you empty the file cache in admin?

uhm... no

where can I do that?
Title: Re: Facebook Like Mod
Post by: Mick. on September 15, 2011, 01:25:07 PM
Admin > maintenance> forum maintenance >empty file cache
Title: Re: Facebook Like Mod
Post by: paq on September 15, 2011, 01:32:22 PM
found it thansk.

no changes.
setit back to English, no changes
again empties cache, nothing...
???
Title: Re: Facebook Like Mod
Post by: yourdailysaver on September 16, 2011, 12:44:50 AM
Quote from: yourdailysaver on September 12, 2011, 01:50:41 AM
Quote from: yourdailysaver on September 10, 2011, 06:45:27 AM
another issue. when i like any topic from my forum it shows entry in facebook like in attached picture. it is not displaying topic name or pictures inside the topic in facebook :) how to workout that ?

Quote from: yourdailysaver on September 11, 2011, 11:34:48 PM
i have done everything to my other forum but still its not showing facebook button below post or topic ? :(

can somebody please flash a light on my two issues above :(
Title: Re: Facebook Like Mod
Post by: paq on September 18, 2011, 06:34:19 AM
Still can;t get the mod to show up in the modifications settings.
It does show up in the board settings though.


Perhaps my php, and xml files have the wrong folder.
Where should they go?


Title: Re: Facebook Like Mod
Post by: paq on September 19, 2011, 04:26:17 AM
modest kick
Title: Re: Facebook Like Mod
Post by: rommul on September 21, 2011, 06:43:52 PM
Quote from: cubby61 on August 05, 2011, 09:19:40 AM
I just added this MOD to my newly upgraded SMF 2.0 site and everything worked great for the first day.  Then I noticed that when I clicked Like on a topic it would only post a link on Facebook to my board's Index (main page) and not the actual topic itself.

I uninstalled this app and reinstalled and that seemed to fix it.  A day later it was back to the same behaviour.  Another uninstall and reinstall didn't fix it.

Any suggestions?  The site is http://everythingsg.com/forum

Same thing here. The link on facebook redirects to the main board not the topic itself.

Title: Re: Facebook Like Mod
Post by: Another Rob on October 12, 2011, 04:01:43 PM
Great mod, just having one problem!

I'm using SMF 2.0 RC3, so it wouldn't install. I changed it to SMF 2.0 and it installed just fine. Went in to Configuration and enabled it, then enabled it for my subforum. Problem: Guests are not allowed to read our forum, only registered members. I'm logged in and "like" a topic, but it just says "Login" when viewed on Facebook. Is there a way to fix this?! Maybe just grab the title when posting on FB.

Thanks!
Title: Re: Facebook Like Mod
Post by: PLAYBOY on October 17, 2011, 01:47:20 AM
We need an update to 2.0.1!!!
Title: Re: Facebook Like Mod
Post by: Suki on October 17, 2011, 09:32:03 AM
Works perfectly fine on a 2.0.1 using emulation: http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn't_work_in_my_SMF_version
Title: Re: Facebook Like Mod
Post by: iPhoneDestek on October 30, 2011, 06:04:39 PM
This modification is not comfortable with smf 2.0.1. Although I have enabled smf 2.0 emulation.
Title: Re: Facebook Like Mod
Post by: xsisonline on February 11, 2012, 09:30:24 AM
first of all thanks for this great application... and now i want to ask something. i am facing some problem....

suppose my forum post is http://unleashmytalent.com/index.php?topic=302
but when someone likes my this post then instead of this, http://unleashmytalent.com/index.php?topic=302layout%3D%22standard%22 is chared on his fb profile
why does layout%3D%22standard%22 is added to the link..
Moreover there should pe post name also shared on fb however only Website name is shared on the Facebook


see the attached pic for more description...
please help me... i dont want to change the mod.. this is the simplest and best i can find
Title: Re: Facebook Like Mod
Post by: Jade Elizabeth on February 12, 2012, 03:07:33 AM
xsisonline you have to have your forum open to visitors for the topic to show I expect :).


There's also no point in sharing if no one can see the topic.
Title: Re: Facebook Like Mod
Post by: xsisonline on February 12, 2012, 04:21:02 PM
Quote from: Jade Elizabeth on February 12, 2012, 03:07:33 AM
xsisonline you have to have your forum open to visitors for the topic to show I expect :).


There's also no point in sharing if no one can see the topic.


forum is open to all :)
still i am facing the same problem :(
Title: Re: Facebook Like Mod
Post by: Ventic on February 20, 2012, 08:17:57 AM
when i do a like it appears to me in  facebook like this:
my name
ok
Gaming-Paradise.net - Index
www.gaming-paradise.net
Gaming-Paradise.net - Index


i mean its not showing the topics link

edit: you and 29 others like this.

lol only 2 ppl like this and it appears that 29 ppl like this?
Title: Re: Facebook Like Mod
Post by: Ventic on February 21, 2012, 03:38:58 PM
Quote from: Ventic on February 20, 2012, 08:17:57 AM
when i do a like it appears to me in  facebook like this:
my name
ok
Gaming-Paradise.net - Index
www.gaming-paradise.net
Gaming-Paradise.net - Index


i mean its not showing the topics link

edit: you and 29 others like this.

lol only 2 ppl like this and it appears that 29 ppl like this?
Title: Re: Facebook Like Mod
Post by: jimv8673 on March 01, 2012, 06:57:11 AM
trying to get this mod to work on 2.0.2  with the box-it theme by akyne,  wont work,  help please :)
Title: Re: Facebook Like Mod
Post by: Misa95 on May 01, 2012, 01:01:23 PM
Hi! Sorry for my English. Does this mod makes tables in databases? And what's name of table he make?
Title: Re: Facebook Like Mod
Post by: Dan_y2k on July 05, 2012, 06:19:53 AM
Just the PERFECT mod I was looking for. :)

Will try to emulate to 2.0 with SMF 2.0.2, but would really love it if this mod will keep getting updates.
Looks very good.


EDIT: Well, tried emulating & installing. It does not work. I guess I'll have to use this mod (http://custom.simplemachines.org/mods/index.php?mod=3105) instead.

EDIT 2: Well, the second mod is even better! Simple to use and install, and I don't need a facebook app. :) I recommend on using it, and hoping it will get updated. :)
Title: Re: Facebook Like Mod
Post by: impreza on July 08, 2012, 07:07:58 AM
Very cool, thank you for this
Title: Re: Facebook Like Mod
Post by: Apllicmz on July 20, 2012, 01:47:47 AM
Nice work
when update dont forget portuguese Files

<file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
//Begin mod Fecebook Like translate by Candidosa2
$txt['facebookLike_allow'] = '[FacebookLike] Activar t&oacute;pico como gosto no seu f&oacute;rum?';
$txt['facebookLike_board_enable'] = 'Activar Gosto do Facebook nos t&oacute;picos [Facebook Like mod]';
$txt['facebookLike_board_enable_desc'] = 'Esta op&ccedil;&atilde;o permite que as pessoas digam gosto nos t&oacute;picos que estão lendo.';
//End mod Facebook Like

]]></add>
        </operation>
    </file>
<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
//Begin mod Fecebook Like translate by Candidosa2
$txt['facebookLike_allow'] = '[FacebookLike] Activar t&oacute;pico como gosto no seu f&oacute;rum?';
$txt['facebookLike_board_enable'] = 'Activar Gosto do Facebook nos t&oacute;picos [Facebook Like mod]';
$txt['facebookLike_board_enable_desc'] = 'Esta op&ccedil;&atilde;o permite que as pessoas digam gosto nos t&oacute;picos que estão lendo.';
//End mod Facebook Like

]]></add>
        </operation>
    </file>
Title: Re: Facebook Like Mod
Post by: clothahump on November 19, 2012, 02:59:58 AM
How can I un-install this mod, it is not working and I would like to replace it.
Title: Re: Facebook Like Mod
Post by: SergeantAsh on December 14, 2014, 06:46:51 AM
Personally, having tested other Facebook LIKE mods, I found this one to be the neatest/tidiest in the forum. So, as the author has left this mod behind, I've uplifted it and made the following improvements:

     - Enabled compatibility with 2.x.x upwards.
     - Enabled 'ShowFaces' Facebook feature.
     - Fixed issue with link not directing properly to topic URL due to bad syntax.
     - Reworded the admin panel text.
     - Added 'Auto Redirect' in installation routine to automatically take the user to the admin panel.
     - Altered so that the LIKE link shows on all posts in a topic, not just the first.

Please test in a Dev environment before implementing into a Production forum, but I am personally running it myself in mine and after thoroughly testing it, I'm really pleased with it!
Title: Re: Facebook Like Mod
Post by: Arantor on December 14, 2014, 11:30:19 AM
Sadly the mod does not appear to have a licence that permits you to modify and redistribute an updated version :(
Title: Re: Facebook Like Mod
Post by: SergeantAsh on December 14, 2014, 01:49:37 PM
Quote from: Arantor on December 14, 2014, 11:30:19 AM
Sadly the mod does not appear to have a licence that permits you to modify and redistribute an updated version :(

Well, its outdated code which didn't work, I have simply enhanced it :) I somehow doubt that he'll complain!
Title: Re: Facebook Like Mod
Post by: Arantor on December 14, 2014, 02:08:08 PM
The author is not available. However there is a small matter of violating copyright law that the team should really address.
Title: Re: Facebook Like Mod
Post by: SergeantAsh on December 14, 2014, 02:36:24 PM
Quote from: Arantor on December 14, 2014, 02:08:08 PM
The author is not available. However there is a small matter of violating copyright law that the team should really address.

But isn't it up to the author as to whether they wish to impose a copyright on a mod that they have written and distributed?
Title: Re: Facebook Like Mod
Post by: Arantor on December 14, 2014, 02:39:25 PM
Not entirely, no. Copyright persists in something the moment it is created and without a licence, any distribution is borderline infringement. There is, however, an effective licence attached on top of any mod that is distributed via the mod site, where if nothing is specified, the old SMF licence is used, which only allowed distribution from the official site... Not here and certainly not of modified versions.

Sucks, though it has to be enforced.
Title: Re: Facebook Like Mod
Post by: SergeantAsh on December 14, 2014, 02:52:35 PM
Quote from: Arantor on December 14, 2014, 02:39:25 PM
Not entirely, no. Copyright persists in something the moment it is created and without a licence, any distribution is borderline infringement. There is, however, an effective licence attached on top of any mod that is distributed via the mod site, where if nothing is specified, the old SMF licence is used, which only allowed distribution from the official site... Not here and certainly not of modified versions.

Sucks, though it has to be enforced.

Ah, fair enough - well hopefully this one will help those in need...whilst it's still available, too me a short while to sort/improve it too, so would be a shame to see it going to waste :)
Title: Re: Facebook Like Mod
Post by: Bounty_y2k on January 14, 2015, 06:50:36 AM
I was searching but I couldn't find an answer. Can I somehow change the place of like button next to quote,modify and remove buttons?
And can i display only like button without text?
Title: Re: Facebook Like Mod
Post by: SergeantAsh on January 14, 2015, 07:06:53 AM
Quote from: Bounty_y2k on January 14, 2015, 06:50:36 AM
I was searching but I couldn't find an answer. Can I somehow change the place of like button next to quote,modify and remove buttons?
And can i display only like button without text?

You'd have to alter the customisation yourself to achieve this.
Title: Re: Facebook Like Mod
Post by: bharat on January 31, 2018, 04:29:20 AM
I instelled this mod and I see that I have 2 likes buttons in each topic, how can I fix it?
Title: Re: Facebook Like Mod
Post by: njtweb on May 14, 2019, 03:54:23 PM
Still supported? Tried on 2.0.15 and got an incompatible or corrupt message. I know I can change to 2.0 to emulate, I'd just like to make sure it's designed to work if correctly after install and changing back to 2.0.15

Thank you!
Title: Re: Facebook Like Mod
Post by: Mick. on May 15, 2019, 07:19:07 AM
It's an old mod. Even if it was compatible today, I'd doubt it would work. Facebook changes their api code about every week. Not worth the effort these days to keep updating. I think vbgamer has a mod like this that works
Title: Re: Facebook Like Mod
Post by: njtweb on May 15, 2019, 11:24:53 AM
Quote from: Mick. on May 15, 2019, 07:19:07 AM
It's an old mod. Even if it was compatible today, I'd doubt it would work. Facebook changes their api code about every week. Not worth the effort these days to keep updating. I think vbgamer has a mod like this that works

Thank you Mick!