Hi guys
im trying to put the Share on Facebook button on my gallery (http://www.photosmile.gr/site/gallery (http://www.photosmile.gr/site/gallery)) and where ever i put the code it wont work! please help!
i tried to put it on displaypicture.php and on my theme's (custom) theme.php
code i want to insert is this:
<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_link { padding:2px 0 0 20px; height:16px; background:url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981) no-repeat top left; }</style><a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">Share on Facebook</a>
btw im using 1.4.22 version
btw - you need to upgrade
Static HTML code goes into template.html
yea i know i should do it within a week.
That works now but it can be placed only on some spots that i dont want. i would rather have it only under the picture. is that possible?
Yes. How to add custom output into particular places has been asked and answered before. Search the board for "adsense", as most requests where how to add adsense code snippets.
yea ur right i should have thought that way! your a star thnx!