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 - 251 through 275 (of 407 total)
Author Replies
Author Replies
Posted: Monday Apr 2nd, 2012 at 9:36 am #9760
David Welch
Username: dwbiz05

When you create your paypal buttons (s2memer -> paypal buttons -> select level), in the large dropdown box select paypal (buy now) One Time (for 3 day access, non-recurring, no trial).

Then when you generate your button it s2 will control all of that for you.

Hope that helps,
Dave

Posted: Sunday Apr 1st, 2012 at 5:08 pm #9718
David Welch
Username: dwbiz05
Posted: Thursday Mar 29th, 2012 at 11:54 pm #9556
David Welch
Username: dwbiz05

hm very odd. I honestly wouldn’t have a clue without looking at it.

Hopefully someone else has dealt with this and has a solution.

Dave

Posted: Thursday Mar 29th, 2012 at 11:51 pm #9554
David Welch
Username: dwbiz05

I believe the Pro version allows you to use coupon codes, however, if you are using the free version, you will need to custom code this or find another plugin that can do it for you.

I think there are some users here who have accomplished this. Hopefully they will weigh in with actual options or code examples.

Dave

  • This reply was modified 4 years, 9 months ago by  David Welch.
Posted: Thursday Mar 29th, 2012 at 11:31 pm #9552
David Welch
Username: dwbiz05

Are you sure the page exists? Usually it only shows that page if the link is to a non-existant page. How did you crete the menu link?

Dave

Posted: Thursday Mar 29th, 2012 at 11:13 pm #9547
David Welch
Username: dwbiz05

I doubt it. The more involved functions would most likely be added to the pro version… if at all.

Dave

Posted: Thursday Mar 29th, 2012 at 10:36 pm #9534
David Welch
Username: dwbiz05

In order for s2member to protect your files, you will need to place your files in the s2member-files directory of the plugins folder. This folder is protected by s2member.

These videos show how to set it all up:

http://www.s2member.com/videos/7547A199A4385310/

Without knowing exactly how your set-up works, that’s the best direction I can give at the moment.

Hope that helps,

Dave

Posted: Thursday Mar 29th, 2012 at 10:30 pm #9530
David Welch
Username: dwbiz05

Sorry, I’m running on low sleep, but I’m not sure what you are trying to accomplish. Could you try to re-explain? :) Thanks!

Dave

Posted: Thursday Mar 29th, 2012 at 10:22 pm #9525
David Welch
Username: dwbiz05

It looks like you have the home page protected by s2member so it is re-directing to your membership options page.

Check to see if your home page is protected.

Hope that helps,

Dave

Posted: Thursday Mar 29th, 2012 at 10:05 pm #9520
David Welch
Username: dwbiz05

I always wait when I’m testing so I’ve never noticed that before. A crude but possible option might be to create a stand-alone page that captures the post data and then redirects or loads the correct return page via jquery/ajax.

I’ve not tried this but something like this might work.

1. create a file called my_paypal_redirect.php in the plugins folder.
2. add some code like this:

<hmtl>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$('body').load('http://your-s2-return-url',<?php echo json_encode($_POST); ?>);
</script>
</head>
<body>
</body>
</html>

3. just replace the return url in your buttons with the url to this file.

Hope that helps or at least points you in a good direction. :)

Dave

Posted: Thursday Mar 29th, 2012 at 9:15 pm #9518
David Welch
Username: dwbiz05

Have you checked the EOT of the members in question or your paypal log to see if maybe there was an error with the button they used that would be giving them a short or inaccurate membership period?

Dave

Posted: Thursday Mar 29th, 2012 at 9:13 pm #9517
David Welch
Username: dwbiz05

Mark is correct. Basically, S2member sends information such as the user’s internal id through the paypal purchase process then uses the information to upgrade the user. Just make sure the button they click to subscribe or pay for their upgrade is available after they log into the site so s2member can capture the necessary data.

So yes, this is exactly how s2member is intended to be used. Just create a button for the level you want them to upgrade to and put it in a page they access after logging in and you should be good to go!

Hope that helps,
Dave

Posted: Thursday Mar 22nd, 2012 at 2:57 pm #8855
David Welch
Username: dwbiz05

Dawnna,

I believe that when you set up closed registration, you are basically requiring users to use a subscription/buy button to pay, then they are directed to a registration page after payment.

That is why it’s saying registration is not available.

So, I would add a susbscription or paynow button on your membership options page and try going through that process to make sure it works correctly.

Hope that helps,

Dave

Posted: Wednesday Mar 21st, 2012 at 1:57 pm #8781
David Welch
Username: dwbiz05

S2member does not have any affiliate system integrated, however, you can use other affiliate plugins and integrate them with s2member.

Check out this section of your s2member ->API / Tracking Codes

Several options there that you may be able to use with another affiliate plugin or even a custom creation.

Hope that helps.

Dave

Posted: Wednesday Mar 21st, 2012 at 1:52 pm #8779
David Welch
Username: dwbiz05

I’m not sure what you are talking about because I don’t have this function. I assume this is some captcha type field for checking to see if the user is human?

I could be wrong, but I don’t think that’s one of the s2member captcha options. Do you have any other plugins running?

Dave

Posted: Tuesday Mar 20th, 2012 at 11:53 am #8614
David Welch
Username: dwbiz05

LOL… see, my first way is always more complicated… lol.

I think you have a good idea by editing the single page. I don’t remember off the top of my head if it’s displayed elsewhere as the full article.

Dave

Posted: Tuesday Mar 20th, 2012 at 11:10 am #8607
David Welch
Username: dwbiz05

First thought, which usually means its the most complicated way I can think to do it… lol.

Off the top of my head this is what I would do.

1. create a new page template in your theme that pulls a $_GET variable for the post_id then displays only the excerpt and the ad you want to display underneath. or if you are using a php execute plugin, you may be able to do this in a page itself without creating a theme template. you may have to play with it a little.
2. create a page (blank maybe or with the ad, not sure) titled something like “Ad Page” and select the new template for that page.
3. create a function like this and add it to your functions.php file or your mu-plugins/s2hacks.php file:

<?php
add_action("ws_plugin__s2member_before_wp_redirect_w_mop_vars","my_post_redirect");
add_action("ws_plugin__s2member_before_wp_redirect_wo_mop_vars","my_post_redirect"); // not sure which is best hook to use.

function my_post_redirect($vars=array()){
	//die(print_r($vars));
	if($vars['seeking_type'] == 'post'){
		$post_id = $vars['seeking_type_value'];
		//maybe add some more filtering to check if it's a specific post category or something.
		wp_redirect(site_url('ad-page/?post_id='.$post_id)); // Change ad-page to the slug of your page and make sure the $_GET['post_id'] is being checked.
	}
}
?>

If I have the right hook, this should automatically pull the id of the post and send it to you’re page for showing the add and the excerpt.

I’ve not tested this fully but initial tests seemed to work fine.

Hope that helps,
Dave

Posted: Monday Mar 19th, 2012 at 12:43 pm #8543
David Welch
Username: dwbiz05

When I make a theme, I usually create a standard template then create a “members” template that looks the same but calls different menus based on the template.

So all my membership pages, I protect with s2 but also use the “members” template so that it shows the member menu(s).

There are probably a hundred other ways to do this as well, but that’s my way.

As far as logging out, you can add a logout link to your top menu using either http://yoursite.com/wp-login.php?action=logout or using something like this in your theme:

<a href="<?php echo wp_logout_url(); ?>" title="Logout">Logout</a>

As far as showing the user they are logged in, you could add this to your membership page template:

<?php
	if(is_user_logged_in()){
		echo 'Welcome '.S2MEMBER_CURRENT_USER_LOGIN.'!';
	}
?>

You may also be able to use the above code in your theme where the menu is shown to filter the menus based on user logged in…

<?php
	if(is_user_logged_in()){
		wp_nav_menu( array( 'theme_location' => 'member-menu' ) );
	}
	else {
		wp_nav_menu( array( 'theme_location' => 'public-menu' ) );
	}
?>

If you don’t have menus registered in your theme, add this to your functions.php file.

<?php
//Register Template Menus
function register_my_menus() {
  register_nav_menus(
    array( 'public-menu' => __( 'Public Menu' ), 'member-menu' => __( 'Member Menu' ))
  );
}
?>

Hope that helps,

Dave

PS. in case you don’t know, if you register your menus, you will need to create menus and add them to the correct menu location in wp menu->appearance->menus

  • This reply was modified 4 years, 9 months ago by  David Welch. Reason: Added extra instructions
Posted: Monday Mar 19th, 2012 at 11:59 am #8540
David Welch
Username: dwbiz05

Shwan,

check out this post:

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

Hope it helps,

Dave

Posted: Monday Mar 19th, 2012 at 11:47 am #8537
David Welch
Username: dwbiz05

Just for kicks, try adding this to your theme’s functions.php page…

//Disable Admin Bar On Site
add_filter( 'show_admin_bar', '__return_false' );

Dave

Posted: Monday Mar 19th, 2012 at 8:30 am #8526
David Welch
Username: dwbiz05

Max,

This seems to be a fairly common problem with wordpress… i found this page that gives several options, but apparently you can just md5 a new password into your account and it should work.

Check it out here:

http://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin

Hope that helps,

Dave

Posted: Monday Mar 19th, 2012 at 12:18 am #8518
David Welch
Username: dwbiz05

I agree with Jordan’s reasoning, however, if you want, you could use some simple CSS to hide the field and label using “display: none;”.

Are you using the profile shortcode or the standard wordpress profile?

Dave

NOTE: A savy user could still change their e-mail using this method, but most people don’t know html well enough for it to be worth their time to reproduce the form and submit it. In either case, your back-end would still be updated with the new e-mail.

  • This reply was modified 4 years, 9 months ago by  David Welch.
Posted: Monday Mar 19th, 2012 at 12:16 am #8517
David Welch
Username: dwbiz05

1. Check your theme template. 3 of the links in your top menu bar on the right point to the registration page.

2. The downloads are going to the downloads exceeded page. Check the settings in s2member->download options->basic download restrictions make sure those are filled in correctly.

Without looking at the back end thats the best I can say.

Dave

Posted: Sunday Mar 18th, 2012 at 11:55 pm #8515
David Welch
Username: dwbiz05

Other than starting over… lol

If you can register a new user, and if you have access to the database I would register a new user, get the e-mail with your password for the new account…

Then I would go into the db and copy the password from your new user into the password field for your admin account, then try to login as admin with the new password.

It might work. Other than that, I don’t have any ideas.. lol

Hope that helps,

Dave

Posted: Sunday Mar 18th, 2012 at 11:49 pm #8514
David Welch
Username: dwbiz05

Well, if you HAVE to add them to the app’s db, then you can create a function and hook into the registration process right after all registration fields have been processed with wp.

Do the user ID’s matter if you are inputting them into the MS db?

If not, then using the simple hook should be fine. I assume you know how to access the MS SQL db from php.

Simply create a function to pull the info you need from the wordpress db in the correct sql statement to enter it into your MS SQL db.

Then add that to a file in your wordpress install under wp-content/mu-plugins/s2hacks.php. You may need to create the mu-plugins dir and the s2hacks.php file.

copy your code to the s2hacks.php file.

Then your file should look something like this after you add the necessary hook:

add_action('ws_plugin__s2member_after_configure_user_registration','my_db_copy_function');

function my_db_copy_function($user_id){
	//Your function code goes here.
	//$user_id is the id of the newly created user that is passed to your function by the hook.
}

Using that hook should run your function’s process right after the user’s registration information has been saved.

Hope that points you in the right direction.

Dave

Viewing 25 replies - 251 through 275 (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.