adding "share on facebook" wont work! help! adding "share on facebook" wont work! help!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

adding "share on facebook" wont work! help!

Started by shivas, July 03, 2009, 03:51:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shivas

Hi guys

im trying to put the Share on Facebook button on my 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>
Get on your Dancing shoes!

shivas

Get on your Dancing shoes!

Joe Carver


Nibbler


shivas

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?
Get on your Dancing shoes!

Joachim Müller

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.

shivas

yea ur right i should have thought that way! your a star thnx!
Get on your Dancing shoes!