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 - 1,601 through 1,625 (of 3,367 total)
Author Replies
Author Replies
Posted: Monday Nov 12th, 2012 at 1:32 pm #31331
Eduan
Username: Eduan
Moderator

Well I checked the code, and I really can’t find what the problem might be. Do you get any error? If so could you please show me a screenshot of it?

To do an else, just put an else statement:

if (in_array('ziplevel2', get_field('zipfiles')) && current_user_is("s2member_level2")) {
	$freelink = '<a title="Freelink" href="/join">Zip Level 2</a><br/>';
	$memberlink = '<a title="Member only" href="#">Zip Level 2</a><br/>';
	echo "${memberlink}";
} else {
	echo 'Content for user with not access';
}

– Eduan

Posted: Monday Nov 12th, 2012 at 1:27 pm #31328
Eduan
Username: Eduan
Moderator
Posted: Monday Nov 12th, 2012 at 1:25 pm #31327
Eduan
Username: Eduan
Moderator

Hello Daryl,

You can’t do this in the custom capabilities box, but you can achieve this inside the content, allowing you to do it if the user can or can’t access that.

You would use PHP conditionals for this, and you can find s2Member’s conditionals under Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals, and you can find an article here: Knowledge Base » s2Member® Conditionals

Hope this helps. :)

Posted: Monday Nov 12th, 2012 at 1:20 pm #31326
Eduan
Username: Eduan
Moderator

Hello Matthew,

One way you can achieve this is simply using the free registration form, which you can find under http://www.yourwebsite.com/wp-login.php?action=register, that would allow them to register.

Although to add their PayPal info you will need to edit them manually.

– Eduan

Posted: Friday Nov 9th, 2012 at 3:58 pm #31172
Eduan
Username: Eduan
Moderator

Hello Jennifer,

You would just find the user you want to modify, under WP Admin -> Users -> All Users -> [Username], and then you would change his role to subscriber, if you are using levels. If you’re using Anything else then you would simply modify it under the s2Member section for the user’s profile.

Hope this helps. :)

Posted: Friday Nov 9th, 2012 at 3:56 pm #31171
Eduan
Username: Eduan
Moderator

Well you can use AND OR statements. AND is && and OR is ||, Like so:

if(in_array('ziplevel2', get_field('zipfiles')) && current_user_is("s2member_level2")) {
	$freelink = '<a title="You must be a member to download" href="/join">Zip Level 2</a><br/>';
	echo "$freelink";
}

Hope this helps. :)

Posted: Friday Nov 9th, 2012 at 2:30 pm #31164
Eduan
Username: Eduan
Moderator

Glad you solved the problem Charles. :)

Posted: Thursday Nov 8th, 2012 at 11:47 am #31039
Eduan
Username: Eduan
Moderator

Hello Quentin,

Could you please sow us an image of your problem? So that we may see what the problem is, better. Thanks. :)

– Eduan

Posted: Wednesday Nov 7th, 2012 at 8:22 am #30883
Eduan
Username: Eduan
Moderator

Hello Jason,

I believe the last I heard of this was a user doing it himself, but the last time Jason mentioned it was a simple “I like it” statement, not like that, but it gave that feeling.

Again, not sure on it’s current status, so don’t take my word for it.

Posted: Wednesday Nov 7th, 2012 at 8:20 am #30882
Eduan
Username: Eduan
Moderator

Yes your browser cache, sorry for the confusion.

With the shortcode, I don’t see anything wrong with it at first glance… So I’m not sure what could be causing the error. :/

Posted: Wednesday Nov 7th, 2012 at 8:18 am #30881
Eduan
Username: Eduan
Moderator

Hello Jason,

Well, this is not exactly part of s2Member, but you can using s2Member’s PHP conditionals. Check them out under sDashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals.

– Eduan

Posted: Wednesday Nov 7th, 2012 at 8:16 am #30879
Eduan
Username: Eduan
Moderator

Oh oops, forgot to tell you how to use it. :P
You just upload it to your main WordPress directory, and open it in a browser, and it’ll do the rest for you. :)

Glad you were able to fix the problem. :)

Posted: Wednesday Nov 7th, 2012 at 8:15 am #30877
Eduan
Username: Eduan
Moderator

Glad you solved your problem Joy. :)

Posted: Wednesday Nov 7th, 2012 at 8:13 am #30876
Eduan
Username: Eduan
Moderator

