Page 1 of 1

S2MEMBER_CURRENT_USER_CUSTOM usage

PostPosted: October 29th, 2010, 5:23 pm
by KirkWard
Edit: I tested further by making a purchase with the PayPal button and the function works properly. That makes sense. Sorry for being a bother. I am leaving the post up in case anyone else has the same question. It will save adding another thread to the forum.

Cheers

************************************ original post left below ******************************

I read this segment
S2MEMBER_CURRENT_USER_CUSTOM
This will always be a (string). Empty if not logged in.

<?php echo S2MEMBER_CURRENT_USER_CUSTOM; ?>
This may output something like: http://www.yourdomain.com|cv1|cv2|cv3
( this is the PayPal input field value for the `custom` variable )

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_CUSTOM" /]

I entered the code specified as such
Code: Select all
<?php echo S2MEMBER_CURRENT_USER_CUSTOM; ?>

[s2Get constant="S2MEMBER_CURRENT_USER_CUSTOM" /]

I was expecting my domain name to appear as
http://example.com
but got no display on the page, so I tested it by adding the exec-php test code
Code: Select all
<?php echo "This is the Exec-PHP 'Hello World'"; ?>
which displayed the correct
This is the Exec-PHP 'Hello World'
as expected.

Is this because there has been no PayPal transaction IPN? (The user was added through admin.)

Is there a way to add a "simulated PayPal transaction" or create an IPN like result? in the custom capabilities record so users can be added or upgraded manually? (I have some users who want to send me checks. They say they can't figure out how to use PayPal, and because they are accountants, I believe them.)

Thanks,
Kirk