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 - 3,601 through 3,625 (of 7,376 total)
Author Replies
Author Replies
Posted: Friday Oct 12th, 2012 at 8:21 am #28228

Let’s say I added some new functions to some files inside the s2member folder. Will I lose those functions when you will have a new update for the plugin? Does the new update replace the old files?

Yeah, you’d lose your customizations. I’d use the must-use plugins directory too. /wp-content/mu-plugins/

Posted: Friday Oct 12th, 2012 at 8:18 am #28226

Hi Shawn.

I see, ccaps would not work with the email list integration.

Well, you can avoid the incremental access of levels if you edit them to remove the capabilities that give access to the lower ones.
http://wordpress.org/extend/plugins/user-role-editor/
Knowledge Base » Locking s2Member Roles/Capabilities

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 8:14 am #28225

Cool. :)

Posted: Friday Oct 12th, 2012 at 8:12 am #28223

yes his account has an EOT Tue Oct 9, 2012 4:17 pm UTC

Okay. Does he still have access today?

Thanks for the new log entry.

5 => ‘Automatic EOT ( End Of Term ) Time set to: Fri Oct 12, 2012 11:13:40 pm UTC.’,

Could you tell me if he was demoted on the 13th?

What is your setting for the Auto EOT Behavior? Could you show me a screenshot? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior[/hilite]

Posted: Friday Oct 12th, 2012 at 8:07 am #28221

Hi Kevin.

This thread may be useful: http://www.primothemes.com/forums/viewtopic.php?t=10414&p=24667

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 8:00 am #28220

You could just check if the user has the ccap, that’s fine, but then you won’t be dripping it after 7 days for Level 2 users.

If you want to see if the user is registered, check if he’s logged in.

Posted: Friday Oct 12th, 2012 at 7:57 am #28219

Hi Lawrence.

You can sell page access individually with custom capabilities. Video » s2Member (Custom Capabilities)

What you can’t do is sell separate subscriptions to them, even with separate transactions. s2Member currently only supports one subscription at a time per user. Selling separate ccaps can only be done with buy-now (one-time) payments.

EOT time is also a single one for the user (not each access) and demotion would remove all access, not just a single custom capability.

We’re working to remove these limitations and to expand the possibilities in a future version of s2Member, though.

Posted: Friday Oct 12th, 2012 at 7:52 am #28218

Thanks.

Weird, the error I get is “Missing First Name”, although I did enter it, both times I tried.

I wonder if theres a theme or plugin conflict. In a clean installation of WP with the default theme and just s2Member, the free registration pro-form doesn’t have this problem.

To test the theme, change for a moment to the default TwentyEleven and try the registration again. To test the plugins, remove the others one by one, trying the registration after each to see if the problem continues.

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 7:46 am #28215

You’d link to a page with the PHP that adds/removes the ccap for that user. The article explains what PHP to use, you then need to create the script that uses it.

I hope that helps. :)

If you don’t know PHP enough to do that, you may want to get help from a freelancer.

Posted: Friday Oct 12th, 2012 at 7:42 am #28214

Could you please send me your site’s info? I’d like to try creating a test user account and editing its profile to add an EOT time. s2Member® » Private Contact Form

I actually went back after posting this and reinstalled the ENTIRE plug-in as well as the Pro files and I’m STILL getting the error messages, unable to update users, and don’t have EOT demoting…

Have you checked if there is a plugin conflict causing this? You’d do it deactivating the other plugins one by one, checking after each if the problem continues.

I uploaded the server check tool php file to multiple directories in wordpress and loaded the URL, but they all came up with a bunch of gibberish.

In your email, could you include the URL to the server check tool you uploaded, please?

Thanks!

Posted: Friday Oct 12th, 2012 at 7:34 am #28213

Hi Ovadia.

Yes. You can use the free registration pro-form to let the user register at Level 1 for 1 day, and then the Auto EOT Behavior set to demote would move him to Level 0. The content protected at Level 1 would be accessible the first day, but after demoted to Level 0, he’d be redirected to the Membership Options page.

