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.

Home Forums Eduan

Eduan

Moderator

My Latest Replies (From Various Topics)

Viewing 25 replies - 2,151 through 2,175 (of 3,367 total)
Author Replies
Author Replies
Posted: Monday Sep 10th, 2012 at 8:29 pm #24799
Eduan
Username: Eduan
Moderator

Hello Lisa,

Well I believe you should be able to use something along these lines, you need the PHP Execution plugin installed for this:

<?php if(current_user_is(s2member_level0)) { ?>
	<script type="text/javascript">
		window.location = "http://www.giftedpage.org/membership-options/";
	</script>
<?php } ?>

Haven’t actually tried this yet, but it should work. This would redirect level 0 users to the membership options page, and members >= level 1 would still view the content like normal.

Or you could separate the content like Philly suggested.

Hope this helps. :)

  • This reply was modified 4 years, 3 months ago by  Eduan. Reason: Modified code
Posted: Monday Sep 10th, 2012 at 8:25 pm #24797
Eduan
Username: Eduan
Moderator

Excellent! Glad you found a solution! And glad I was able to help. :)

Posted: Monday Sep 10th, 2012 at 6:12 pm #24781
Eduan
Username: Eduan
Moderator

Hello Lisa,

You might be interested in implementing the s2Member login widget, here’s an article about that:
Knowledge Base » s2Member® Login Widgets

And if that doesn’t work for your needs, then check under Dashboard -› s2Member® -› API / Scripting -› Pro Login Widget (via PHP) for instructions on how to insert it through PHP.

Hope this helps. :)

Posted: Monday Sep 10th, 2012 at 6:10 pm #24780
Eduan
Username: Eduan
Moderator

Hello Stephen,

Check this article for that:
Knowledge Base » s2Member® Login Widgets

Hope this helps. :)

Posted: Monday Sep 10th, 2012 at 6:09 pm #24779
Eduan
Username: Eduan
Moderator

Hello Stephen,

s2Member doesn’t have a membership account page (unless you mean the membership options page). And s2Member does not provide a shortcode like [pmpro_account].

Could you please specify what your problem is with a little more detail? Thanks. :)

Posted: Monday Sep 10th, 2012 at 6:07 pm #24778
Eduan
Username: Eduan
Moderator

Hello Tyler,

yes this is possible, although you would need the pro version in order to offer paid levels for free. Just remember, that you would be offering the level 2 paid, just free, so it doesn’t modify the level or add a new free level, you’re just giving away level 2 for free.

If this is not what you’re looking for, then I suggest you look into using custom capabilities (ccaps for short) which would allow you to separate the contents of level 2 paid and level 2 free. It wouldn’t technically be a level 2 anymore though.

You can check out custom capabilities in this video: Video » s2Member (Custom Capabilities)

Hope this helps. :)

Posted: Monday Sep 10th, 2012 at 6:04 pm #24777
Eduan
Username: Eduan
Moderator

Hello John,

The simplest solution for this is to buy a new license here: s2Member® » Prices/Licensing

If you don’t buy the license, then you can’t really use the pro version.

Hope this helps. :)

Posted: Monday Sep 10th, 2012 at 12:38 pm #24758
Eduan
Username: Eduan
Moderator

Hello Hill,

That is just if you want to use a non-WordPress page as the login welcome page. So it still remains a login welcome page, but it won’t be protected by s2Member if you use that option.

If you want to redirect the user to several different pages depending on the user, then one work-around is to setup a login welcome page normally in those options. So you would create a page called “Login welcome page”.

And inside that page you put the following code (you will need the PHP Execution plugin installed):

<?php if(current_user_is('s2member_level1')) { ?>
	<script type="text/javascript">
		window.location = "http://hillcliff.com/nutrition-welcome";
	</script>
<?php } elseif(current_user_is('s2member_level2')) { ?>
	<script type="text/javascript">
		window.location = "http://hillcliff.com/virtual-pt-welcome";
	</script>
<?php } ?>

This should work correctly (did my tests). Just remember to have the PHP Execution plugin installed.

Hope this helps. :)

  • This reply was modified 4 years, 3 months ago by  Eduan. Reason: Thanks Cristián, I fixed that :)
Posted: Monday Sep 10th, 2012 at 11:02 am #24753
Eduan
Username: Eduan
Moderator

Hello Claudine,

Well, s2Member conditionals are not really meant to be used to redirect, they are just meant to separate content. So the page would remain the same, title and everything, just the content would change.

Hope this helps understand what’s going on. :)

Posted: Monday Sep 10th, 2012 at 9:24 am #24748
Eduan
Username: Eduan
Moderator

You’re welcome Michael! Glad I was able to help. :)

Posted: Sunday Sep 9th, 2012 at 5:58 pm #24699
Eduan
Username: Eduan
Moderator

Hello Jura,

If you want to have a registration form (paid or free) besides the wp.login.php one, then you will need to have the pro version of s2Member so that you can take advantage of s2Member pro-forms.

Hope this helps. :)

Posted: Sunday Sep 9th, 2012 at 8:58 am #24689
Eduan
Username: Eduan
Moderator

Hello Dwayne. Yes please. :)

Just remember to put it between the code tags. ;)

