|
Thanks, got it worked out. Emails were being sent by WP, but were failing from the server due to some problems with php mail(); I didn’t bother fixing the php mail so I just installed WP SMTP Mail plugin and had it send via SMTP.
|
|
I am having the same issue and am in the process of figuring it out..
|
|
shoot me an email and I’ll see what I can do to help out: daniel.martinez AT njitconsultants DOT com
|
|
Correct, that is what I meant.
The user is not presented with an error message and would not know that their email address was not updated due to the duplicate.
-
This reply was modified 4 years, 2 months ago by Dan Martinez.
|
|
@HEAT:
Glad you figured it out. I was trying to duplicate your error but was unsuccessful…and like my mother always told me, “If you don’t have something good to say, then don’t say anything at all”. So, I did not respond to your post.
However, you should post your solution so others can benefit from your resolution.
|
|
You’d need to use wordpress multisite installations and they would have to be on the same host for it to all work smooth.
…It’s possible with separate hosts, but is extremely complicated, requiring the ability of an advanced PHP coder utilizing multiple hooks and off-site HTTP calls.
|
|
Mike,
Shoot me an email: daniel.martinez AT njitconsultants DOT com
|
|
Mike,
If you don’t know how to code PHP pretty well, then you’ll need to get the pro version and use the pro-forms. Here’s a desc. of it: http://www.s2member.com/kb/s2member-pro-forms/
The only thing you can’t set automatically is the username. The password will be emailed to them if you choose to do so via the settings at:
S2member => Registration/Profile fields and options => Allow Custom Passwords during Registration?
However, if you know PHP coding, then you can do anything you want after doing a few source mods.
|
|
You’re welcome. That will be 5 rupees, please. J/k! Glad I could help, just remember that if there are any updates for the sidebar plugin that you’ll have to redo these modifications. So, make sure you write down notes somewhere.
|
|
Stephen,
You should also note that anytime this plugin is “updated”, that your modifications will be erased and will need to be done again. So, remember these changes in case you have to do it again in the future.
|
|
Stephen,
Below is the additional mod you need to make to the sidebar plugin in the same section you made the first change.
Find:
$links .= '<li><a href="' . apply_filters( 'sidebar_login_register_url', site_url('wp-login.php?action=register', 'login') ) . '">' . $theregister . '</a></li>';
Replace with:
$links .= '<li><a href="' . apply_filters( 'sidebar_login_register_url', site_url('new-member-signup/', 'login') ) . '" rel="nofollow">' . $theregister . '</a></li>';
replace “new-member-signup” with the name of your signup page. For example if your signup page is called member options, then replace it with: (‘member-options/’, ‘login’) ) . ‘”
Let me know how it works out.
|
|
Stephen,
The registration page is supposed to be protected by s2Member. If you have open registration turned off, then when someone goes to the registration page it is SUPPOSED to catch it and cause it to redirect.
Make sure open registration is turned OFF in S2Member settings, then check if it is redirecting. If it still is not redirecting, then it means s2member is not catching it. In which case, we’ll have to do a little more modding to the code to get your desired effect.
|
|
Eduan,
Good catch, my typing wasn’t in sync with my thoughts and I left them out unintentionally. I corrected my previous post!
|
|
Stephen,
I looked through the code of the widget and it has:
// Output other links
$links = '';
if ( get_option('users_can_register') && get_option('sidebarlogin_register_link') == '1' ) {
if ( ! is_multisite() ) {
$links .= '<li><a href="' . apply_filters( 'sidebar_login_register_url', site_url('wp-login.php?action=register', 'login') ) . '">' . $theregister . '</a></li>';
} else {
$links .= '<li><a href="' . apply_filters( 'sidebar_login_register_url', site_url('wp-signup.php', 'login') ) . '">' . $theregister . '</a></li>';
}
}
The first line in that section checks if users have permission to register, that’s why the register link is disappearing. Try changing the below portion of the above section of code:
if ( get_option('users_can_register') && get_option('sidebarlogin_register_link') == '1' ) {
to:
if ( get_option('sidebarlogin_register_link') == '1' ) {
This should remove the check and allow the register links to appear even with open registration off. Let me know how it works.
|
|
Stephen,
The answer may be much simpler than modifying anything. S2Member protects specific pages if you choose to.
If you do not want users to be able to register without paying, then simply go to:
Dashboard -> S2Member -> General Options -> Open Registration
and turn off open registration.
Now, anytime a user goes to a registration form, they will be directed to your membership options page where they can choose the level of membership to pay for. Subsequently, the register link will be automatically redirected from the sidebar plugin.
Enjoy.
|
|
Mike,
This is pretty easy, however, it’s not done using the s2Member system. PayPal buttons are generated based on passed HTML variables.
I don’t know if you can try to add these vars to the s2Member generated shortcode version (haven’t tried it..). Though, I know it WILL work if you use the HTML version of the button code from s2Members button generator. Of course, this means the button is not encrypted, so you’ll have to turn off required button encryption in your paypal settings.
So, use the s2m button generator and then add this code to the bottom of it right ABOVE the
</form>
line:
<input type="hidden" name="on1" value="Size">Size<select name="os1">
<option value="Small">Small</option>
<option value="Large">Large</option>
</select>
You can create as many option values as needed to add more sizes. This creates a required option that does not change the price, but you’ll see it when your paypal orders are processed.
[Edited to fix missing closing tags]
-
This reply was modified 4 years, 3 months ago by Dan Martinez.
|
|
RESOLVED
I could not find the hooks I was looking for in the codex… probably because they are either named or called differently than I’m expecting.
However, the answer was much more simple than anticipated. I completely overlooked the following section:
Dashboard -› s2Member® -› API / Notifications -› Registration Notifications
I accomplished my goal by creating a custom url in the appropriate area of the above named section which passed the data I needed to a php page that I created which processed the incoming data. …run on sentence for the win.
|
|
Mike,
Keep in mind, that the purpose of your form is LEAD CAPTURE, so you want to verify the email address is real. If they provide a bogus email, then it makes sense that you don’t provide the video.
I would change your custom form to also require first/last name and change your s2m settings so that the user does not enter a password upon signup (it will create a temp password). Next, modify the registration email to include the link to the second video and lastly, modify the registration return page to instruct the user that the link to the 2nd video has been emailed to them.
The result is that you have their firstName,lastName, and email address in your database and they get an email with the 2nd link, their username and a temp password for the site. They’ll need the password if they choose to come back to your site and signup as a paid member.
|
|
|
|
Easy:
s2Member Options -> General -> Registration/Profile Fields Options
- Collect First/Last Names during Registration? –> set to NO
- Just above that go to: “Custom Registration/Profile Fields” and create a new Lastname and ID field and adjust the field type for each to set the allowed input.
Now, my only question is: Do they know what their ID# is or are you manually doing registrations?
|
|
Eduan,
Funny thing you suggested that because that’s exactly what I ended up doing. The reason was because after getting the sandbox running smoothly, I was unable to get the required emails to the test acct to finalize new memberships. It would require me doing more mods and well… wasted time.
|
|
|
|
|
|
RESOLVED
What I had to do was recreate the paypal buttons from the “s2Member –> PayPal Buttons” options menu AFTER I changed the settings to use a paypal-sandbox Seller account (credentials created within paypal sandbox).
Then, when I tested the button I was getting missing field errors from PayPal. This appeared to occur because either WordPress or one of my plugins was messing with the generated button code. So, what I did was install the phpExec mod so that I could use PHP in my pages.
Next, I created a new page using the php include tags:
[php]
include(‘./private_directory/subscription/new_user_signup.php’);
[/php]
Lastly, I created the page: ‘new_user_signup.php’ (rename to your liking..) in which I put the newly generated paypal-sandbox button code (from the s2member paypal button page).
Finally, the effing thing worked… now I can test shiz out. Hope this helps others…
-
This reply was modified 4 years, 3 months ago by Dan Martinez.
|
|
Although logical, I didn’t realize you can get credentials specific to your paypal sandbox acct… Login to your sandbox acct and choose: “API and Payment Card Credentials”. Copy/Paste into the settings of s2member and enable sandbox mode.
HOWEVER,
When I do the above, I still have the same problem. When attempting to use a paypal button, it just pushes me to the sandbox_user’s main page. I never get to the checkout page no matter what I try.
Any suggestions?
-
This reply was modified 4 years, 3 months ago by Dan Martinez.
|