[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms[/hilite]
[hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior[/hilite]
[hilite path]Dashboard -› s2Member® -› General Options -› Membership Options Page[/hilite]

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 7:32 am #28210

Hmm… That condition seems wrong. You can try this:

[hilite pre_code]

Show if Level 1, or if Level 2 for more than a week.

[/hilite]

Please compare it carefully with the one you posted to see what I changed.

[hilite mono]s2member_paid_registration_time[/hilite] returns a timestamp, so you have to compare it with another one. http://php.net/strtotime

[hilite mono]current_user_can[/hilite] wouldn’t work for you, because a Level 2 user can access level 1 content, so it’d always be true. So you need to use [hilite mono]current_user_is[/hilite] to avoid the incremental access with levels in your condition. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals -> Example 3[/hilite]

You were missing a parenthesis to group the conditions correctly. Instead of just adding it, I rearranged the conditions, though.

Yes, you could create a function for it. I’d put it in the must-use plugins dir (/wp-content/mu-plugins/). http://www.tizag.com/phpT/phpfunctions.php

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 7:08 am #28209

You can look for other hooks in the login-redirects.inc.php file, if you want, to see if you find one that works for your hack. If the username is not available in any of them, the [hilite mono]%%current_user_login%%[/hilite] replacement code may be of help.

Ok. Well it didnt work

I think that adding a [hilite mono]%%language%%[/hilite] replacement code may be a good solution. Could you show me the code you tried for the hack, please?

Posted: Friday Oct 12th, 2012 at 7:01 am #28208

Hi Vinod.

This video may answer your questions: Video » s2Member® File Downloads (Amazon S3/CloudFront/JW Player)

About the playlist question: http://phillymax.com/web/s2member-video-shortcode/

I hope that helps! :)

Posted: Friday Oct 12th, 2012 at 6:57 am #28207

Hi James.

No, they won’t. The s2Member shortcodes will only work in the WordPress installation where s2Member is active.

If you want to have PayPal buttons outside of the WP with s2, then you need to create them over at PayPal following these instructions: Knowledge Base » Using PayPal created buttons

Those buttons will work for new users, but not to upgrade existing ones.

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 6:54 am #28205

Hi Jamey.

No, Specific Post/Pages can only be accessed by the admin or someone with a URL generated by s2Member to access it. Conditionals don’t work for it, because the page’s content is not even loaded if the person didn’t use the special URL for it.

I haven’t tried this, but maybe you can create a hack that checks whatever your conditions are, and if he meets the one other than the Spec Post/Page restriction, then bypass the restriction.

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 6:50 am #28204

Yes, if you sell it in addition to a level, then the level would have the expiration time, and when that time comes the user gets demoted to level 0 and all custom capabilities are removed.

So it works if you only sell one ccap, but not multiple ones, unless it’s fine for all of them to expire together, which I don’t think is the case for you.

Posted: Friday Oct 12th, 2012 at 6:47 am #28203

Hi Barry.

I know that s2MemberPro can be used for different membership levels but what about a scenario in which users can purchase access to different products but are not necessarily hierarchical?

Yes, with custom capabilities. Video » s2Member (Custom Capabilities)

On a given page that is visible to any registered user, I would like to display/hide content depending on whether a user has purchased a product associated with that page.

You can use conditionals for this.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite]
Video » s2Member (Advanced Conditionals)

We would like users to be able to purchase access to different widgets for different durations of time is this possible?

No, because the Auto EOT Behavior that’d remove the access when it expires, removes all access. Custom capabilities don’t have their own EOT time and behavior yet, it’s something we’re working on and will be available in the future.


Please let us know if you have more questions! I’ll be happy to help. :)

Posted: Friday Oct 12th, 2012 at 6:41 am #28201

A “normal” visitor won’t be redirected to another page if he clicks on one of of those since they [the ‘premium sites’] aren’t displayed to them at all.

You can control that with the Alternative Views retriction for Navigation Menus. [hilite path]Dashboard -› s2Member® -› Restriction Options -› Alternative View Protection[/hilite]

Create a menu in your [hilite path]WP admin -> Appearance -> Menus[/hilite] settings, add the pages you want for it, and select the location for the menu in your theme.

I thought it might be possible to browse through the members list and upload some PDF to a certain account, so that these documents automatically appear in the “My Invoices” section of this specific user. This it not possible?

It’s not impossible, but it isn’t something s2Member does by default, you’d need to code this customization. You can have an Account page with the content variable depending on the user, but the invoices would need to be protected with a ccap for each user (his username would be good to use for this), or any user would be able to get the invoice of another one guessing the file’s name. To automate listing the invoices for the current user, you’d need to have your customization get all the files protected with the ccap that corresponds the his username.

Posted: Friday Oct 12th, 2012 at 6:22 am #28200

Hi Jack.

s2Member doesn’t integrate with Wowza for download protection yet.

Regarding AWS, it integrates with S3 and CloudFront, I don’t know that it does with EC2 or EC3 (unless I’m not understanding the relationship between those services and CF).

[hilite path]Dashboard -› s2Member® -› Download Options -› Amazon® S3/CDN Storage[/hilite]
[hilite path]Dashboard -› s2Member® -› Download Options -› Amazon® S3/CloudFront CDN Storage[/hilite]

Posted: Friday Oct 12th, 2012 at 4:44 am #28197

Ah, the [hilite mono]S2MEMBER_CURRENT_USER_FULL_NAME[/hilite] constant doesn’t exist, that’s why it didn’t work. [hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants[/hilite]

But the [hilite mono]full_name[/hilite] field does so the shortcode worked. If you want to do it with PHP, you can use [hilite mono]get_user_field[/hilite]. http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field()

[hilite pre_code]

[/hilite]

I hope that helps. :)

Posted: Friday Oct 12th, 2012 at 4:17 am #28196

Hello Michelle.

Yes, a firm can buy the license. The name of the user account here will be whatever you name it, and I think the invoice can be issued to the name you specify. I’ll ask Elizabeth to confirm it. :)

Posted: Thursday Oct 11th, 2012 at 6:16 pm #28173

:)

Posted: Thursday Oct 11th, 2012 at 5:45 pm #28169

Ah, I see, it’s in the line you edited. Remove the parenthesis at the end of the $translated line, please. :)

Posted: Thursday Oct 11th, 2012 at 5:18 pm #28166

Sorry I didn’t get to your post yesterday.

Got it on the purchase going all well and only having the AWeber problem.

Did you try the server thing mentioned in my previous post? http://www.s2member.com/forums/topic/not-getting-it-right/#post-27496

In the AWeber custom parser that you created for s2Member, I noticed an unchecked box that says “Enable parser for all lists in this account” under the “Save” button. Maybe you need to check that to enable it? I don’t know if there’s a setting required to tie a list to the parser…

And have you contacted AWeber support asking them about this?

Other than that, I don’t know what else to suggest. s2Member is sending AWeber the email, and the custom parser in AWeber works when tested, so the user should be getting added to the list. :/

Viewing 25 replies - 3,601 through 3,625 (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.