Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: adding "share on facebook" wont work! help!  (Read 4903 times)

0 Members and 1 Guest are viewing this topic.

shivas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
  • I love you, you love I?
    • Photosmile
adding "share on facebook" wont work! help!
« 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 ) 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>
Logged
Get on your Dancing shoes!

shivas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
  • I love you, you love I?
    • Photosmile
Re: adding "share on facebook" wont work! help!
« Reply #1 on: July 03, 2009, 03:53:08 pm »

btw im using 1.4.22 version
Logged
Get on your Dancing shoes!

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: adding "share on facebook" wont work! help!
« Reply #2 on: July 03, 2009, 04:31:04 pm »

btw - you need to upgrade

Nibbler

  • Guest
Re: adding "share on facebook" wont work! help!
« Reply #3 on: July 03, 2009, 04:34:17 pm »

Static HTML code goes into template.html
Logged

shivas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
  • I love you, you love I?
    • Photosmile
Re: adding "share on facebook" wont work! help!
« Reply #4 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?
Logged
Get on your Dancing shoes!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding "share on facebook" wont work! help!
« Reply #5 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.
Logged

shivas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
  • I love you, you love I?
    • Photosmile
Re: adding "share on facebook" wont work! help!
« Reply #6 on: July 04, 2009, 09:50:24 pm »

yea ur right i should have thought that way! your a star thnx!
Logged
Get on your Dancing shoes!
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.