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.

Christian (S.)


My Latest Replies (From Various Topics)

Viewing 9 replies - 26 through 34 (of 34 total)
Author Replies
Author Replies
Posted: Wednesday Apr 18th, 2012 at 5:55 pm #11157

Hi,

i can give you a short list – not complete but helpful

<?php
$user_login = get_user_field ("user_login"); 
# Username for the current User.

$user_email = get_user_field ("user_email"); 
# Email Address for the current User.

$first_name = get_user_field ("first_name"); 
# First Name for the current User.

$last_name = get_user_field ("last_name"); 
# Last Name for the current User.

$full_name = get_user_field ("full_name"); 
# First and Last Name for the current User.

$display_name = get_user_field ("display_name"); 
# Display Name for the current User.

$s2member_custom = get_user_field ("s2member_custom"); 
# Custom String value for the current User.

$s2member_subscr_id = get_user_field ("s2member_subscr_id"); 
# Paid Subscr. ID for the current User.

$s2member_subscr_or_wp_id = get_user_field ("s2member_subscr_or_wp_id"); 
# Paid Subscr. ID, else WordPress® User ID.

$s2member_subscr_gateway = get_user_field ("s2member_subscr_gateway"); 
# Paid Subscr. Gateway Code for the current User.

$s2member_registration_ip = get_user_field ("s2member_registration_ip"); 
# IP the current User had during registration.

$s2member_custom_fields = get_user_field ("s2member_custom_fields"); 
# Associative array of all Custom Registration/Profile Fields.

$s2member_file_download_access_log = get_user_field ("s2member_file_download_access_log"); 
# Associative array of all File Downloads by the current User, in the current Period ( Period is based on a specific User'sallowed_days, configured in your Basic Download Restrictions, at the User's current Membership Level ).

$s2member_file_download_access_arc = get_user_field ("s2member_file_download_access_arc"); 
# Associative array of all File Downloads by the current User, in previous Periods ( Periods are based on a specific User'sallowed_days, configured in your Basic Download Restrictions, at the User's Membership Levels in the past ).

$s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time"); 
# Auto EOT-Time for the current User ( when applicable ).

$s2member_last_payment_time = get_user_field ("s2member_last_payment_time"); 
# Timestamp. Last time an actual payment was received by s2Member.

$s2member_paid_registration_times = get_user_field ("s2member_paid_registration_times"); 
# Timestamps. Associative array of all Paid Registration Times.

$s2member_access_role = get_user_field ("s2member_access_role"); 
# A WordPress® Role ID ( i.e. s2member_level[0-9]+, administrator, editor, author, contributor, subscriber ).

$s2member_access_level = get_user_field ("s2member_access_level"); 
# An s2Member Membership Access Level number.

$s2member_access_label = get_user_field ("s2member_access_label"); 
# An s2Member Membership Access Label ( i.e. Bronze, Gold, Silver, Platinum, or whatever is configured ).

$s2member_access_ccaps = get_user_field ("s2member_access_ccaps"); 
# An array of Custom Capabilities the current User has ( i.e. music,videos ).

$s2member_login_counter = get_user_field ("s2member_login_counter"); 
# Number of times the User has logged into your site.
?>

This could help you.

Posted: Wednesday Apr 18th, 2012 at 3:27 pm #11143

Feel free to move it. :-)

Posted: Wednesday Apr 18th, 2012 at 12:10 pm #11122

Hi Cristian,

when I wrote the contribution I thought it might be useful for others. I like to ask my members to their origin.
The country list is long so I had posted it.

I saw too late that this list is already in the extras (zip).

should only be a small help.

Posted: Thursday Apr 12th, 2012 at 8:24 am #10650

Hi,

i use this php plugin “PHP Execution”

and that’s are my php codes

