; Twit this code for zenphoto | code | Bert Simons | Portfolio

code /

Twit this code for zenphoto

This is the code I use to provide a Twit This link below my images in ZENphoto (as seen here)

in the header:

<head>

   <script type="text/javascript" charset="utf-8"
            src="http://bit.ly/javascript-api.js?version=latest&login=tweettrackjs&apiKey=R_7e9987b2fd13d7e4e881f9cbb168f523"></script>
   <script type="text/javascript" charset="utf-8"
            src="http://s.bit.ly/TweetAndTrack.js?v=1.01"></script>

</head>

 

where you want the Twit This link:

(you have to fill in your main site url in the gallery options, and can off course replace the Twit This! text by a thumb image)

 

<a href="#" onclick="return TweetAndTrack.open(this, '<?php echo getMainSiteURL( ).getImageLinkURL();?>');">
<span style="display:none;"> - <?php echo getImageTitle();?> - found at: www.bertsimons.nl</span>Twit This!</a>

Tags: