forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: twoclones on May 12, 2016, 07:44:00 pm

Title: Paste Paypal button in file description?
Post by: twoclones on May 12, 2016, 07:44:00 pm
I want to add PayPal buttons to "some items" in my gallery.  When I tried pasting the PayPal button 'code' into the description, coppermine shows the html form 'code' rather than the button.

Is there a way/setting to allow this button/form code to do it's job and show the PayPal button?

COPPERMINE PHOTO GALLERY 1.5.34
http://woodhacker.com/gallery/thumbnails.php?album=11
Title: Re: Paste Paypal button in file description?
Post by: twoclones on May 12, 2016, 08:01:42 pm
More searching found this BBCode Control.  It sounds like this would do what I'm asking for.  Anyone know for certain?
If I get it working, I will report it here. :)

http://forum.coppermine-gallery.net/index.php/topic,57432.0.html
Title: Re: Paste Paypal button in file description?
Post by: twoclones on May 13, 2016, 06:50:46 pm
Here is what I've found...
The BBCode plugin was not necessary to include a PayPal button in the description area of a photo.  Just plain bbcode for URL and IMG will do the trick.  Below are some links I found helpful.

First, when you create a PayPal button the display defaults to 'website' code.  Clicking the 'email' tab shows the URL needed for a link to your now saved button.  The link will look something like this.
Code: [Select]
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UMLBJVHK7C***
Next you will need a link to the appropriate button image.  Buttons for English language websites are at:
https://developer.paypal.com/docs/classic/api/buttons/ (https://developer.paypal.com/docs/classic/api/buttons/)

Other language button files can be found at:
https://developer.paypal.com/docs/classic/archive/buttons/ (https://developer.paypal.com/docs/classic/archive/buttons/)

Put the button link and button image together like this..
Code: [Select]
[url=https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UMLBJVHK7C***]
[img]https://www.paypalobjects.com/webstatic/en_US/btn/btn_buynow_cc_171x47.png[/img]
[/url]

Paste this ^ into the File Description, apply the changes, the functioning PayPal button should now be in your Description box :)

Note:
I found most of what I needed on this PayPal page.
https://www.paypal.com/webapps/mpp/get-started/add-payment-link-to-facebook (https://www.paypal.com/webapps/mpp/get-started/add-payment-link-to-facebook)