krumch
Forum Replies Created
-
You need to build a checking function and hook it to the “create member” procedure, like this:
add_action('user_register', 'pin_check');
where “pin_check” is the name of your function. Best is to do this as a PHP file at “wp-content/mu-plugins” directory.Possible by CSS, I think.
Can move your settings to your own CSS file. Then in “mu-plugins” directory put a PHP file what reads that CSS (by “wp_enqueue_style()” function). Which also allows you to check and load it for this page only. Maybe can search by environment variables, or can attach it to some s2M hook.
Try with CSS and jQuery.
@statstutor: The code I show is not full, sorry. Cassel show you a full and well structured code. This code allows OR logic. Must stay in page text. This is “s2M scripting”.
Your task have more than one solutions, use the one you understand best.
Yes, try this:
[s2If current_user_can(access_s2member_ccap_your1ccap) OR current_user_can(access_s2member_ccap_your2ccap)]
Try to customize the template…
Try to do a “redirect after payment” to the form page.
I know two ways. Can customize the template. Also can do a jQuery hack to change the text and CSS…
Well, first, Pro users have a different support forum, please check your “s2M Pro info” page.
Can not understand your problem, please give more info. May be a link?
You want to implement “log in/log out” link? There is a solution…
Or maybe you want menus to not be changed, depending of the loggin state? That most likely depends of your theme, but can be s2M conditions somewhere too…
Possible by custom code. I can help you, please find me.
Better ask them before to show them the button. Means, ask them to log in, if they have account. If they can not log in (no account) show them the button #1 you describe. If they log in, at the same place you can show the button #2, by s2M conditions. This way will not be created a new account after they pay, as they will be logged in already.
Forum: Plugins
In reply to: [KC S2M+MC] How long before user deletion reflects in MC?Generally s2M cares about this, and to remove the member from all the lists, at all. Should be done out of my plugin. Can I do some tests on your site?
What you see is a “servialized array”. In PHP and JS exists tools to “unserialise” it and use as an array. But you didn’t say how you handle it, so can’t suggest the exactly functions…
Difficult to say what is wrong exactly, did you get some message in error_log file?
Also there is a syntax error in the code, the opening brake above the “exit” is not closed.