I see. By the last words of your first post… Have you solved it?

– Eduan

Posted: Tuesday Nov 6th, 2012 at 10:15 pm #30840
Eduan
Username: Eduan
Moderator

Hello Melissa,

ERROR: Unexpected txn_type/status.
The txn_type/status did not meet requirements.
Please contact Support for assistance.

I’m not sure what causes this error yet. Does generating a new button help? Also, are you using the shortcode or HTML version of the buttons?

[ http://www.digitalscrapbookinghq.com ] says…
ERROR: Unable to verify $_POST vars.
Please contact Support for assistance.

This error suggests that your custom attribute in your shortcode is wrong. Make sure that it’s right, reviewing it against this documentation: Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes (Explained) -› custom

The error with the server check may be a cache issue, make sure to clear your cache and see if that fixes the problem.

– Eduan

Posted: Tuesday Nov 6th, 2012 at 9:53 pm #30837
Eduan
Username: Eduan
Moderator

Not sure what the problem could be…

Could you make sure that the emails are being sent by s2Member? Install the following plugin:
http://wordpress.org/extend/plugins/email-log/

Make another test purchase, and see a couple of minutes later if the Email log plugin says anything. If it does say that an email was sent, then it means that for some reason the email is not reaching your email client.

If it doesn’t say that the email was sent, then it means that for some reason s2Member isn’t able to send the email, or generate it.

In any case, could you please try this script and see if it gives you all pass? It’s a script by Jason in order to check if your server serves s2Member’s requirements (and most of them WordPress’): http://www.s2member.com/r/server-check-tool

– Eduan

Posted: Tuesday Nov 6th, 2012 at 9:03 pm #30834
Eduan
Username: Eduan
Moderator

Oh I see, is that what you mean Dan?

Posted: Tuesday Nov 6th, 2012 at 4:15 pm #30801
Eduan
Username: Eduan
Moderator

Glad you found it Rob. :)

Posted: Tuesday Nov 6th, 2012 at 4:13 pm #30800
Eduan
Username: Eduan
Moderator

Again, that is awesome. Thanks for sharing. :)

Will be sure to bookmark this. ;)
And also to share it when needed. ;)

Posted: Tuesday Nov 6th, 2012 at 4:11 pm #30799
Eduan
Username: Eduan
Moderator

That’s awesome Cassel! Thanks for sharing. :)

Will be sure to bookmark this. ;)

Posted: Tuesday Nov 6th, 2012 at 4:07 pm #30798
Eduan
Username: Eduan
Moderator

Hello Bruno,

I would suggest that you check JW Player, along with this plugin by Philly:
http://phillymax.com/web/s2member-video-shortcode/

It really makes JW Player and s2Member work together better, or be more powerful, from what I know.

Hope this helps. :)

Posted: Tuesday Nov 6th, 2012 at 3:27 pm #30796
Eduan
Username: Eduan
Moderator

Hello Kerry,

Have you made sure that the email didn’t go to your spam folder? It may also be that it arrives, but takes a while to do so.

– Eduan

Posted: Tuesday Nov 6th, 2012 at 3:25 pm #30795
Eduan
Username: Eduan
Moderator

I added a www. to your custom attribute, seeing how your website’s URL is like that.

See if that works. :)

Posted: Tuesday Nov 6th, 2012 at 3:23 pm #30794
Eduan
Username: Eduan
Moderator

Just wanted to point out, you can use your website’s URL as a login welcome page, instead of using selecting your homepage as the login welcome page.

Just check under Dashboard -› s2Member® -› General Options -› Login Welcome Page, instead of choosing a page, enter a URL (the URL to your website).

Hope this helps. :)

Posted: Tuesday Nov 6th, 2012 at 3:21 pm #30793
Eduan
Username: Eduan
Moderator

Hello Jimmy,

Well one way you can do this, that I can think of, is using s2Member conditionals, find an article about them here:
Knowledge Base » s2Member® Conditionals

So you would do the following (this is pseudo-code):

(if user can't access your content)
	do JavaScript redirect to membership options page
(if user can access your content)
	show content

That’s a good starting point. :)

BTW, here’s the JavaScript redirect you would use:

<script type="text/javascript">
window.location = "http://www.yourwebsite.com/url/to/membership-options-page"
</script>

Hope this helps. :)

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