News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Need Facebook "Like" mod testers

Started by Mick., April 22, 2010, 08:56:25 PM

Previous topic - Next topic

Mick.

Very simple Facebook "Like" button added on to every topic.   Looking for testers ;)

I packed it below.   Only for SMF RC3 default theme.

It will post the topic name, link and "Like" back to your Facebook "Recent Activity" wall.

It will work on any custom theme that does NOT have display.template.php.

NOTE***  Only works for logged in Facebook users.

Thanx,
Mick.




Ken.

"If you don't have a stack of failures in your shop, you aren't trying hard enough". --Richard Raffin.


Mick.

Quote from: Ken. on April 22, 2010, 09:12:04 PM
It appears to work correctly Mick.
Error log shows no entries.
http://www.ourfamilyforum.org/SMF2.0/index.php?topic=3.0



Cool,  i see it.    I would think if i push it a little bit to the right would look better.

~DS~

Quote from: bluedevil on April 22, 2010, 09:14:04 PM
Quote from: Ken. on April 22, 2010, 09:12:04 PM
It appears to work correctly Mick.
Error log shows no entries.
http://www.ourfamilyforum.org/SMF2.0/index.php?topic=3.0



Cool,  i see it.    I would think if i push it a little bit to the right would look better.
Yeah.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Mick.

I guess i take that as a yes.   Submitting this to the mod site. ;)

Mick.

Added a quick "read-Me" file and submitted it to the mod site.


I got to thinking that languages should change automaticaly per FB users settings.    Hmmm.....i guess we'll find out.

JBlaze

Very nice Mick. I'll take a look at the queue shortly.
Jason Clemons
Former Team Member 2009 - 2012

Mick.

Quote from: JBlaze on April 22, 2010, 10:25:34 PM
Very nice Mick. I'll take a look at the queue shortly.

Oh wow,  thanx man.  You rock!

trikos

Nice one :)

Any chance that there will be a mod for smf 1.1? I won't be able to upgrade for a while due to integration issues ::)

Mick.

Quote from: Ken. on April 24, 2010, 08:52:01 PM
She's up to 11 posts... wonder how high she'll get before someone yanks the plug?  ;)

Someone pulled it.   lol

Mick.

Quote from: trikos on April 24, 2010, 12:10:55 PM
Nice one :)

Any chance that there will be a mod for smf 1.1? I won't be able to upgrade for a while due to integration issues ::)

Sorry Trikos but no.  I moved on to 2.0 series and never looked back.  In fact, i don't even have 1.1.x installation for testing.

Sorry man.

Ken.

Quote from: bluedevil on April 24, 2010, 08:52:55 PM
Quote from: Ken. on April 24, 2010, 08:52:01 PM
She's up to 11 posts... wonder how high she'll get before someone yanks the plug?  ;)

Someone pulled it.   lol


Yepp... I noticed that, so I deleted my post. :)
"If you don't have a stack of failures in your shop, you aren't trying hard enough". --Richard Raffin.


trikos

Quote from: bluedevil on April 24, 2010, 08:54:53 PM
Quote from: trikos on April 24, 2010, 12:10:55 PM
Nice one :)

Any chance that there will be a mod for smf 1.1? I won't be able to upgrade for a while due to integration issues ::)

Sorry Trikos but no.  I moved on to 2.0 series and never looked back.  In fact, i don't even have 1.1.x installation for testing.

Sorry man.

Well, I understand. I might code a module for 1.1 myself inspired by yours if you don't mind.

vbgamer45

Simple to add to 1.1.x I added it to some of my forums.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Mick.

#15
I need a little help here with the code....

Dismal Shadow requested board permissions to this simple mod. 

...and here's why..... Ken's pictures shows "like" to a hidden board. 




I took it upon myself to add the board permissions but so far i have 2 "parse errors".

1. Parse error: syntax error, unexpected ';', expecting ')' in ..../Sources/ManageBoards.php  on line 421

2. Parse error: syntax error, unexpected $end in .../Themes/default/Display.template.php  on line 880

I cannot locate the problem.

Here's the xml file:

Arantor

Easiest thing to do is apply the mod and look at the resultant files - is all I'd do.

Yağız...

For Display.template.php error, remove the "{" at the end of 3rd line. But for the other one, I don't have any idea :)

Mick.

Doh!  i forgot to open and close the operation.


   <file name="$sourcedir/ManageBoards.php">
      <operation>
         <search position="before"><![CDATA[
      $boardOptions['posts_count'] = isset($_POST['count']);
]]></search>
         <add><![CDATA[

      $boardOptions['facebookLike_board_enable'] = isset($_POST['facebookLike_board_enable']);   //Facebook Like
]]></add>

         <search position="before"><![CDATA[
         'theme' => 0,
         'profile' => 1,
         'override_theme' => 0,
]]></search>
         <add><![CDATA[

         'facebookLike_board_enable' => 0,
]]></add>
      </operation>

        </file>

Mick.

I now have an issue that i cannot correct.

http://www.bluedevilcustoms.com/devsite/index.php?topic=1.msg9#new

If i remove this from the display.template.php the mod is visible.  But if i leave it, it breaks the page.

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


Advertisement: