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 - 376 through 400 (of 407 total)
Author Replies
Author Replies
Posted: Monday Feb 13th, 2012 at 9:56 pm #4982
David Welch
Username: dwbiz05

Are you sure it’s the IP Ban and not the Brute Force / IP Login Restriction?

Are you able to re-set them using the button in s2member?

Dave

Posted: Monday Feb 13th, 2012 at 9:50 pm #4980
David Welch
Username: dwbiz05

You might look into using this hook:

ws_plugin__s2member_after_paypal_return

I haven’t tested it, and that’s assuming you mean after they paid via paypal… lol!

A simple wp_redirect() hook should do the trick I would think.

Dave

Posted: Monday Feb 13th, 2012 at 9:46 pm #4979
David Welch
Username: dwbiz05

I don’t know of any.

I think the idea of the membership levels is to help prevent having to approve registrations.

I’m sure it could be custom coded but I’ve never dealt with it myself.

Dave

Posted: Monday Feb 13th, 2012 at 9:44 pm #4978
David Welch
Username: dwbiz05

I’ve had this issue before when I created my own function to put the registration page in a shortcode function.

I believe the issue is the tabindex setting on your inputs.

The sequence can get thrown off sometimes for some reason when the code is generated.

each of your inputs should have this option:

tabindex="70"

Of course the number will vary. Basically the tab button follows that sequence in order from smallest to largest. So if one is out of order, it will jump to it.

Check and see if that is the issue. Sounds like your recaptcha might have a tabindex that falls between the two password fields tabindex’s.

You’ll have to see if you can manipulate the code to change the tabindex if that is the problem.

Dave

Posted: Monday Feb 13th, 2012 at 9:36 pm #4977
David Welch
Username: dwbiz05

This is probably not the prettiest idea, but it should work.

If you open wp-login.php on line 328 or so, you should see this:

wp_new_user_notification( $user_id, $user_pass );

If you comment it out it shouldn’t run:

//wp_new_user_notification( $user_id, $user_pass );

You will of course have to code a hook or something to send the e-mail when you want it to be sent.

The biggest issue though is that wordpress encrypts the passwords, so you would also have to save it in another part of the db during the function of wp-login.php you are editing and erase it later when you’re custom code sent the e-mail since you won’t be able to retrieve it when the e-mail is sent later.

Or you could just send the e-mail later with just their username and tell them to use the password reset option… but that’s probably not good customer service.

Not sure if that really helps.. lol!

Dave

Posted: Monday Feb 13th, 2012 at 9:08 pm #4976
David Welch
Username: dwbiz05

If you have access to the mysql db, you should be able to run these two queries to remove all IP restrictions:

DELETE FROM wp_options WHERE option_name LIKE '%_transient_s2m_ipr_%';

DELETE FROM wp_options WHERE option_name LIKE '%_transient_timeout_s2m_ipr_%';

This is taken from the following S2Member code:
s2member\includes\classes\ip-restrictions.inc.php
Lines 220 and 221

Hope that helps,
Dave

Posted: Monday Feb 13th, 2012 at 8:23 pm #4968
David Welch
Username: dwbiz05

You need to wrap it in the following php tags.

<?php
//the code I gave you here
?>

Dave

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Sunday Feb 12th, 2012 at 5:39 pm #4912
David Welch
Username: dwbiz05

If you open the page in the page editor, does it say that it is still protected in the s2member box (upper right)?

If so, I would try disabling it there and see if that works. If so, it could be a bug with the options page saving correctly.

Dave

Posted: Sunday Feb 12th, 2012 at 5:37 pm #4910
David Welch
Username: dwbiz05

That’s part of the standard options (at least on the most recent release for sure).

Go to General Options -> Registration/Profile Fields and Options

When you click to create a new field, it loads a modal form.

Scroll down to “Allow Profile Edits: *” drop down option.

The 4th option is what you want (editable after registration and invisible during registration).

Hope that helps,
Dave

Posted: Sunday Feb 12th, 2012 at 5:11 pm #4908
David Welch
Username: dwbiz05

Sorry about that. What was the issue?

Dave

EDIT: I had another user with the same issue. I forget to tell people to start and end their php with the php tags. That’s probably why it was printing out instead of running.

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Saturday Feb 11th, 2012 at 11:01 pm #4866
David Welch
Username: dwbiz05

LOL, my wife, who has no idea about programming, overheard the video he made and looked at it and said, “Oh, that’s a toolbar… I’ve used that before!”

LOL

People…..

Dave

Posted: Saturday Feb 11th, 2012 at 10:56 pm #4863
David Welch
Username: dwbiz05

LOL!!

I just visited his own website and don’t get the same results…

Nothing like jumping to conclusions without real proof… plus he’s spreading false info on the web about a great company!!

What a waste of the last hour….

Dave

Posted: Saturday Feb 11th, 2012 at 10:34 pm #4856
David Welch
Username: dwbiz05

That’s not a native function of S2member (at least not the free version). I’m not sure about the paid version.

You could probably custom code it but I don’t know of any plugins that will do it off the top of my head.

Dave

Posted: Saturday Feb 11th, 2012 at 10:26 pm #4854
David Welch
Username: dwbiz05

Where is the link. I would love to see actual proof because I can’t even see your claims about their own website.

LOL!

I’ve been looking all over the place for this stuff to see what you are talking about and I can’t find it. I also can’t find your video on youtube.

What is the link to your video or can you be more specific about where it is on this website?

Thanks,
Dave

  • This reply was modified 4 years, 11 months ago by  David Welch.
Posted: Saturday Feb 11th, 2012 at 8:55 pm #4842
David Welch
Username: dwbiz05

You can set this up under s2member -> Paypal Buttons

Create the buttons under the correct level to make it easier and just follow the instructions and you should be good to go.

Dave

Posted: Saturday Feb 11th, 2012 at 8:23 pm #4838
David Welch
Username: dwbiz05

What intext ads are you talking about?
I’ve been using s2member for a couple years now and never had anything added. I only use the free version too, so I don’t know what you’re seeing.

Dave

  • This reply was modified 4 years, 11 months ago by  David Welch.
  • This reply was modified 4 years, 11 months ago by  David Welch.
Posted: Saturday Feb 11th, 2012 at 4:15 pm #4832
David Welch
Username: dwbiz05

Bendix, that’s only for how it is displayed in your admin panel, not the registration form inputs or labels.

Jasmine,

Are you using the standard registration page or are you integrating with another plugin besides s2member?

What is your website url?

Have you double checked to make sure the fields were saved? You said you saved them but I would double check to see if they are still listed.

Dave

Posted: Saturday Feb 11th, 2012 at 4:09 pm #4831
David Welch
Username: dwbiz05

I believe you would have to pull that data from the db yourself. Then you can hook into the profile when it is shown.

Are you talking about the list you see in the admin side or the profile the user sees?
Are you using the wordpress standard profile page or the stand-along s2member version?

Dave

Posted: Saturday Feb 11th, 2012 at 3:48 pm #4829
David Welch
Username: dwbiz05

I’m sure there are other options, but this one should work and I love playing with the hooks and filters… lol!

My suggestion would be to add a function to the user_register hook. Something like this should work (not tested)

1. Create a new file (if you don’t have one) in wp-content/mu-plugins/ called s2-hacks.php. You may also need to create the mu-plugins directory.

2. add this to that new s2-hacks.php file:

function dw_reg_confirm($user_id){
	//This is the url of the page you want to show after registration.
	$confirm_page = 'http://yoursite.com/confirm-page';
	
	wp_redirect($confirm_page);
}

add_action('user_register', 'dw_reg_confirm');
//s2member might prefer add_action('ws_plugin__s2member_after_register', 'dw_reg_confirm');

3. Again, I’ve not tested this fully so let me know if you have any issues.

4. You can also do other things with the content of that page by using the $user_id that is passed from wordpress. If you want to see all the variables s2member sends to their action hook, then change $user_id to $vars=array() and before the “}” add die(print_r($vars)); .

May not be the best option but I hope that helps,
Dave

  • This reply was modified 4 years, 11 months ago by  David Welch.
Posted: Saturday Feb 11th, 2012 at 3:30 pm #4828
David Welch
Username: dwbiz05

I think what adam is saying is that he wants Unregistered people to be redirected to the registration page instead of a wordpress “page” like the ones listed in the dropdown on the s2member options.

My suggestion would be to add a function that hooks into s2member to disrupt the normal redirection process. I did a little testing and this seemed to work for me:

1. Create a new file (if you don’t have one) in wp-content/mu-plugins/ called s2-hacks.php. You may also need to create the mu-plugins directory.

2. add this to that new s2-hacks.php file:

function dw_custom_redirect($vars = array()){

	//This redirects to the registration url (assuming it's a standard install)
	wp_redirect(site_url('/wp-login.php?action=register'));
	exit();
	
}

//This adds to the hook when the system calls for the "membership-options" page.
add_action("ws_plugin__s2member_before_wp_redirect_w_mop_vars","dw_custom_redirect");

3. Save the file and test it out.

Non-logged in users should be re-directed to the registration page now.

Again, I have not done extensive testing but it seems to work for me.

Hope that helps,
Dave

Posted: Saturday Feb 11th, 2012 at 10:39 am #4810
David Welch
Username: dwbiz05

To be honest, I’m not sure what you mean by paypal pricing table (learn something new every day).

However, when you create a button in S2M they also list the option to copy/past html/php code for your button instead of the shortcode. You might have to scroll down a little to find it (depending on your screen size) under this heading “Resulting PayPal® Button Code: ( ultimately, your Shortcode will produce this snippet.

Not sure if that’s what you need.

You could always add a function(s) to your functions.php file to handle any changes to the basic button code if you need to.

Dave

Posted: Friday Feb 10th, 2012 at 3:37 pm #4771
David Welch
Username: dwbiz05

Just looking at the html, the label has no class or id attached to it.

You might be able to add a class to it with Jquery as suggested on this site:
http://stackoverflow.com/questions/6550208/how-do-i-add-a-css-class-to-only-one-label-at-any-given-time-using-jquery

Beyond that, I’m not sure what file outputs the css for that item.

Dave

Posted: Friday Feb 10th, 2012 at 3:03 pm #4768
David Welch
Username: dwbiz05

I don’t use downloads, but just looking at the system, here is my guess:

The redirection is only for non-members (those not logged in).

There is an option under Download Options ->Download Limit Exceeded Page where you can specify a page for users to be redirected to when they reach their limit.

Since you are setting the limit at 0, any time you click one, you’ve reached your limit. If you don’t have anything in that field, that might be why it’s directing to a blank page.

Hope that helps,
Dave

Posted: Friday Feb 10th, 2012 at 2:55 pm #4766
David Welch
Username: dwbiz05

The login page is a standard page (unless you want to get really creative with templates or shortcodes).

It can be found here: http://yoursite.com/wp-login.php

So if you are creating a link for your menu, you can use the custom link box on the left and put that url in it.

If that’s not what you meant, let me know.

Dave

Posted: Friday Feb 10th, 2012 at 2:52 pm #4765
David Welch
Username: dwbiz05

Do you mean change the label of the fields when they are displayed on the page?

Dave

Viewing 25 replies - 376 through 400 (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.