latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Scott Ewalt

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Specific post page button adds whitespace

By:  Steve Mitchell in: Community Forum

voices: 11
replies: 24

3 years, 4 months ago  Anthony Sielten

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Monday Jul 2nd, 2012 at 2:50 am #18062
Scott Ewalt
Username: eroq77

In my case, it was the theme that is causing the error, in which case I’ve spent too much time customizing and can’t/won’t switch to a compatible theme.

I must admit that my solution has encountered errors on the paypal side because I was using the long form code when generating a paypal button.

So I’ve modified and tested a new solution, that works perfectly!!! For anybody out there that still needs this little solution, try this…

I now use the shortcode and copy it, go back to the post/page you want, use the HTML editor and paste your shortcode, then type the following code before the shortcode:

<div style="margin-top: -640px;">

and right after the shortcode close it with this code:

</div>

Full example:

<div style="margin-top: -640px;">
[s2Member-PayPal-Button level="1" ccaps="" desc="yourdescription" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="yourwebsite.com" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="1" image="default" output="button" /]
</div>

You might have to experiment with the margin-top: -640px. Play around with that negative number until it looks right for your website.

Posted: Thursday Jun 28th, 2012 at 12:08 pm #17771
Scott Ewalt
Username: eroq77

I made a correction to the solution, the div tag should have a style set to display none, check my corrected post above.

Posted: Tuesday Jun 26th, 2012 at 10:57 pm #17609
Scott Ewalt
Username: eroq77

I was getting the weird s2member code in paypal’s summary page, but not anymore since generating a new button.

Posted: Tuesday Jun 26th, 2012 at 10:50 pm #17607
Scott Ewalt
Username: eroq77

Also, are you using the latest update of s2Member? They did launch an update recently.

Posted: Tuesday Jun 26th, 2012 at 10:48 pm #17606
Scott Ewalt
Username: eroq77

If you have used the new generated code with fix, try closing your browser and open it again to get a good refresh of your website. Maybe that will do it? …Hopefully

Posted: Tuesday Jun 26th, 2012 at 10:39 pm #17602
Scott Ewalt
Username: eroq77

Oh I see that weird code too.

Try regenerating a new button code, use the long code, and add the fix from my solution.

It worked for me, I’m thinking they changed something in the papal button generator since the time I originally made the button.

Posted: Tuesday Jun 26th, 2012 at 5:46 pm #17588
Scott Ewalt
Username: eroq77

I found a solution!!!

I used the long code for the paypal button, and I wrapped a div around all the hidden input fields and added the needed style code to get rid of the white space.

At the beginning of the form, the next line after the opening form tag, just add the opening div tag:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 <div style="display: none;">
 <input type="hidden" name="business" value="youremail@email.com" />
 <input type="hidden" name="cmd" value="_xclick" />
  ....
 

Then at the end of the form, right before the input “image” field for the paypal button, add the closing div tag:

....
<!-- Displays The PayPal® Image Button -->
</div>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>
  • This reply was modified 4 years, 6 months ago by  Scott Ewalt.
  • This reply was modified 4 years, 6 months ago by  Scott Ewalt.
Posted: Tuesday Jun 26th, 2012 at 4:01 pm #17570
Scott Ewalt
Username: eroq77

I’m having the same problem. Chrome browser “inspect element” shows the form that the paypal button is placed has a height of 709px. As an experiment, I used the long code for the paypal button and removed all the hidden input fields (I know this makes the button not work), but the result fixed the white space problem.

So I’m thinking there must be a CSS workaround for hidden input fields, I’ll let you know if I find anything.

  • This reply was modified 4 years, 6 months ago by  Scott Ewalt.
Viewing 8 replies - 1 through 8 (of 8 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.