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.

About: Randy Glenn Aguirre

Sorry, I've not written a description yet. I'll get to it soon!

My Latest Replies (From Various Topics)

Viewing 13 replies - 1 through 13 (of 13 total)
Author Replies
Author Replies
Posted: Sunday Jul 28th, 2013 at 2:59 am #54272

Hi Mike,

Thanks for your reply. It’s not being called automatically via wp_insert_user().

I found the way.

I have used c_ws_plugin__s2member_email_configs class then called new user notification function.

Will share the script later.

Posted: Sunday Dec 23rd, 2012 at 12:05 am #35394

Alright, I will try this.

Posted: Saturday Oct 13th, 2012 at 9:45 am #28333

Thanks a lot Christian. I will inform this to the one that handles our account.

Warm Regards,

Posted: Thursday Sep 6th, 2012 at 10:09 pm #24441

I think I solved it. Gonna give it another try.


It did not work, I tried using javascript to fill in values. But looks like the email and zip code needs to be filled in via keyboard interaction.

I just need to disable or change it to a different one instead of .keyup().


I have found the problem.

add_action ("ws_plugin__s2member_pro_before_sc_authnet_form", "s2_customize_pro_form", 1000);
function s2_customize_pro_form ($vars = array())
	/*  Don't pre populate when/if the Pro Form has just been POSTd, and/or if it's a Modification Form 
		with modify="1", because s2Member already pre populates Pro Forms in that scenario, with the 
		User's existing Email and Username. */
	if(empty ($_POST["s2member_pro_authnet_checkout"]) && empty($vars["attr"]["modify"])) {
        <script type = "text/javascript">
		function getParameterByName(name)
		  name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
		  var regexS = "[\\?&]" + name + "=([^&#]*)";
		  var regex = new RegExp(regexS);
		  var results = regex.exec(window.location.href);
		  if(results == null)
		    return "";
		    return decodeURIComponent(results[1].replace(/\+/g, " "));
            (function ($) /* Wraps this `$ = jQuery` routine. */
                    $.fn.swapWith = function (to) /* Utility extension for jQuery. */
                            return this.each (function ()
                                    var $to = $ (to).clone (true), $from = $ (this).clone (true);
                                    $(to).replaceWith ($from), $ (this).replaceWith ($to);
                    $(document).ready (function () /* Handles email-to-username on keyup. */
						/* Generate random number to append to username, 
                        hopefully making it unique (yes, this isn't perfect!) */
                        var randomNum = Math.ceil(Math.random()*999);

                        if($('input#s2member-pro-authnet-checkout-email').length) {
							var email = 'input#s2member-pro-authnet-checkout-email';
							var login = 'input#s2member-pro-authnet-checkout-username';
						} else {
							var email = 'input#s2member-pro-authnet-registration-email';
							var login = 'input#s2member-pro-authnet-registration-username';

                        /* Fill hidden username field with first part of email address
                            and append randomNum to hopefully make it unique. */
                        $ (email).keyup (function ()
                                $(login).val ($.trim ($ (email).val ().split (/@/)[0].replace (/[^\w]/gi, '')) + randomNum.toString());
                            $(login).val ($.trim ($ (email).val ().split (/@/)[0].replace (/[^\w]/gi, '')) + randomNum.toString());								
                }) (jQuery);

I have put $(login).val ($.trim ($ (email).val ().split (/@/)[0].replace (/[^\w]/gi, ”)) + randomNum.toString()); outside the hack provided before.

I forgot I implemented this hack 1-3 months ago.

Thanks a lot! S2member

Posted: Thursday Sep 6th, 2012 at 9:13 pm #24428

Please take a look at this page, – when you sign up directly to this page all goes well. – Please select standard checkout (Default value)

But when you pass a value to the checkout form, a javascript alert box pops up then it does not contain which input box is missing a value. Please take a look at Error Route: at my first reply.

The checkout form’s (standard package and special value package) behavior, I changed it to be a custom field. So that user’s can change their Address, Zip, etc. information.

Topics Involve to Project – Support Rep’s Reply

Test Credit Card
No. 4007000000027
Exp Date. 07/2015 (can be any month or year, as long as it is more than the current year)
cvv. 323 (any 3-4 digit)

Posted: Thursday Sep 6th, 2012 at 8:50 pm #24422

Hi Bruce,

What I need is to modify only the validation behavior, I think a php file handles it. But I do not know which file.
Cristián advised to me before to modify the pro forms via mu-plugins folder, and so I did. But this is a different issue

I do not need to turn off the whole javascript or the javascript for the Please help me, I am doing this for my current employer. And I need to give them what they want.

what file handles this url?


I tried to take a look at s2member-o.php but there was no lead to where ws_plugin__s2member_js_w_globals function is. I am assuming it is inside the pro forms folder.

If you need my employer’s account here at s2member I can login using that one. Then use that for replying.

Best Regards,

Posted: Friday Jul 6th, 2012 at 10:07 pm #18508

Cool! Will Check it out, thanks a lot for giving me the link.

Posted: Wednesday May 23rd, 2012 at 8:29 pm #14370

Thanks a lot!

Posted: Wednesday May 23rd, 2012 at 8:28 pm #14369

Great Support! I will try it out.

**EDIT*: How will I name the class? and should I place it to the same folder and file structure inside mu-plugins?.

Works Great!

Posted: Wednesday May 23rd, 2012 at 1:36 am #14274


I found the solution via javascript. However, I would prefer using php. Hope this becomes available soon.

Posted: Friday May 11th, 2012 at 7:26 pm #13233


Posted: Thursday May 10th, 2012 at 8:53 pm #13167

Please help me.

Posted: Friday Mar 30th, 2012 at 11:36 pm #9630

I’m also looking to fully customizing the sign up forms. Is there a hook where I can modify the form template? I need to add classes and change the html mark up for it.


Viewing 13 replies - 1 through 13 (of 13 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.