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,801 through 3,825 (of 7,376 total)
Author Replies
Author Replies
Posted: Monday Oct 1st, 2012 at 7:47 am #27056

Kim, it’s usually the theme, but can also be a plugin causing it. Basically, something in your installation is changing the way the content is filtered. The problem you describe happens when something adds [hilite code]
[/hilite] where new lines are, even though they are in the HTML of the hidden input fields for the button’s code. And that also could affect the way the button works, causing the checkout to not work, with an error on PayPal’s side when attempting it.

The way to check what is causing the problem, would be changing for a moment the theme to the default TwentyEleven and refreshing the page with the button to see if the problem went away. If that doesn’t take care of it, deactivate other plugins one by one, checking after each if the problem went with it. It’d be good to make a full backup of the site before these tests, too, especially so close to the launch.

If you don’t have time to test all this, you can also use a button created over at PayPal, which won’t have the shortcode parsing issue, but only works with new users, since existing users won’t have their account info added (which may be fine for your site). Knowledge Base » Using PayPal created buttons

I hope it helps!

Posted: Monday Oct 1st, 2012 at 7:40 am #27055

Is this because something is set up wrong between PayPal and s2? Is this due to the fact the s2pro version is not yet insalled/functioning properly?

I doubt it, but maybe getting s2Member Pro to work correctly helps. I had not seen this problem before, so I’m not sure what it is. Coud you post the shortcode you used for the button? And could you show me a screenshot of your PayPal setting where the style is to see its name as its there?

I’m sorry I don’t understand what you are asking me to do. Are you asking my to list the folders at the FTP or just what the plugins folder looks like inside? I’m not sure.

It is possible that when you extracted s2Member Pro from the zip file, you ended up with an extra folder, so WordPress is not finding the files where they should be. Like:
/wp-content/plugins/s2member-pro[hilite mono]/s2member-pro[/hilite]/… Could you verify that’s not the case?

This may also help: s2Member® » Pro » Install/Upgrade Instructions

Posted: Monday Oct 1st, 2012 at 7:33 am #27054

Ah, glad you found it. Thanks for the update! :)

Posted: Monday Oct 1st, 2012 at 7:31 am #27053

Right, you can edit the role from his profile edit page.

You should also add the “paypal” as the gateway and the subscr. ID so that notifications from PayPal about him can be used by s2Member to update the account (auto EOT behavior).

But don’t populate the EOT time, it should be blank and s2Member will populate it when PayPal notifies that the subscription ended.

I hope that helps. :)

Posted: Monday Oct 1st, 2012 at 7:29 am #27052

It’d change to the new date, it’s a new subscription.

A way to make it match the current one would be to use the initial term for as many days as needed to start the first regular term on the same day of the month as the previous membership. You can use some PHP in the shortcode to calculate this. http://www.primothemes.com/forums/viewtopic.php?f=36&t=1604

I hope it helps. :)

Posted: Monday Oct 1st, 2012 at 7:26 am #27051

Those are the ideas I had, but I’ll post an update if I think of anything else, of course.

I think the export-import idea may work, let me know if it helped, or if you have other questions, I’ll be glad to assist as I can.

Posted: Monday Oct 1st, 2012 at 7:22 am #27050

In that case, you could use the conditional to change the link instead of hiding it, pointing to the Membership Options Page instead of the external page you’re preventing him from going to.

Posted: Sunday Sep 30th, 2012 at 6:35 am #27008

No, there isn’t a free trial for s2Member Pro, sorry.

About looking at it first, if I remember correctly, the s2Member Pro intro video shows the pro-forms generators. Video » s2Member® Pro Intro

But it possible that just looking at the shortcode for a free registration pro-form will help too. This one would give the user Level 1 for a month before the Auto EOT Behavior (e.g. demotion to Level 0) happens:

[[s2Member-Pro-PayPal-Form register="1" level="1" ccaps="" desc="Signup now for Free!" custom="yoursite.com" tp="1" tt="M" captcha="clean" /]]

