Community Support Forums — WordPress® ( Users Helping Users ) — 2010-10-29T17:23:05-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1121 2010-10-29T17:23:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1121&p=4402#p4402 <![CDATA[S2MEMBER_CURRENT_USER_CUSTOM usage]]>
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:
<?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:
<?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

Statistics: Posted by KirkWard — October 29th, 2010, 5:23 pm


]]>