Zum Inhalt springen

Social Network Facebook / Twitter: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
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…“
 
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
Zeile 2: Zeile 2:


==Facebook==
==Facebook==
  <div id="fb-root"></div>
<syntaxhighlight lang="html4strict" line start="1" highlight="5" enclose="div">
    <script src="http://connect.facebook.net/de_DE/all.js"></script>
<div id="fb-root"></div>
    <script>
<script src="http://connect.facebook.net/de_DE/all.js"></script>
      FB.init({
<script>
        appId : 'YOUR APP ID',
FB.init({
        status : true, // check login status
appId : 'YOUR APP ID',
        cookie : true, // enable cookies to allow the server to access the session
status : true, // check login status
        xfbml : true // parse XFBML
cookie : true, // enable cookies to allow the server to access the session
      });
xfbml : true // parse XFBML
    </script>
});
 
</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>
 
<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==
  <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 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.

Facebook

<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>


Twitter

<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>