I hope that helps. :)

Posted: Sunday Sep 30th, 2012 at 6:25 am #27007

Hi Charles.

So, basically, you want to hide the links if the user doesn’t have the required access, right? You’re not protecting the content itself, but the link to it.

You could do that with conditionals. If you use a Text widget in your sidebar, you could use conditionals there.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]

I hope that helps. :)

Posted: Sunday Sep 30th, 2012 at 6:23 am #27006

Hi There.

You can verify that s2Member is installed correctly going to s2Member’s navigation menu and looking at the very bottom for “s2Member Pro Info”. If you find it, then it’s installed and active.

About adding more levels, you can do that following the instructions here: [hilite path]Dashboard -› s2Member® -› General Options -› Membership Levels/Labels[/hilite].

To enable more gateways to work with, please go here: [hilite path]Dashboard -› s2Member® -› Other Gateways[/hilite]

I hope that helps. :)

Posted: Sunday Sep 30th, 2012 at 6:18 am #27005

Just create a file, name it whatever you want, test.php would do, add that code I gave you, save, upload it to your site and view it in your browser, like http://yoursite.com/test.php (replace the domain name with yours).

Posted: Sunday Sep 30th, 2012 at 6:17 am #27004

Hi Nigel.

You can try deactivating s2Member to see if that changes the Authors list in the dropdown for a post, but I remember seeing this problem mentioned in the WP forums, where s2Member had nothing to do with. You may want to try deactivating other plugins too, to see if that makes a difference.

I hope that helps.

Posted: Sunday Sep 30th, 2012 at 6:07 am #27003

I don’t think it’s a cron issue. The email to AWeber is being sent, as strong>aweber-api.log shows.

Do you have the Email Log plugin? You can use it to confirm if the email to AWeber was sent. http://wordpress.org/extend/plugins/email-log/ Try it and let me know if the email is going out, please.

Also send yourself a copy of it as explained in this article, and then try what you get there in the AWeber parser to make sure it works, please. Knowledge Base » Debugging the AWeber integration

By the way, that log shows the removal header to have the email address incorrect, it has an extra “.com” at the end.

Posted: Saturday Sep 29th, 2012 at 6:35 pm #26973

Hi Raz.

1) I want to look some pages (by making 2 different types of user acess levels/groups, which are not charged for)

You mean “lock”? Yeah, you can protect pages with levels that users can have. This doesn’t require s2Member Pro.

2) I need to make a registration form which visitors will access all via the front end.

Ah, s2Member Pro has the pro-forms, which allow registration (paid or free) on the front end.

3) The registration form should be able to have drop downs and check boxes (as I have one type of user who I dont want to access the full protected site, which I will be able to identify from their drop down selection)

The pro-forms don’t have dropdowns for type of access, but you can add drop downs for profile fields using the s2Member custom profile fields. [hilite path]Dashboard -› s2Member® -› General Options -› Registration/Profile Fields[/hilite]

These profile fields can’t be used with the access restrictions, but you can definitely use them in conditionals to protect content.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants[/hilite]

You could also use custom capabilities and do a customization that allows the user to pick them before purchasing.
Video » s2Member (Custom Capabilities)
http://www.primothemes.com/forums/viewtopic.php?f=36&t=1604

4) Then after they have filled in their registration form, I want the member plugin to automatiacally do one of the following two scenarios

a) Give full access to the newly registered member (so to put them in user group 1)
b) To not give full access to the newly registered member based on them selecting a certian category from the drop down option at registration (so this would put them in user group 2)

a) Yes. When the user gets the level required for the protected content, he will have access to it.

b) Yes, either because he got the level for the other content, or because your conditional checks his choice in the custom profile field. If you used custom capabilities, then pages/posts can be protected with these too, but can also be used in conditionals.


Let us know if you have more questions. I hope that helps. :)

Posted: Saturday Sep 29th, 2012 at 8:49 am #26947

Thanks.

Could you create in your site a PHP file with this?

