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 - 26 through 50 (of 407 total)
Author Replies
Author Replies
Posted: Wednesday Dec 11th, 2013 at 8:17 pm #61845
David Welch
Username: dwbiz05

Yes, just add a specific, unique Custom Capability to each Client’s user account.

Then add that custom capability to the Page / Post Custom Capabilities Meta Box (upper right of page edit screen).

So if the user has a capability that is required on that page, they can see it.

Does that make sense?

Dave

Posted: Wednesday Dec 11th, 2013 at 8:09 pm #61843
David Welch
Username: dwbiz05

ha! didn’t notice that. nice. lol!

Posted: Wednesday Dec 11th, 2013 at 8:03 pm #61841
David Welch
Username: dwbiz05

What search widget are you using?

Have you made sure to check all the options in the Restrition Options -> Alternateive View Protection?

Dave

Posted: Wednesday Dec 11th, 2013 at 8:01 pm #61840
David Welch
Username: dwbiz05

Do you know how GMbill communicates with your website? IPN?

I think you could start by looking at some of the other integration option code to see what they do. If I remember correctly, it seems like authorize.net function processed the payment then sent everything through the final paypal functions. I’d have to look at it again, it’s been a long time.

That might be a place to start.

Dave

Posted: Wednesday Dec 11th, 2013 at 7:52 pm #61838
David Welch
Username: dwbiz05

HAHA! I should have refreshed the page… all that work for nothin. lol

Dave

Posted: Wednesday Dec 11th, 2013 at 7:51 pm #61837
David Welch
Username: dwbiz05

The “simplest” way I can think to do this is use the custom capabilities option.

S2member doesn’t iterate through a downloads folder. You have to actually create each download link yourself.

I would suggest giving each client user a specific custom capability like “dave”, “mike”, etc.

Then put all the download links on one page with the CC shortcodes like this:

[s2If current_user_can(access_s2member_ccap_dave)]
	[s2File download="dave.mp3" download_key="true"]
[/s2If]

[s2If current_user_can(access_s2member_ccap_mike)]
	[s2File download="mike.mp3" download_key="true"]
[/s2If]

[s2If current_user_can(access_s2member_ccap_frank)]
	[s2File download="frank.mp3" download_key="true"]
[/s2If]

This way, you only create one download page, placing all the file download links on one page but they are protected by custom capabilities of the user.

Does that make sense?

Dave

Posted: Wednesday Dec 11th, 2013 at 11:20 am #61820
David Welch
Username: dwbiz05

Are you trying to make the same fields available for all?

Check this setting on your custom fields: Applicable Membership Levels.

If you want it to show for both free and paid, type all in the box.

Let me know if that doesn’t fix your issue.

Dave

Posted: Tuesday Dec 10th, 2013 at 11:01 pm #61809
David Welch
Username: dwbiz05

Try adding the following code to a hacks.php file (you may have to create this folder and file here: yourdomain.com/wp_content/mu-plugins/hacks.php)

<?php
/*Hack for changing the Username to Email: on login form*/
add_filter('ws_plugin__s2member_translation_mangler','my_login_titles',10,1);

function my_login_titles($title){
	if(strpos ($_SERVER["REQUEST_URI"], "/wp-login.php") !== false && $title == 'Username:'){
		return 'Email:';
	}
	else {
		return $title;	
	}
}
?>

I think that will do what you want.

Dave

Posted: Tuesday Dec 10th, 2013 at 10:08 pm #61806
David Welch
Username: dwbiz05

My understanding is that this is not a normal function of the downloads option.

How are you storing/uploading your files and how are you setting up your download links?

Dave

Posted: Wednesday Feb 13th, 2013 at 9:43 am #41608
David Welch
Username: dwbiz05

I’m just going off the instructions in the OTO section of s2member, so I’ve not tested this.

Basic Steps:
1. Create an OTO page with info and buttons etc. as a new page that is not connected via menu or anything and publish it.
2. Copy the page’s URL to use in the OTO section.
3. Add the right “code” into the textbox in the OTO section of s2member.
4. If you don’t need to filter the OTO’s by user level, just omit it from the “code.”

— Your Questions —

