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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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!