krumch
Forum Replies Created
-
@lara_c_2: You just should use a “text editor”, instead “text processor” editing software, when you edit HTML, PHP and JS codes. In PC use Notebook, for example. My favorite is Vim, works at wide range of platforms.
How to recognize “text editor” from “text processor”: if you can change the size of letters of one word only, this is “text processor”.
Good luck! 🙂
@lara_c_2: With some PHP coding is possible to handle the links in any menu, I explain a way at http://krumch.com/2013/08/27/how-to-place-loginlogout-link-in-submenus-of-wordpress/. Or I can do for you.
About box size: set a logo picture with the right width, it stay inside the same box and “dictates” the width. This can be done at “a2Mmember -> General options -> Login/Registration Design” tab.
@doulacare: “API / Notifications” URLs works with any payment processor, there is examples you can find in s2m’s site (sorry, I have no much time to explain exactly). Or hire me :-/
@marktvb: This code should be in mu-plugins/s2-hacks.php file. To use it with s2M registration forms, you must find a good hook to run the function with. I search in s2M codes – always works for me.
@doulacare: You can attach it to another hook, after the payment is made. Or to run that function by URL at “API / Notifications”.
Try this:
add_action('registration_errors', 'validate_email_domain', 10, 3); function validate_email_domain( $errors, $login, $email ) { if ( is_email($email) and substr($email, -3) != 'edu' ) { $errors->add('email_domain', __('ERROR: You may only register with a .edu email address.')); } return $errors; }Opps, sorry, seems I was too sleepy yesterday… Yes, jQuery will not works alone. But if Stripe is in an iframe, that means that s2Member don’t change it too…
I am not familiar with Stripe (yet), there can be some way to customize your payment page (shown in the iframe) in your account at Stripe site, you may use that. Maybe to put HTML/CSS/jQuery there?
Another option is to read the code which must come in the iframe, to change it and to show it to your page. Means, to make your own customization/implementation of Stripe in s2M…
Again, I am not familiar with Stripe, and with s2M’s implementation, maybe there is a way, but I can not see it now…
Well, interesting idea… I would search for good hook in s2Member’s codes. But there is a trap – if you run a s2M function outside of s2M, it may need some vars, which is not initialized at the moment. So be careful.
Well, no much possibilities… In this case try jQuery. I am not sure will it works, but it is possible to address the iframe element…
You my run this function by “s2M -> API / Notifications -> Modification Notifications”…
Try CSS…
Yes, the action hook is “user_register”. But I don’t know about message, you may need to assemble it.
Your 2) is a variant of the way I explain. In this case in the field “Specific Post/Page Sale Notification URL” should stay an URL, which will send a mail to listX@aWeber.com with member’s info, and at aWeber must be a corresponding parser.
Usually s2M will move the member to need list if member is moved to another level, and the source level and target level have different lists you set at “API / List Servers -> AWeber Integration” (note the tip). Can not use “levels” instead “specific post/page”?
May be you should export all your members, edit membership field in Excel and import back…