1. OTO for first time. FORMAT -> Number of logins : Member Level (if required) : OTO Page URL

1:http://yoursite.com/oto-url

If you only want to show the OTO to say, level 0 users, then try this:

1:0:http://yoursite.com/oto-url

2 & 3. See step 1 in basic steps – just create a page with your OTO info and subscription/payment buttons. S2member lets you create multiple subscription buttons with different values, as you probably know. So just create the new button and add it to the new OTO page.

Hope that helps,

Dave

Posted: Wednesday Feb 6th, 2013 at 1:05 pm #40918
David Welch
Username: dwbiz05

I assume you copied the form code instead of using the shortcode for your button.
If that is the case, the problem is that wordpress does not natively parse php code in the post/page field.
So, your button is actually just printing out the exact text that was in the page/post.

You have 2 options:

First, you could possibly use the button shortcode in the button creation section of s2member instead of the html form code.

Second, you could install a wordpress plugin that will parse php data in your posts/pages, such as this one:
http://wordpress.org/extend/plugins/php-code-for-posts/

Hope that helps.

Dave

Posted: Wednesday Feb 6th, 2013 at 12:54 pm #40914
David Welch
Username: dwbiz05

I’ve never tried that but I can’t see why it wouldn’t work…

The Pro version has user data export, but it’s basically just doing the same thing by exporting the usermeta items and user table data for each user.

S2member should just recognize the data already stored in the database.

Dave

Posted: Wednesday Feb 6th, 2013 at 12:41 pm #40911
David Welch
Username: dwbiz05

What are the errors?

Dave

Posted: Wednesday Jan 9th, 2013 at 9:39 am #36762
David Welch
Username: dwbiz05

I’ll check it out…. I forgot that Auth.net actually gets re-filtered through the paypal processing.

I’ll let you know if I can’t find it.

I think the only badge I don’t have is the “certified” one.. how do I get that? lol! ;) jk.

Dave

  • This reply was modified 3 years, 12 months ago by  David Welch.
Posted: Monday Jan 7th, 2013 at 11:39 am #36467
David Welch
Username: dwbiz05

Questions 1 and 2 can be done together by changing the function from this:

return '<a href="'.S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL.'">Get Access To More Of This Content</a>';

to this:

return '<a href="'.S2MEMBER_LOGIN_PAGE_URL.'">YOUR FRENCH TEXT HERE</a>';

Now, if you want to make a choice, you would need to pull the user’s choice and then post the correct version… like this:

else {
		$fields = json_decode(S2MEMBER_CURRENT_USER_FIELDS, true);
		if($fields['language'] == 'french'){ //You need to replace language with your custom profile field name and 'french' with the value of the "french" option.
			return '<a href="'.S2MEMBER_LOGIN_PAGE_URL.'">YOUR FRENCH TEXT HERE</a>';
		}
		else {
			return '<a href="'.S2MEMBER_LOGIN_PAGE_URL.'">YOUR OTHER LANGUAGE TEXT HERE</a>';
		}
	}

I hope that makes sense.

Let me know if you have any questions.

Dave

Posted: Tuesday Jan 1st, 2013 at 5:16 pm #35932
David Welch
Username: dwbiz05

I would try taking it off sandbox testing and try it live. If I remember correctly, my auth.net didn’t work in test mode either… only in live.

Dave

Posted: Sunday Dec 30th, 2012 at 9:38 pm #35835
David Welch
Username: dwbiz05

I think it’s…

[s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /] for Display Name

or

[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /] for Username

Hope that helps.

Dave

Posted: Sunday Dec 30th, 2012 at 7:22 pm #35830
David Welch
Username: dwbiz05

If you click on my username, I have my email listed in my “about me” text.

Dave

Posted: Saturday Dec 29th, 2012 at 3:31 pm #35737
David Welch
Username: dwbiz05

The function can go anywhere in your functions.php file as long as it’s before the last

?>

1. I’m not sure quite what your asking, but if you use the s2member setting for the page/post restrictions, it will hide the whole page/post. This function only hides the part in the middle of your shortcode tags.

2. Yes, that is exactly how it works!

3. It looks like you have the hang of it, but if you need me to, I can take a look.

Dave

