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.

Cristián Lávaque


My Latest Replies (From Various Topics)

Viewing 25 replies - 101 through 125 (of 7,376 total)
Author Replies
Author Replies
Posted: Thursday Aug 29th, 2013 at 11:08 pm #58870

Ah, that’s cool. Just remember that search engines (e.g. Google) don’t approve you giving their bot one content and the visitors another for the same page. Also, your content will be in the search engine’s cache, so your private content will be public there.

Posted: Thursday Aug 29th, 2013 at 11:05 pm #58869

I see. It’s strange.

Do you have the same problem if you try the function from a WP page in the child blog the user registered from? I’m wondering if the odd behavior happens only when loading WP from a custom script as you’re doing or not.

I see in your test that the [hilite mono]get_user_option[/hilite] approach worked, though, so I’d probably try going with that… If you need the oldest time out of all, then it could be something like:

[hilite pre_code]
foreach (get_user_option('s2member_paid_registration_times', $user_id) as $level => $time) {
if ($time > 0 && $time < $first_level_time) $first_level_time = $time; } [/hilite]
Posted: Thursday Aug 29th, 2013 at 8:41 am #58849

You can use [hilite mono]s2member_last_login_time[/hilite]. See: http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_s2member_last_login_time%28%29

I hope that helps. :)

Posted: Thursday Aug 29th, 2013 at 8:39 am #58848

Thanks for the ideas! :)

About the FB “like”, this plugin may help: http://wordpress.org/plugins/wplike2get/

Regarding bots, search engines will drop those pages from the results next time it crawls the site and can’t access them. For SEO it’s better to use a conditional to show SE optimized text to those without access and the paid content to those who do. Knowledge Base » Simple Shortcode Conditionals

Posted: Thursday Aug 29th, 2013 at 8:32 am #58847

A WP user can have only one level role, but several custom capabilities.

Maybe you can ask the developer of the newsletter plugin, if he could add a way to segment by WP capability too.

Posted: Thursday Aug 29th, 2013 at 8:28 am #58846

Here’s what Jason said:

If you are calling this function from that particular Child Blog (that would be better); then s2Member will pull the data for that particular Child Blog automatically (e.g. the current Child Blog is always assumed).

Otherwise, if you are calling this function from a different Child Blog, where you want to know about information from another Child Blog, you simply call this function before you call the API Function provided by s2Member. See: http://codex.wordpress.org/Function_Reference/switch_to_blog

In short, s2Member IS multisite-aware; but calls like this from one Child Blog to another must be done properly using the WordPress core function I referenced above.

See also: http://codex.wordpress.org/Function_Reference/restore_current_blog

Posted: Thursday Aug 29th, 2013 at 8:25 am #58845

I see that the player code is not in the page at all. Did you remove the shortcode from that test page? I tried the test user account but couldn’t login.

Posted: Thursday Aug 29th, 2013 at 8:16 am #58844

By the way, have you tried this?

[hilite pre_code]
$user_id = 17;
$s2member_paid_registration_times = get_user_option('s2member_paid_registration_times', $user_id);
print_r($s2member_paid_registration_times);
[/hilite]

Does it work?

Posted: Thursday Aug 29th, 2013 at 8:09 am #58843

Thanks for the update, Don.

I don’t know, but I’ll ask Jason about the multisite thing and get back to you as soon as I hear back from him. :)

Posted: Thursday Aug 29th, 2013 at 7:52 am #58842

Hi Randall. We have just the community forum now.

I saw your email and replied it with what I found. Make sure that if you’re in Test Mode, you enable it in both, Authorize.Net and s2Member. And please also run the server scanner to make sure there isn’t anything wrong there.

Let me know if that helps. :)

Posted: Thursday Aug 29th, 2013 at 7:49 am #58841

Thanks for the update.

If renaming the profile field is causing you trouble, what you could do is take care of it in the hack. The merge field names don’t have to match the s2Member profile field names. For example:

[hilite pre_code]
get_user_field('ID', $vars['user_id']),
'role' => get_user_field('Role', $vars['user_id']),
'reg_date' => get_user_field('Registration Date', $vars['user_id']),
'eot_date' => get_user_field('Auto-EOT Date', $vars['user_id']),
'nickname' => get_user_field('Nick_Name', $vars['user_id']),
'birthday' => get_user_field('birth_date', $vars['user_id']),
'street_1' => get_user_field('Street_Address', $vars['user_id']),
'street_2' => get_user_field('Address_2nd', $vars['user_id']),
'city' => get_user_field('City', $vars['user_id']),
'state' => get_user_field('State', $vars['user_id']),
'zip' => get_user_field('Zip', $vars['user_id']),
'phone_1' => get_user_field('Home_Phone', $vars['user_id']),
'phone_2' => get_user_field('Other_Phone', $vars['user_id']),
'spouse' => get_user_field('Spouse_Name', $vars['user_id']),
's_birth' => get_user_field('spouse_birth', $vars['user_id']),
'directory' => get_user_field('Directory', $vars['user_id']),
);

