SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: Kobar on April 28, 2011, 10:15:42 AM

Title: Latest 5 Facebook on *your forum* activities?
Post by: Kobar on April 28, 2011, 10:15:42 AM
Based on: http://www.simplemachines.org/community/index.php?topic=381323.0

Those ( http://www.simplemachines.org/community/index.php?topic=381323.msg2626563#msg2626563 ) codes doesn't work

Hopefully someone could help me
Title: Re: Latest 5 Facebook on *your forum* activities?
Post by: 130860 on April 28, 2011, 12:52:04 PM
you need to change  site="yoursite.com"   with your actual site url  ;)
Title: Re: Latest 5 Facebook on *your forum* activities?
Post by: Kobar on April 29, 2011, 06:50:20 AM
you need to change  site="yoursite.com"   with your actual site url  ;)

I know.

Code: [Select]
// 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="http://www.solar-xl.nl/forum" width="170" height="300" header="true" colorscheme="light" /></fb:activity></div>';

//  End Of Facebook Recent Activity

I tried: solar-xl.nl, www.solar-xl.nl, www.solar-xl.nl/forum, http://solar-xl.nl/forum..

It all came up with:

Code: [Select]
// Facebook Recent Activity echo '
'; // End Of Facebook Recent Activity
Title: Re: Latest 5 Facebook on *your forum* activities?
Post by: [SiNaN] on April 29, 2011, 08:38:46 AM
Which block are you using to add this code? Is it Custom PHP block?
SimplePortal 2.3.8 © 2008-2024, SimplePortal