1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Paypal Donate Button BB Code?

Discussion in 'Resource and Add-on Requests' started by DRE, Oct 17, 2012.

  1. DRE

    DRE Well-Known Member

    I need a paypal bb code so it's like [paypal]paypalemail[/paypal]

    Would be awesome. Just upgraded King Kovivors BB Code Manager.
     
  2. Adam Howard

    Adam Howard Well-Known Member

    Wish granted :D
     

    Attached Files:

    8thos likes this.
  3. DRE

    DRE Well-Known Member

    For a dude who don't like paypal you actually did this for me awww thank you. :love:
     
    Adam Howard likes this.
  4. Adam Howard

    Adam Howard Well-Known Member

    The only thing is it will display the person's e-mail address. This not a bug per say, but rather a limitation on how the bb code manager interacts with paypal's generated code.

    Do not parse BB Codes placed within this BB Code.

    Will still leave you with

    PHP:
     [email]  [/email
     
  5. DRE

    DRE Well-Known Member

    I guess I could use it in combination with the Hide BB Code then. :think:
     
  6. Adam Howard

    Adam Howard Well-Known Member

    If there is an option to hide / disable bb code inside the bb code manager other than

    Do not parse BB Codes placed within this BB Code.
    Do not parse smilies within this BB Code.
    Stop conversion of line breaks to HTML line breaks.

    I'm unaware of it.
     
  7. DRE

    DRE Well-Known Member

    Still need this! It doesn't have to do anything special, just look special and link to the paypal donate page.

    [paypal]paypalemail[/paypal]
     
  8. EQnoble

    EQnoble Well-Known Member

    DRE likes this.
  9. RobParker

    RobParker Well-Known Member

  10. DRE

    DRE Well-Known Member

  11. EQnoble

    EQnoble Well-Known Member

    completely possible, absolutely and completely possible, I'll check it over coffee tomorrow when I wake up (passing out soon)

    Yurp, after you create the button for this you just need to select the email tab for the button...
    Untitled.png
    Now that I think of it you will only be getting the link as you cant obviously paste in the html, so the custom image would have to be done another way xenforo side...I will sleep on it and figure it out.
     
    RobParker and DRE like this.
  12. EQnoble

    EQnoble Well-Known Member

    Ok so I have this working now but am still testing it as it was kind of complex to do considering that it was just a button that was being added.

    I don't know if I will have time to do all of the testing today as I have told someone who donated that I would upload the mediasites pack update today and that takes priority.

    I did do some basic testing and from what I have seen it looks like it is working as you can see in this image

    pplinks.png
    Usage will be like this...

    If a user posts a link like this with no alterations it will imbed as the first button in the above image with a default button image for buy now.

    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7XT3W6PZTSDMS

    --
    If the user adds a
    /cart
    /donate
    /gift
    /subscription

    it will create he appropriate button that corresponds with the /buttonTypeFlag

    example:

    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7XT3W6PZTSDMS/cart
    ---

    If the user adds (with or without the button type above) a /imageURL the image will be used instead which i did as a test with that speedtest image

    examples:


    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7XT3W6PZTSDMS/http://www.speedtest.net/result/2924176948.png

    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7XT3W6PZTSDMS/cart/http://www.speedtest.net/result/2924176948.png


    I don't know when I will get to the final testing but I will once obligations to contributors have been fulfilled and then I will post it up.
     
    Last edited: Sep 25, 2013
    Steve F, DRE and RobParker like this.
  13. DRE

    DRE Well-Known Member

    envious @ your internet.
    Mine
    [​IMG]
     
  14. EQnoble

    EQnoble Well-Known Member

    I almost moved to Florida at one point a few years ago, the above image is reason #5 why I didn't :)
     
  15. DRE

    DRE Well-Known Member

    lol smh
     

Share This Page