"Facebook" Post include?
Posted: Tue Jan 06, 2009 2:11 am
I've got the following code....
And am trying to insert it into my template so it shows up as a "button" at the end of each post, much like the tags do for digg, etc.
I've not been able to figure it out, which means I'm probably terminally stupid in understanding "Smarty"....
Any general pointers?
Code: Select all
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; background:url(http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?0:26981) no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url(http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?0:26981) no-repeat top right; text-decoration:none; } </style> <a href="http://www.facebook.com/share.php?u=<url>" class="fb_share_button" onclick="return fbs_click()" target="_blank" style="text-decoration:none;">Share</a>I've not been able to figure it out, which means I'm probably terminally stupid in understanding "Smarty"....
Any general pointers?