Insert html / javascript into photo description Insert html / javascript into photo description
 

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

Main Menu

Insert html / javascript into photo description

Started by snowfore, January 26, 2004, 01:09:42 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

snowfore

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

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!

moorey

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

blumley

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.