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.

David Welch


My Latest Replies (From Various Topics)

Viewing 25 replies - 301 through 325 (of 407 total)
Author Replies
Author Replies
Posted: Tuesday Mar 13th, 2012 at 8:17 pm #8063
David Welch
Username: dwbiz05

Have you tried using lower case and underscore in your spaces instead of the way it appears on the screen?

<?php
	add_filter("ws_plugin__s2member_force_default_role", "default_role");
	function default_role($role){
		$return = 'calendar_contributor';
		return $return;
	}
?>

Hope that helps,

Dave

EDIT: I believe you will need to pass the s2member level capabilities to your custom role as well. Not 100% sure, but I think so.

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Tuesday Mar 13th, 2012 at 3:50 pm #8039
David Welch
Username: dwbiz05

S2member is not really designed to work this way out of the box. It is assuming that the user will be creating an account via wordpress or a thirdparty software in the wp database.

However, you could use simple php conditionals on your pages (or even make your own shortcode to do this) using the s2member constant S2MEMBER_CURRENT_USER_IP.

Something like this maybe:

<?php
//IP Ranges
$lowest_ip = '100.100.5.0';
$highest_ip = '100.100.5.100';
	if(S2MEMBER_CURRENT_USER_IP >= $lowest_ip && S2MEMBER_CURRENT_USER_IP <= $highest_ip){
		//Show the info
		echo ' ';
	}
	else {
		//Show something else like an error
		echo ' ';
	}
?>

NOTE: if you are adding this to a page, you will need to enable a php execution plugin like this:

http://wordpress.org/extend/plugins/php-execution-plugin/

Hope that helps
Dave

Posted: Tuesday Mar 13th, 2012 at 3:36 pm #8036
David Welch
Username: dwbiz05

Are the changes in custom capabilities being done after payment or are you manually changing them in the admin form?

Dave

Posted: Tuesday Mar 13th, 2012 at 3:35 pm #8035
David Welch
Username: dwbiz05

I’m not sure I understand completely what your issue is. The newest version gives you the option to enter a Special Redirection URL in the s2member->general options -> login welcome page settings.

You should be able to set any page as the login welcome page for your users with this option. NOTE: This may “lock down” that page, so another option may be to copy the info on your membership options page and re-direct to your “copied page” after login.

Again, I’m not completely sure the issue here, but base on my understanding I think that would work.

Also, the page not found should be a file in your theme’s set-up depending on the theme (error 404 page).

Hope that helps,

Dave

Posted: Tuesday Mar 13th, 2012 at 3:27 pm #8034
David Welch
Username: dwbiz05

You might try this:

function dw_user_registration_stats($user_id){
	//Your functions that need to run.
}

add_action("ws_plugin__s2member_after_configure_user_registration","dw_user_registration_stats");

This hook should run after s2member has finished all of it’s membership option settings and before the registration is completed.

Hope that helps.

Dave

Posted: Monday Mar 12th, 2012 at 3:56 pm #7916
David Welch
Username: dwbiz05

If you are manually checking them, then all you would need to do is either:

1. Use Level 0 and Level 1. Then protect your Level 1 pages/info so only certified people can access it. Then when they join, if they are certified, just manually update them to Level 1 status.

or

2. Use the same process but keep both at Level 0 and use custom capabilities to filter who has access to what.

Yes, this can be done with the free version.

Dave

Posted: Sunday Mar 4th, 2012 at 9:01 am #7221
David Welch
Username: dwbiz05

Duh… sorry I didn’t catch the wrong name value.

True, you can’t update the shortcode that way and you can’t realy encrypt your button if you are doing it that way.

The only other way I can think of if you need encrypted buttons is to create a form that then is sent to a function in your functions.php page which dynamically creates the shortcode based on the input from the form. :)

So, for encrypted buttons it’s going to be more of a pain.

You might be able to update the button shortcode (or replace it) with jquery… though even then someone who knows what they are looking at could see your jquery code and the shortcode you are using so that may not be a good option either.

Dave

EDIT: Just wondering if they are donations, why the need for encryption?

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Saturday Mar 3rd, 2012 at 10:07 pm #7208
David Welch
Username: dwbiz05

Dan, I would try sending an e-mai through this form. I doubt your thread in the community section will be noticed very quickly…

http://www.s2member.com/contact/

Dave

Posted: Saturday Mar 3rd, 2012 at 9:51 pm #7202
David Welch
Username: dwbiz05

You have the right idea. Just make the input:

<input type="text" name="ra" value="1.00" />

Replace 1.00 with whatever you want as the default.

Dave

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Saturday Mar 3rd, 2012 at 9:57 am #7167
David Welch
Username: dwbiz05

hmm, the button on your page gives me the option to pay with a cc or to log in if I want to… Not sure what you are seeing.

From what I can tell, you have it set up correctly.

Have you tried accessing it on other computers? It might be a caching issue or something with the way your browser is rendering the page.

Hope that helps.

Dave

Posted: Saturday Mar 3rd, 2012 at 9:51 am #7166
David Welch
Username: dwbiz05

Well under s2member->general options->login welcome page you can select any page in your wordpress install, OR if you want, you can put in your own url to another (protected) page.

Avoiding the membership page is a little more tricky. The easiest way I know of is to “hook” into the s2member code with something like this.

Create a directory in your wp-config called mu-plugins (if it’s not there).
Then create a file called s2-hacks.php (if it’s not there).
Then add this code to s2-hacks.php:

<?php

function no_mp_redirect(){
	wp-redirect(site_url('wp-login.php?action=register'));
}

add_action('ws_plugin__s2member_before_membership_options_page','no_mp_redirect'); //This is a hook
add_action('ws_plugin__s2member_before_wp_redirect_w_mop_vars','no_mp_redirect'); //This is another hook in the same class... I'm not sure which is the best to use.

?>

That should do what you want. I haven’t tested it thoroughly though so let me know if something weird happens! :)

Dave

Posted: Saturday Mar 3rd, 2012 at 12:00 am #7149
David Welch
Username: dwbiz05

There isn’t a lot of documentation on this, however, just in testing I’ve noticed that once I click on a link I CAN visit any of those pages.

I believe the proper way to set this up (and why they call it a leading page) is that you should link to the other pages in your bundle from the leading page.

I tested this with some pages that were in my main menu and I was locked out until I generated a link. Once I clicked on the link, I was able to access all those pages.

Hope that helps.

Dave

EDIT: I would assume that’s why they only get one e-mail.

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Friday Mar 2nd, 2012 at 11:08 pm #7144
David Welch
Username: dwbiz05

The best way I can think of off the top of my head is to use the button html code from the paypal button generator, then just make the amount field visible so they can enter the amount they want to donate.

If you generate the code in the level that you want, I believe it will work no matter what price they put into the input button. If you watch the some of the videos from s2member you will notice that they often use different amounts for the same level on some of their paypal buttons, especially if they are using custom capabilities.

Hope that helps. Maybe there is a better solution but that one seems the easiest to integrate.

Dave

Posted: Friday Mar 2nd, 2012 at 11:00 pm #7142
David Welch
Username: dwbiz05

The paid version really just adds some extra functionality to the standard free version. So, if you can’t get it to work in the free version, I wouldn’t bother paying for the pro version until you figure out what is messing up on the free version.

If you want, I can take a look at your install and see if I can find the problem. Just e-mail me at dwelch at itelves.com.

Dave

EDIT: I do not work for s2member so there is no guarantee I’ll find the issue but I’ve been using their plugin for a while now an I’m willing to take a look.

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Friday Mar 2nd, 2012 at 12:12 pm #7082
David Welch
Username: dwbiz05

Check out this post:

http://www.s2member.com/forums/topic/nned-help-please/#post-6802

Hope that helps.

Dave

Posted: Friday Mar 2nd, 2012 at 8:55 am #7062
David Welch
Username: dwbiz05

Sorry there haven’t been any replies. To be honest, I’m not 100% sure what you are trying to do. Not sure if it’s the explanaition or the fact that I dont’ know your current process… or that I ‘ve been up for many, many hours.. lol!

