Paste Paypal button in file description? Paste Paypal button in file description?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Paste Paypal button in file description?

Started by twoclones, May 12, 2016, 07:44:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

twoclones

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

twoclones

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

twoclones

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.
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/

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

Put the button link and button image together like this..
[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