Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Insert html / javascript into photo description  (Read 7914 times)

0 Members and 1 Guest are viewing this topic.

snowfore

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.snow-forecast.com
Insert html / javascript into photo description
« on: January 26, 2004, 01:09:42 pm »

Please could someone tell me how I can include this piece of javascript into the description so it functions. It is a clickable link to add a product to a shopping cart:

<script>
                        buy('midnight-sun.jpg','Buy this photo', 'thumbnail_url=http://www.snow-forecast.com/nick/thumbs/midnight-sun.jpg',
                        'photo_url=http://www.snow-forecast.com/nick/photo/midnight-sun.jpg')
                        </script>

Anyone who is interested it is for www.photobox.co.uk integration
Logged

snowfore

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.snow-forecast.com
done it - ecommerce in Coppermine
« Reply #1 on: January 29, 2004, 02:59:38 pm »

thanks for nothing - I worked it out on my own:

http://www.printbox.co.uk/coppermine/thumbnails.php?album=4

Anyone interested in seeing how I did it drop me a line!
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
Insert html / javascript into photo description
« Reply #2 on: January 30, 2004, 03:47:49 am »

Go ahead.. post it in the MOD section - someone is bound to be interested. You'd just have to create an opportunity for it - sometimes.  :o
Logged

blumley

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://www.lonesomecrowdedweb.com
Re: done it - ecommerce in Coppermine
« Reply #3 on: February 20, 2004, 06:36:51 pm »

Quote from: "snowfore"
thanks for nothing - I worked it out on my own:

http://www.printbox.co.uk/coppermine/thumbnails.php?album=4

Anyone interested in seeing how I did it drop me a line!


ME ME ME ME ME!  Tell me how you did it.  I'm wanting to do it with a PayPal shopping cart but my guess is it can't be much different.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.