Could you try to explain this a little more clearly as to what you are attempting to do?

I understand that you are having the payments process through a third party (site?).

Are you looking to generate accounts remotely?

Are you looking find a way to access the registration form within a “closed registration” environment?

I guess i’m not seeing exactly what the issue is here. If you could clarify I or someone else may be able to help or at least tell you if it’s possible.

Thanks,

Dave

Posted: Friday Mar 2nd, 2012 at 8:43 am #7060
David Welch
Username: dwbiz05

Have you tried using custom capabilities within your membership levels?

You can set up membership levels that have multiple types of custom capabilities. You can add those capabilities to your paypal buttons so they are automatically added. This is a great way they’ve built in to get around only having 4 paid memberships.

for example…

Level 1 with no cc
Level 1(-A) with cc: a_posts
Level 1(-B) with cc: a_posts, b_posts
Level 1(-C) with cc: a_posts, b_posts, a_videos
Level 1(-D) with cc: a_posts, b_posts, a_videos, b_videos

etc…

There is a video tutorial about this here: http://www.s2member.com/videos/A2C07377CF60025E/

Hope that helps.

Dave

Posted: Thursday Mar 1st, 2012 at 4:40 pm #6921
David Welch
Username: dwbiz05

Has the user account you’re using reached the EOT?

That would cause them to not be able to access the member’s pages…

Dave

Posted: Thursday Mar 1st, 2012 at 1:41 pm #6910
David Welch
Username: dwbiz05

Have you looked into the custom capabilities option of s2member?

I’m not 100% sure I understand your workflow, but that might let you add access to certian sections based on user level and custom capabilities…

Hope that points you in the right direction.

Dave

Posted: Thursday Mar 1st, 2012 at 8:42 am #6883
David Welch
Username: dwbiz05

After the membership ends, if it is a recurring payment, paypal should automaticaly attempt to charge for the next year.

Paypal notifies s2member if the payment went through or not. If not, s2member will take the appropriate EOT (End of Term) action based on your settings in s2member->paypal options->automatic eot behavior.

This determines if they are demoted to level 0 or if they are removed completely.

Hope that helps.

Dave

Posted: Thursday Mar 1st, 2012 at 8:39 am #6882
David Welch
Username: dwbiz05

Is this happening for the admin or just users?

Dave

Posted: Wednesday Feb 29th, 2012 at 6:06 pm #6820
David Welch
Username: dwbiz05

what is your website?

what is the link to the page you think you are adding your button to?

Dave

Posted: Wednesday Feb 29th, 2012 at 6:02 pm #6819
David Welch
Username: dwbiz05

Hmm the only reason I could think of for leaving them in there is just in case the are in use by some members when the plugin is deleted. Being linked to a non-existant role would probably cause some errors for users.

Anyway, I just tried this plugin and it looks like it works pretty well: User Role Editor

You can find it by searching the new plugins section of your wordpress install.

You can edit role capabilities but it also offers the option to create or delete user roles.

Hope that helps

Dave

Posted: Wednesday Feb 29th, 2012 at 4:44 pm #6811
David Welch
Username: dwbiz05

Deactivating is not the same as un-installing.

s2member stores those values in the standard wordpress options table in the standard wordpress array.

So they probably only remove them during the plugin removal process instead of adding and removing every time the plugin is activated and deactivated.

Dave

Posted: Wednesday Feb 29th, 2012 at 4:41 pm #6810
David Welch
Username: dwbiz05

You only need to add your paypal information if you will be using any buttons generated by s2member for membership fees or buying posts, downloads, etc.

If you are just allowing anyone to join then upgrading manually, set your registration to OPEN in s2member->general options->open registration.

That will allow anyone to register on your site, then you can use the “user” section in your admin panel to update their membership type.

You also would not necessarily need a membership page, just direct people to the standard registration page wich is usually found here:

http://yoursite.com/wp-login?action=register

Hope that helps.

Dave

Viewing 25 replies - 301 through 325 (of 407 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.