PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

S2MEMBER_CURRENT_USER_CUSTOM usage

s2Member Plugin. A Membership plugin for WordPress®.

S2MEMBER_CURRENT_USER_CUSTOM usage

Postby KirkWard » October 29th, 2010, 5:23 pm

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
User avatar
KirkWard
Experienced User
Experienced User
 
Posts: 61
Joined: October 22, 2010

Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests

cron