Forums

Bizarre comment glitch (6 posts)

  1. weldonberger
    Member
    Posted 6 years ago #

    I just added a Paypal donation link to my blog, and after several days of no comments I got an email from a friend asking me if she had to pay to comment on the site now. So I checked the comments and sure enough, when you hit the submit button it takes you to the Paypal donation screen.

    What I had done was insert the PayPal code at the top of the content section on the index page, thusly:

    <div id="content">

    <div>Please consider supporting BTC News by making a donation through the link below.<br>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <input type="hidden" name="encrypted" value="[my PayPal info]"><br></div>

    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?><?php the_date('','<h2>','</h2>'); ?>

    Obviously the PayPal action superceded the comment submission action, but I haven't the foggiest notion why, or how to get around it so I can still have the donation link at the top of each index page.

    Any help?

  2. error
    Member
    Posted 6 years ago #

    You need to paste the PayPal code correctly, it appears. You should have a </form> somewhere in the PayPal code, and I don't see it there.

    Also, a LOT of people have trouble with the encrypted buttons, while the non-encrypted buttons work just fine. If you continue to have trouble, or have other trouble with the button, switch to the non-encrypted one.

  3. masquerade
    Member
    Posted 6 years ago #

    you forgot the </form> on the paypal info

  4. weldonberger
    Member
    Posted 6 years ago #

    Well, aren't I the complete frickin' moron. Thanks.

  5. vkaryl
    Member
    Posted 6 years ago #

    That's why other eyes are helpful.... no one's particularly good at proofing hisser own stuff!

  6. weldonberger
    Member
    Posted 6 years ago #

    Thank you for the kindness, vkaryl. What really bugs me is that I didn't tumble to the problem before someone emailed me about it. Two days, 8100 visits and no comments. D'oh!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.