forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: shivas on July 03, 2009, 03:51:10 pm

Title: adding "share on facebook" wont work! help!
Post by: shivas on July 03, 2009, 03:51:10 pm
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>
Title: Re: adding "share on facebook" wont work! help!
Post by: shivas on July 03, 2009, 03:53:08 pm
btw im using 1.4.22 version
Title: Re: adding "share on facebook" wont work! help!
Post by: Joe Carver on July 03, 2009, 04:31:04 pm
btw - you need to upgrade
Title: Re: adding "share on facebook" wont work! help!
Post by: Nibbler on July 03, 2009, 04:34:17 pm
Static HTML code goes into template.html
Title: Re: adding "share on facebook" wont work! help!
Post by: shivas on July 03, 2009, 04:43:46 pm
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?
Title: Re: adding "share on facebook" wont work! help!
Post by: Joachim Müller on July 03, 2009, 11:37:56 pm
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.
Title: Re: adding "share on facebook" wont work! help!
Post by: shivas on July 04, 2009, 09:50:24 pm
yea ur right i should have thought that way! your a star thnx!