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.

Dynamic button creation using shortcodes

Home Forums Community Forum Unofficial Extensions/Hacks Dynamic button creation using shortcodes

This topic contains 0 replies, has 1 voice. Last updated by  Ben Chapman 3 years, 8 months ago.

Topic Author Topic
Posted: Saturday Apr 27th, 2013 at 10:47 pm #48605

Hello,

I’ve been experimenting with the s2Member shortcode for generating buttons. I recognise that the shortcode returns HTML:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">



</form>

The encrypted value above is abbreviated.

If I include the shortcode in a PHP file, rather than on the membership signup page for example, how can I capture the value from the line:

In other words I want to capture value="—–BEGIN PKCS7—–MIIK…." and store it as a variable.
1) is this possible?
2) if yes – how?
3) is a PayPal Pro account with s2Member Pro a way around this?

I have been looking at similar topics (eg. http://www.s2member.com/kb/using-variables-in-a-shortcode/).

Thank you!

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.