Results 1 to 14 of 14

Thread: Help with PayPal Buttons on My Blog

  1. #1
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Help with PayPal Buttons on My Blog

    I've worked out how to put buttons on my blog to sell tickets for dances. But they come up with big gaps when the page is published. When I go in and remove the gaps the buttons no longer work.

    Here is the link to the blog http://rocsters.blogspot.com/p/buy-tickets.html

    Note to Moderators - I'm not doing this as a sneaky way of promoting a dance. I haven't deliberately done something silly as a way of selling tickets to a dance - I'm not that clever, I just need help and have been trying all day to fix this problem

  2. #2
    Registered User
    Join Date
    Oct 2005
    Location
    SW London
    Posts
    397
    Rep Power
    10

    Re: Help with PayPal Buttons on My Blog

    Have you tried here for an answer? Blog Support

  3. #3
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by Miguel View Post
    Have you tried here for an answer? Blog Support
    Hi Miguel,

    I did look there. All I found was people asking the same question as me and getting no answer or answers that didn't make sense.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Location
    South
    Posts
    5,424
    Blog Entries
    22
    Rep Power
    11

    Re: Help with PayPal Buttons on My Blog

    What're you using to edit it Andy?

    I've had a look at the source and you've got a lot of lines of hidden code, each ending with a <br /> tag.
    You need to remove those tags and it should all line up nicely.



    BTW, that's £10 + VAT

  5. #5
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by Gav View Post
    BTW, that's £10 + VAT
    Can I pay in kisses?

  6. #6
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by Gav View Post
    What're you using to edit it Andy?

    I've had a look at the source and you've got a lot of lines of hidden code, each ending with a <br /> tag.
    You need to remove those tags and it should all line up nicely.
    I just copied and pasted the code from PayPal. I'll have a go at deleting those bits. Thank you

  7. #7
    Formerly known as DavidJames David Bailey's Avatar
    Join Date
    Mar 2005
    Location
    Norf Lundin
    Posts
    17,001
    Blog Entries
    1
    Rep Power
    18

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by Gav View Post
    What're you using to edit it Andy?

    I've had a look at the source and you've got a lot of lines of hidden code, each ending with a <br /> tag.
    You need to remove those tags and it should all line up nicely.
    Yes, that works - the <br /> tags are all at the end of the "<input name= xyz type="hidden">" statements, lose those and you'll be OK.

    Also, it's horrible code...

  8. #8
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by David Bailey View Post
    Yes, that works - the <br /> tags are all at the end of the "<input name= xyz type="hidden">" statements, lose those and you'll be OK.

    Also, it's horrible code...
    When I go into Bloggers "Edit Pages" and select HTML I don't see those tags. They're not in the code produced by PayPal when they generated the buttons.

    HELP!

    Payment in hugs and kisses

  9. #9
    Commercial Operator
    Join Date
    May 2003
    Location
    Northeastern Parts
    Posts
    5,221
    Rep Power
    14

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by Andy McGregor View Post
    When I go into Bloggers "Edit Pages" and select HTML I don't see those tags. They're not in the code produced by PayPal when they generated the buttons.

    HELP!

    Are there any carriage returns? If so, delete them all so the HTML is all on one line - the editor might be replacing them with <br> tags.

    If not, it sounds like the editor is automatically inserting them... in which case, we'll have to resort to something clever

    Insert the following before the first <input type="hidden" tag:
    Code:
    <div style="height: 0px; overflow: hidden">
    and then put this before the <input type="image" tag:

    Code:
    </div>
    Quote Originally Posted by Andy McGregor View Post
    Payment in hugs and kisses
    Please donate said payment to Rocky.
    Last edited by straycat; 14th-October-2010 at 12:46 PM.

  10. #10
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by straycat View Post
    Are there any carriage returns? If so, delete them all so the HTML is all on one line - the editor might be replacing them with <br> tags.

    If not, it sounds like the editor is automatically inserting them... in which case, we'll have to resort to something clever
    I managed to do the first bit, which removed both buttons. Then I inserted the second bit and ended up with a nice space and just one button.

    Here's the code I get when I click "edit HTML".

    Quote Originally Posted by Blogger Code
    Click below to buy your tickets for the Horror Ball via Paypal. Don't forget, we're balancing the sexes - buy your Witch or Wizard ticket.
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    <input name="cmd" type="hidden" value="_cart" />
    <input name="business" type="hidden" value="Andy@Rocsters.com" />
    <input name="lc" type="hidden" value="GB" />
    <input name="item_name" type="hidden" value="Man's £8 Ticket for Horror Ball 13th Nov 2010" />
    <input name="amount" type="hidden" value="8.00" />
    <input name="currency_code" type="hidden" value="GBP" />
    <input name="button_subtype" type="hidden" value="products" />
    <input name="no_note" type="hidden" value="0" />
    <input name="add" type="hidden" value="1" />
    <input name="bn" type="hidden" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
    <input alt="PayPal - The safer, easier way to pay online." border="0" name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" type="image" /> Man's "Wizard" Ticket £8
    <img alt="" border="0" height="1" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" /></form>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    <input name="cmd" type="hidden" value="_cart" />
    <input name="business" type="hidden" value="Andy@Rocsters.com" />
    <input name="lc" type="hidden" value="GB" />
    <input name="item_name" type="hidden" value="Lady's £8 Ticket for Horror Ball 13th Nov 2010" />
    <input name="amount" type="hidden" value="8.00" />
    <input name="currency_code" type="hidden" value="GBP" />
    <input name="button_subtype" type="hidden" value="products" />
    <input name="no_note" type="hidden" value="0" />
    <input name="add" type="hidden" value="1" />
    <input name="bn" type="hidden" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
    <input alt="PayPal - The safer, easier way to pay online." border="0" name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" type="image" /> <img alt="" border="0" height="1" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" />Lady's "Witch" Ticket £8

    p.s. We'd love to hear from any Sorcerers of the PC who can tell us how to make this page work without the big gaps - we're dance teachers, not IT experts!</form>

  11. #11
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by straycat View Post
    Please donate said payment to Rocky.
    If you can fix this I'll give him "extras"

  12. #12
    Formerly known as DavidJames David Bailey's Avatar
    Join Date
    Mar 2005
    Location
    Norf Lundin
    Posts
    17,001
    Blog Entries
    1
    Rep Power
    18

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by Andy McGregor View Post
    I managed to do the first bit, which removed both buttons. Then I inserted the second bit and ended up with a nice space and just one button.

    Here's the code I get when I click "edit HTML".
    Your "edit HTML" editor is lying to you.

    There are still <br/> tags there. I can only assume your editor is just automatically putting them there for you, trying to be "helpful"

    Try Stray's second suggestion - wrap those "div" tags around the whole lot. Which is a kludge to fix a kludge, of course...

    Failing that, do it the proper way - but that'd involve redesign.

  13. #13
    Commercial Operator
    Join Date
    May 2003
    Location
    Northeastern Parts
    Posts
    5,221
    Rep Power
    14

    Re: Help with PayPal Buttons on My Blog

    I should have been a little more specific - my bad.
    Try:
    Code:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    <div style="height: 0px; overflow: hidden">
    <input name="cmd" type="hidden" value="_cart" />
    <input name="business" type="hidden" value="Andy@Rocsters.com" />
    <input name="lc" type="hidden" value="GB" />
    <input name="item_name" type="hidden" value="Man's £8 Ticket for Horror Ball 13th Nov 2010" />
    <input name="amount" type="hidden" value="8.00" />
    <input name="currency_code" type="hidden" value="GBP" />
    <input name="button_subtype" type="hidden" value="products" />
    <input name="no_note" type="hidden" value="0" />
    <input name="add" type="hidden" value="1" />
    <input name="bn" type="hidden" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
    </div>
    <input alt="PayPal - The safer, easier way to pay online." border="0" name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" type="image" /> Man's "Wizard" Ticket £8
    <img alt="" border="0" height="1" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" /></form>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    <div style="height: 0px; overflow: hidden">
    <input name="cmd" type="hidden" value="_cart" />
    <input name="business" type="hidden" value="Andy@Rocsters.com" />
    <input name="lc" type="hidden" value="GB" />
    <input name="item_name" type="hidden" value="Lady's £8 Ticket for Horror Ball 13th Nov 2010" />
    <input name="amount" type="hidden" value="8.00" />
    <input name="currency_code" type="hidden" value="GBP" />
    <input name="button_subtype" type="hidden" value="products" />
    <input name="no_note" type="hidden" value="0" />
    <input name="add" type="hidden" value="1" />
    <input name="bn" type="hidden" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
    </div>
    <input alt="PayPal - The safer, easier way to pay online." border="0" name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" type="image" /> <img alt="" border="0" height="1" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" />Lady's "Witch" Ticket £8
    <br clear="both" /><br />
    p.s. We owe a debt of gratitude to Straycat, the web wizard who showed us how to remove the gaps from this form.</form>
    Last edited by straycat; 14th-October-2010 at 04:15 PM.

  14. #14
    Commercial Operator
    Join Date
    Mar 2003
    Location
    Sussex by the Sea
    Posts
    9,276
    Rep Power
    15

    Re: Help with PayPal Buttons on My Blog

    Quote Originally Posted by straycat View Post
    I should have been a little more specific
    Thank you straycat

    It's working lovely now. I'll try to work out what you did so I don't have to pester you next time.

    Please let me know if there's anything I can help you with in my areas of expertise? I'm currently an expert in COPD, Smoking Cessation, Erectile Dysfunction, Pain and Gastroenterology

    Or I could give you a few free tickets if you're in Brighton.
    Last edited by Andy McGregor; 14th-October-2010 at 04:49 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to Start a Blog?
    By Andy McGregor in forum Geeks' Corner
    Replies: 5
    Last Post: 11th-May-2010, 01:56 PM
  2. smooth stone blog
    By martingold in forum Chit Chat
    Replies: 1
    Last Post: 17th-December-2008, 10:42 AM
  3. Focus workshop Notes: Blog entry!
    By Franck in forum Let's talk about dance
    Replies: 0
    Last Post: 1st-October-2007, 12:39 PM
  4. Identity & eBay/Paypal frauds
    By Sheepman in forum Chit Chat
    Replies: 16
    Last Post: 18th-August-2006, 04:16 PM

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •