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: Paste Paypal button in file description?  (Read 4146 times)

0 Members and 1 Guest are viewing this topic.

twoclones

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Paste Paypal button in file description?
« 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
Logged

twoclones

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Paste Paypal button in file description?
« Reply #1 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
Logged

twoclones

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Paste Paypal button in file description?
« Reply #2 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/

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..
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
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.