Use the <code> tags! ;)
Posted: Sunday Sep 9th, 2012 at 8:52 am #24688
Eduan
Username: Eduan
Moderator

No problem Jack. Glad I was able to help. :)

No problem if you confirm first, just remember I just woke up at this hour. ;)

Posted: Saturday Sep 8th, 2012 at 7:37 pm #24671
Eduan
Username: Eduan
Moderator

Hello Justin,

Have you tried deactivating the other plugins besides s2Member? it might be that one of them is causing a conflict with s2Member’s security key generator, and probably other things.

Hope this helps. :)

Posted: Saturday Sep 8th, 2012 at 7:32 pm #24670
Eduan
Username: Eduan
Moderator

Hello Tony,

So, you want to block the entire website, except for those that are able to put their password?

If so, then you might wanna check the URI restrictions, you would simply protect the whole website using a “/” as the protection (without the quotes).

You can check out URI restrictions under Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions.

Hope this helps. :)

Posted: Saturday Sep 8th, 2012 at 4:04 pm #24661
Eduan
Username: Eduan
Moderator

Hello Patrice,

With screen you mean your browser’s screen right?

I would suggest you do a plugin compatibility test for this issue. Simply make a copy of your entire website (as a backup), and then delete the plugins’ folders one-by-one (without including s2Member’s) until the problem goes away, the plugin that you delete when the admin page comes back is the plugin that has a compatibility issue with s2Member.

If the problem goes away, then you would do a completely new install of WordPress (remember to keep your backup) install s2Member, and then install your theme, if the problem appears again, then the problem is your theme.

Hope this helps. :)

Posted: Saturday Sep 8th, 2012 at 2:26 pm #24657
Eduan
Username: Eduan
Moderator

Yes this is possible with s2Member.

But it would require integration with custom capabilities (ccaps for short), and lots of conditionals.

– Eduan

Posted: Saturday Sep 8th, 2012 at 2:01 pm #24654
Eduan
Username: Eduan
Moderator

This isn’t possible if I’m not mistaken.

One workaround for this is to use custom capabilities (ccaps for short), and have the button give a different ccap depending on the lenght of the subscription.

You can check out custom capabilities under Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities, here’s a video about them: Video » s2Member (Custom Capabilities)

Hope this helps. :)

Posted: Saturday Sep 8th, 2012 at 12:40 pm #24649
Eduan
Username: Eduan
Moderator

You can use this:

[s2If current_user_is(s2member_level1)]
  Content exclusively for members level 1.
[/s2If]

If you’re gonna use it inside code, then you will have to use the PHP version:

<?php if(current_user_is('s2member_level1')) { ?>
  Content exclusively for members level 1.
<?php } ?>

Hope this helps. :)

Posted: Saturday Sep 8th, 2012 at 12:07 pm #24647
Eduan
Username: Eduan
Moderator

Hello Michael, no this will not redirect, this will only separate content.

What I suggest you do is put those menu pages inside the shortcodes, not in a different page, in the login welcome page inside the shortcodes.

Posted: Saturday Sep 8th, 2012 at 10:42 am #24644
Eduan
Username: Eduan
Moderator

Hello Michael,

Well it’s really very simple, here’s the shortcode for the level 1 content:

[s2If current_user_is(s2member_level1)]
Content only for level 1 users.
[/s2If]

Here’s the shortcode for the level 2 content:

[s2If current_user_is(s2member_level2)]
Content only for level 2 users.
[/s2If]

And this would be the content that both can access:

[s2If current_user_can(s2member_level1)]
Content for anybody who can access level 1, this includes levels 1 to 4.
So this would be content for level 1 users.
[/s2If]

Does this make it clearer on what you would do to accomplish what you need?

Posted: Saturday Sep 8th, 2012 at 10:37 am #24643
Eduan
Username: Eduan
Moderator

Hello Michael,

You can easily achieve this with s2Member’s conditionals, which you can find an article about here:
Knowledge Base » s2Member® Conditionals

Hope this helps. :)

Posted: Saturday Sep 8th, 2012 at 10:20 am #24641
Eduan
Username: Eduan
Moderator

Glad I was able to help. :)

Be sure to check out the link Cristián put in his post. ;)

Posted: Saturday Sep 8th, 2012 at 9:58 am #24639
Eduan
Username: Eduan
Moderator

Hello Michael,

So if I understood correctly, you want each level to have like it’s own membership options page or login welcome page, correct?

If so, you might be interested in using s2Member’s conditionals: Knowledge Base » s2Member® Conditionals

Hope this helps. :)

Posted: Saturday Sep 8th, 2012 at 8:16 am #24629
Eduan
Username: Eduan
Moderator

You could, but then again, the only page integrated to actually output those errors and actually make sure they’re true etc. Is the wp-login.php page.

If you really need to modify it, then you can always hire a freelancer that modifies WordPress to do this for you, please understand though, this is not a good solution, every time you update WordPress you will probably lose the changes, and you will probably have to re-do the hack every time, since every release WordPress might have changed something. I suggest you hire a freelancer over at jobs.wordpress.net, and hire him so that he does a plugin for this.

Hope this helps. :)
– Eduan

Viewing 25 replies - 2,151 through 2,175 (of 3,367 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.