Social Network Facebook / Twitter: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „Drupal Block erstellen und mit PHP Code folgenden code einbinden. ==Facebook== <div id="fb-root"></div> <script src="http://connect.facebook.net/de_DE/all…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 2: | Zeile 2: | ||
==Facebook== | ==Facebook== | ||
<syntaxhighlight lang="html4strict" line start="1" highlight="5" enclose="div"> | |||
<div id="fb-root"></div> | |||
<script src="http://connect.facebook.net/de_DE/all.js"></script> | |||
<script> | |||
FB.init({ | |||
appId : 'YOUR APP ID', | |||
status : true, // check login status | |||
cookie : true, // enable cookies to allow the server to access the session | |||
xfbml : true // parse XFBML | |||
}); | |||
</script> | |||
<script src="http://connect.facebook.net/de_DE/all.js?ver=3.1#xbfml=1"></script><fb:like class="fb" href="<?php echo $PHP_SELF; ?>" layout="button_count" width="110" font="arial"></fb:like> | |||
</syntaxhighlight> | |||
==Twitter== | ==Twitter== | ||
<syntaxhighlight lang="html4strict" line start="1" highlight="5" enclose="div"> | |||
<a "href="http://twitter.com/share" class="twitter-share-button" data-text="Ballonfahrten Zeberli" data-count="horizontal" data-via="szeberli" data-lang="de">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> | |||
</syntaxhighlight> | |||
Aktuelle Version vom 14. April 2013, 10:45 Uhr
Drupal Block erstellen und mit PHP Code folgenden code einbinden.
<div id="fb-root"></div>
<script src="http://connect.facebook.net/de_DE/all.js"></script>
<script>
FB.init({
appId : 'YOUR APP ID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
<script src="http://connect.facebook.net/de_DE/all.js?ver=3.1#xbfml=1"></script><fb:like class="fb" href="<?php echo $PHP_SELF; ?>" layout="button_count" width="110" font="arial"></fb:like>
<a "href="http://twitter.com/share" class="twitter-share-button" data-text="Ballonfahrten Zeberli" data-count="horizontal" data-via="szeberli" data-lang="de">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>