<?php
$user_login = get_user_field ("user_login");
# Username for the current User.
$user_email = get_user_field ("user_email"); 
# Email Address for the current User.
$first_name = get_user_field ("first_name"); 
# First Name for the current User.
$last_name = get_user_field ("last_name"); 
# Last Name for the current User.
$full_name = get_user_field ("full_name"); 
# First and Last Name for the current User.
$display_name = get_user_field ("display_name"); 
# Display Name for the current User.
$s2member_custom = get_user_field ("s2member_custom"); 
# Custom String value for the current User.
$s2member_subscr_id = get_user_field ("s2member_subscr_id"); 
# Paid Subscr. ID for the current User.
$s2member_subscr_or_wp_id = get_user_field ("s2member_subscr_or_wp_id"); 
# Paid Subscr. ID, else WordPress® User ID.
$s2member_subscr_gateway = get_user_field ("s2member_subscr_gateway"); 
# Paid Subscr. Gateway Code for the current User.
$s2member_registration_ip = get_user_field ("s2member_registration_ip"); 
# IP the current User had during registration.
$s2member_custom_fields = get_user_field ("s2member_custom_fields"); 
# Associative array of all Custom Registration/Profile Fields.
$s2member_file_download_access_log = get_user_field ("s2member_file_download_access_log"); 
# Associative array of all File Downloads by the current User, in the current Period ( Period is based on a specific User'sallowed_days, configured in your Basic Download Restrictions, at the User's current Membership Level ).
$s2member_file_download_access_arc = get_user_field ("s2member_file_download_access_arc"); 
# Associative array of all File Downloads by the current User, in previous Periods ( Periods are based on a specific User'sallowed_days, configured in your Basic Download Restrictions, at the User's Membership Levels in the past ).
$s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time"); 
# Auto EOT-Time for the current User ( when applicable ).
$s2member_last_payment_time = get_user_field ("s2member_last_payment_time"); 
# Timestamp. Last time an actual payment was received by s2Member.
$s2member_paid_registration_times = get_user_field ("s2member_paid_registration_times"); # Timestamps. Associative array of all Paid Registration Times.
$s2member_access_role = get_user_field ("s2member_access_role"); 
# A WordPress® Role ID ( i.e. s2member_level[0-9]+, administrator, editor, author, contributor, subscriber ).
$s2member_access_level = get_user_field ("s2member_access_level"); 
# An s2Member Membership Access Level number.
$s2member_access_label = get_user_field ("s2member_access_label"); 
# An s2Member Membership Access Label ( i.e. Bronze, Gold, Silver, Platinum, or whatever is configured ).
$s2member_access_ccaps = get_user_field ("s2member_access_ccaps"); 
# An array of Custom Capabilities the current User has ( i.e. music,videos ).
$s2member_login_counter = get_user_field ("s2member_login_counter"); 
# Number of times the User has logged into your site.
?>

In the post or page use this to view

<?echo $user_login = get_user_field ("user_login"); ?>
# Username for the current User.
<?echo $user_email = get_user_field ("user_email");  ?>
# Email Address for the current User.
<?echo $first_name = get_user_field ("first_name");  ?>
# First Name for the current User.
<?echo $last_name = get_user_field ("last_name");  ?>
# Last Name for the current User.
<?echo $full_name = get_user_field ("full_name");  ?>
# First and Last Name for the current User.

Give it a try.

Christian

Posted: Thursday Apr 12th, 2012 at 8:22 am #10648

omg

Posted: Thursday Apr 12th, 2012 at 8:06 am #10646

Maybe something like that ?

upload all your download files via ftp in this directory.

.../wp-content/plugins/s2member-files/

Directory: /s2member-files/

sample01.zip
sample0a.zip
sample1b.zip

The sample link could look like this

http://www.example.com/?s2member_file_download=sample01.zip

or the short code for that

[s2File download="sample01.zip" /]

Christian

Posted: Thursday Apr 12th, 2012 at 5:52 am #10642

Hi,

in the wordpress backend click on S2member on the left side.

S2members -> API / Scripting -> Custom Capabitlity & Member Level Files

There are a lot of informations how to handle it.

Custom Capabilities: ( music,videos )

Sub-Directory: /s2member-files/access-s2member-ccap-music
Sub-Directory: /s2member-files/access-s2member-ccap-videos

Protected File: /s2member-files/access-s2member-ccap-music/file.mp3
Protected File: /s2member-files/access-s2member-ccap-videos/file.avi

Now, here are some link examples, using Custom Capability Sub-directories:

[audio src="http://www.example.com/?s2member_file_download=access-s2member-ccap-music/file.mp3" /]
http://www.example.com/?s2member_file_download=access-s2member-ccap-videos/file.avi

These links will ONLY work for Members who are logged-in, with the proper Capabilities.

It all depends on the structure you run your site.
If you only use membership levels maybe this is the right for you.

Membership Levels: ( this also works fine )

Sub-Directory: /s2member-files/access-s2member-level0
Sub-Directory: /s2member-files/access-s2member-level1
Sub-Directory: /s2member-files/access-s2member-level2
Sub-Directory: /s2member-files/access-s2member-level3
Sub-Directory: /s2member-files/access-s2member-level4

Protected File: /s2member-files/access-s2member-level0/tiger.doc
Protected File: /s2member-files/access-s2member-level1/zebra.pdf
Protected File: /s2member-files/access-s2member-level2/elephant.doc
Protected File: /s2member-files/access-s2member-level3/rhino.pdf
Protected File: /s2member-files/access-s2member-level4/lion.doc

Now, here are some link examples, using Member Level Sub-directories:

http://www.example.com/?s2member_file_download=access-s2member-level0/tiger.doc
http://www.example.com/?s2member_file_download=access-s2member-level1/zebra.pdf
http://www.example.com/?s2member_file_download=access-s2member-level2/elephant.doc
http://www.example.com/?s2member_file_download=access-s2member-level3/rhino.pdf
http://www.example.com/?s2member_file_download=access-s2member-level4/lion.doc

These links will ONLY work for Members who are logged-in, with an adequate Membership Level.

Christian

Posted: Tuesday Feb 28th, 2012 at 10:30 am #6668

I don’t know a plugin which do that, but it is a good idea for the next release i think.

List user by:

membership level
registration date
expired accounts

Posted: Tuesday Feb 28th, 2012 at 3:05 am #6652

That’s the function i was looking for. Hope it will be integrated soon.

Viewing 9 replies - 26 through 34 (of 34 total)

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.