Jump to content

[Modul] FBML Facebook Like Box


rawsta

Recommended Posts

Hallo zusammen,

 

als ich auf der Suche nach einem Fanpage Block modul war und nichts passendes gefunden habe, bastelte ich mir kurz mein eigenes Modul.

Es ist so konfiguriert, das der Block aussieht wie alle anderen Blöcke und sich so möglichst nahtlos in Theme einfügt.

 

Um den Block zu benutzen muss man allerdings selbst etwas Hand anlegen.

Aber ist alles in der beigefügten Readme.txt erklärt.

 

/*-----------------------------
| Facebook Fan Page Module v0.5
\*----------------------------
//by Sebastian "rawsta" Fiele


# Usage:
open blockfanpage.tpl and edit this code:
<fb:fan profile_id="YOUR_FANPAGE_ID" logobar="false" stream="false" connections="9"
css="http://www.your-domain.tld/modules/blockfanpage/fb.css?3133746877" colorscheme="dark"
width="190" height="370" class="fb_iframe_widget "></fb:fan>

# Options:
.your Fanpage ID:
// Login to your Facebook Account (important) and visit this page:
// >> http://developers.facebook.com/docs/reference/plugins/like/
// In Step 2 - Get Open Graph Tags -> section : Admin (?) is your Profile ID

.logobar (Facebook Logobar)
// "false" or "true"

.stream (last posts on Facebook)
// "false" or "true"

.connection (visible fans in Block)
// enter number

.css (file to make the block transparent and change the font color)
// Full path to fb.css is needed.
// you have to change the number after the ? everytime you edit the fb.css to
// work properly (something like an facebook Cache causes it)

.colorscheme (general style)
// "light" or "dark"

.width and .height
// change to fit your theme


### Disclaimer:
// This Module is provided as is without warranty.
// I can't guarantee that it will work for you but it should.

 

Der Block erscheint nach der Installation auf Links sowie Rechts.

Einfach den nicht benötigten Block entfernen.

 

getestet in v1.4.7

 

Download: blockfanpage.zip

  • Like 4
Link to comment
Share on other sites

  • 3 months later...

Guten Abend, kurze frage ich bekomme die Box nicht zum laufen!

 

Hier mein Code:

 

 

<!-- Block Fan Page Facebook -->

 

<div id="fb_block" class="block">

 

<h4>{l s='Facebook' mod='blockfanpage'}</h4>

 

<script type="text/javascript" src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_GB"></script>

 

<script type="text/javascript">FB.init("b39d8fdf0d53360283614db94f7000cf");</script>

 

<fb:fan profile_id="305658416175739" logobar="false" stream="false" connections="9" css="http://www.4fans4ultras.de/modules/blockfanpage/fb.css?3133746877" colorscheme="dark" width="190" height="370" class="fb_iframe_widget "></fb:fan>

 

</div>

 

 

 

<!-- /Block links module -->

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...