I see. The full code has those two bits of PHP in it and you need to use the Exec PHP plugin for them to work, and not use the the visual editor or it causes what you get.
You can use shortcode for them instead of PHP, try replacing those with these, as long as you use them in the WordPress installation you have s2member in:
- Code: Select all
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0" /]
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0" /]
Hmm... re-reading your first post, though, you're probably using the button in another website, right?