return array_merge($merge, $custom_merge);
}
[/hilite]

Of course, the array keys would match the merge field names you created in MailChimp.

I hope that helps. :)

Posted: Thursday Aug 29th, 2013 at 7:00 am #58840

Excellent! I’m so glad it helped. Thanks for the update. :)

Posted: Thursday Aug 29th, 2013 at 6:47 am #58839

I’m very glad you sorted it out! Thanks for the update.

And thank you very much for the nice kudos, Melvin! It’s very appreciated. :D

If it’s not too much to ask, would you take a moment to rate s2Member and leave a comment over at wordpress.org? http://www.s2member.com/r/wp-rate/

A Facebook “like” would be great as well. https://www.facebook.com/s2Member

Thanks in advance! :)

Posted: Thursday Aug 29th, 2013 at 6:38 am #58837

You can use it in a WP page instead of as a regular widget. You need to use a bit of PHP, as described in the documentation: [hilite path]Dashboard -› s2Member® -› API / Scripting -› Pro Login Widget (via PHP)[/hilite]

You can not show the link to the profile there. From the documentation: http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_s2member_pro_login_widget%28%29

[hilite mono]"my_account_url" => "%%automatic%%"[/hilite] Full URL of your own, or use %%automatic%% for the Login Welcome Page. Leave empty to not show this at all.
[hilite mono]"my_profile_url" => "%%automatic%%"[/hilite] Full URL of your own, or use %%automatic%% for a JavaScript popup. Leave empty to not show this at all.

See also this setting: [hilite path]Dashboard -› s2Member® -› General Options -› Member Profile Modifications[/hilite]

Posted: Thursday Aug 29th, 2013 at 6:28 am #58835

No, s2Member Framework doesn’t have something to achieve that in a WP page.

There may be other plugins or hacks to have login/registration with your theme’s look. Have you looked into that?

Posted: Wednesday Aug 28th, 2013 at 8:54 am #58799

No problem! I hope it’s easy to fix. :)

Posted: Wednesday Aug 28th, 2013 at 8:53 am #58798

I guess you could try that. :)

Posted: Wednesday Aug 28th, 2013 at 8:52 am #58797

Thank you very much for the kudos, Joe! It’s very appreciated. :)

I understand what you meant, now. Right, PayPal Pro and Auth.Net are not very global. First time I hear about Pasarela Integral…

No, I don’t know what Google plans to do with Wallet internationally. Have you email them? But that’s not an on-site payment solution anyway, it’s a button similar to PayPal Standard.

Posted: Wednesday Aug 28th, 2013 at 8:46 am #58796

I’m glad you solved it! :)

And thanks for telling us about that plugin, I’ll show it to Jason.

Posted: Wednesday Aug 28th, 2013 at 8:43 am #58795

Here’s what Jason said:

all of those MERGE vars need to actually exist in this MailChimp configuration too. By default, only MERGE1 and MERGE2 exist. If he’s adding new ones, those need to configured on the MailChimp side also, so they get saved by MailChimp.

Have you created those fields in MailChimp with those exact IDs/names?

Posted: Wednesday Aug 28th, 2013 at 8:36 am #58793

Sorry I didn’t see this sooner. Were you able to fix it?

If the automatic update failed, then you’ll need to do it via FTP. This video I made may help: ▶ s2Member Pro Update Tip

The server scanner is useful to see if the s2Member Framework and Pro directories are correct or should be reuploaded. ▶ s2Member Server Scanner

I hope that helps!

Posted: Wednesday Aug 28th, 2013 at 8:26 am #58792

Well, the user will be taken to the Membership Options page when he tries to open content he doesn’t have access to. In that page you could tell the person to login or register to view that content, and link to the login or registration form. Video » s2Member Quick Start

If what you want is to have a login form in that page, instead of linking to wp-login.php, then you could use the s2Member Pro login widget. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Pro Login Widget (via PHP)[/hilite]

I hope that helps. :)

Posted: Wednesday Aug 28th, 2013 at 8:22 am #58791
Posted: Wednesday Aug 28th, 2013 at 8:18 am #58789

s2Member protects feeds. Please install the free version and look here: [hilite path]Dashboard -› s2Member® -› Restriction Options -› Alternative View Protection -> Feeds[/hilite]

This may also interest you: [hilite path]Dashboard -› s2Member® -› Download Options -› Remote Auth/Podcasting[/hilite]

I hope that helps. :)

Posted: Wednesday Aug 28th, 2013 at 8:15 am #58788

none of the payment solutions work for those of us in continental Europe (in my case, Barcelona, Spain).

You seem to have PayPal Standard and Express Checkout available in Spain:
https://developer.paypal.com/webapps/developer/docs/classic/howto_product_matrix/
https://www.paypal.com/es/webapps/mpp/express-checkout

Wouldn’t those work for you?

Viewing 25 replies - 101 through 125 (of 7,376 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.