[hilite pre_code]

[/hilite]

And load the file in your browser. What do you get?

Posted: Saturday Sep 29th, 2012 at 8:46 am #26946

Not sure.

We are close to a beta testing phase. Not sure how close, or how long the phase will last, though. The new version is a complete rewrite, so the whole thing will be under test and bug zapping, not just a few new features. I don’t want to give an estimate in case I’m still off. I did want to let you know that it’s coming so you don’t lose hope.

We’ll announce when we have something more certain to announce. :)

Posted: Saturday Sep 29th, 2012 at 8:42 am #26945

Glad you solved it. :)

Posted: Saturday Sep 29th, 2012 at 8:40 am #26943

Hi David.

I answer this in my reply to the post you linked to. http://www.s2member.com/forums/topic/restore-or-recover-sennet-after-deactivated/#post-26938

One thing I didn’t mention is that you can probably recover the data another way:

– Make a backup of what you have now, if you’d lose new stuff restoring back to the backup.
– Then restore the backup you have from before the deactivation.
– Use the Options and User export tools to make a backup of s2Member.
– Restore the new backup you created in the first step.
– Import the s2Member Options and Users from the third step.

[hilite path]Dashboard -› s2Member® -› Import/Export[/hilite]

Let me know if it helps. :)

Posted: Saturday Sep 29th, 2012 at 8:35 am #26941

Thanks for confirming it.

I’d contact the theme’s developer asking him for help to resolve this. It may not be much trouble for him. It’d be good to confirm with him if he’s sing [hilite mono]wp_enqueue_script[/hilite].

Posted: Saturday Sep 29th, 2012 at 8:33 am #26940

I’m not sure what specific symptom it may have, but it’d be an unusual behavior from what’s expected, like what you experienced.

Posted: Saturday Sep 29th, 2012 at 8:30 am #26939

Hi Nicholas.

Could you check your Redirection After Login setting in the Pro Login Widget’s configuration? [hilite path]WP Admin -> Appearance -> Widgets -> s2Member Pro Login Widget -> Redirection After Login[/hilite]

Let me know if that helps. :)

Posted: Saturday Sep 29th, 2012 at 8:27 am #26938

Hi David.

I’m not sure why you’d lose all options and data if you had Deactivation Safeguards active. Maybe you do have the setting enabled now, but it wasn’t before s2Member got deactivated?

In any case, s2Member stores the custom profile fields for users in the usermeta table, but the definitions would be in the options table, if I’m not mistaken. Postmeta may have some s2Member stuff too.

If the backup is recent, wouldn’t it be simpler to restore it complete?

I hope that helps. :)

Posted: Saturday Sep 29th, 2012 at 8:18 am #26937

Hi Simeon.

Are you using the shortcode for the button? If not, you may be using a button generated while logged into your admin account, so the generated code for the button will include that for everyone that uses it. You need to use the shortcode.

Could you post a link to the page where the button is?

Posted: Saturday Sep 29th, 2012 at 8:13 am #26936

Thanks for the screenshot. The only difference I noticed in yours, is that for rules 2, 3 and 4 you have [hilite mono].+?[/hilite] instead of [hilite mono].*?[/hilite].

Could you fix that and test again? Thanks. :)

Posted: Saturday Sep 29th, 2012 at 8:07 am #26935

Hi Danny.

So you want to have your profile form allow edits to the custom profile fields created with s2Member, right? [hilite path]Dashboard -› s2Member® -› General Options -› Registration/Profile Fields[/hilite]

Those fields are stored as a serialized array in a single row (per user) in the [hilite mono]usermeta[/hilite] table. That should help understand how to get/update them. You can use the WP functions to deal with the [hilite mono]usermeta[/hilite] entries.

There are a couple functions provided by s2Member that can help get the values, but they don’t update them:
http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_s2member_custom_fields()
http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field()

You can also look at the s2Member source file for the profile edit form provided by s2Member, to see how it deals with updates to the custom profile fields.

I hope that helps. :)

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