Posted: Saturday Dec 29th, 2012 at 3:09 pm #35733
David Welch
Username: dwbiz05

travis, can you send me your contact email to my email so I can get some more info from you?

Thanks,

Dave

Posted: Saturday Dec 29th, 2012 at 1:41 am #35692
David Welch
Username: dwbiz05

OK….

The problem, from what I can tell, is that your WordPress Address (URL) is one one domain, but the Site Address (URL) is a different domain.

My guess is that either this change was not made correctly per this documentation:
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

OR, S2member doesn’t like to work with that type of set-up. I’m not sure why s2 wouldn’t work with that type of set-up since the wordpress install runs most of the show…

I tested accessing the protected page by adding the ?page_id= to the WordPress Address (URL) instead of the fit4america url and it pulled up just fine.

I also tried to print my S2MEMBER_CURRENT_USER_ID constant and it came up as 0 in the fit4america domain but came up correctly with the WordPress Address (URL).

So… that is probably the main (if not the only) issue here. S2member isn’t working cause it’s not getting the variables from the right URL.

I’ll see if I can find anything in s2 that would need to be changed but I would suggest first making sure everything listed in the documentation I linked to above was done correctly.

NOTE: I’ll be driving 15 hours back from a wedding tomorrow so I won’t have much contact probably until very late, if at all.

Hope that helps,

Dave

Posted: Saturday Dec 29th, 2012 at 12:51 am #35691
David Welch
Username: dwbiz05

I’ll take a look now.

Dave

Posted: Saturday Dec 29th, 2012 at 12:19 am #35688
David Welch
Username: dwbiz05

In my opinion, they shouldn’t see the form. The problem is, though, that s2member doesn’t check to see if the user already has the level and custom capability access listed in the form. So it presents the form no matter what, since it uses the same basic form inputs for all the registration forms. It’s assuming they are trying to upgrade something I think… so you would have to filter that out yourself.

You could try something like:

[s2If current_user_can(access_s2member_level1)]
put some text here saying they are already logged in...
[/s2If]

[s2If !current_user_can(access_s2member_level1)]
put your registration form shortcode here.
[/s2If]

I think you can use sandbox mode for testing though I just always set the price to the minimum amount $0.01 or whatever it is and test it live. (just my way of doing it) so I don’t know how to do the sandbox testing. Then I replace the price with the actual price when I go live.

To add an upgrade button, simply create the button in s2member button generator, then put in in a “protected” page that ensures the user must be logged in to click on it. This makes sure the user’s info is transferred with the payment info so their current account is upgraded with the level change or custom capabilities addition you are charging them for.

Also, make sure the page you put the upgrade button on is not protected higher than the user’s access who will be upgrading. :)

Hope that helps!

Dave

Posted: Friday Dec 28th, 2012 at 11:56 pm #35681
David Welch
Username: dwbiz05

are you logged in as admin when you create your test account?

I would be happy to take a look at the back end. Send an admin login to dwelch@itelves.com

Do you have it protected by more than one type of protection? post/page, custom capability, category, etc.

Dave

  • This reply was modified 4 years ago by  David Welch.
Posted: Friday Dec 28th, 2012 at 11:11 pm #35676
David Welch
Username: dwbiz05

S2member keeps track of membership expiration using the EOT (End of term) for each user and will automatically suspend access for expired accounts.

The first thing I noticed is that your link is being re-directed to your membership options page (join page).

That means that you probably have it “protected.”

If you let people “sign-up” without paying, as well as have paid members, they will all see your “members home” page, when they log in. ( you can add some shortcodes to filter that out though, but I can walk you through that later if necessary).

Your members home page, or login welcome page as s2member calls it, is auto protected. (that may be part of the confusion and why your “login” link is being re-directed… maybe… lol).

S2member’s “user login welcome page” really means the page that the user sees after they log in. So you don’t want to put your login form there.

Then any page or post you want to restrict to paid members can be done easily when you create the page.

In the upper right corner of the new page or page edit screen should be a box with s2member options. Select the level of access that should be required and you should be good to go.

Let me know if something doesn’t make sense or if you have more issues.

Dave

Viewing 25 replies - 26 through 50 (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.