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: Dan Martinez

President/Owner of a full service I.T. company with an extensive computing background.


Topics I'm Subscribed To

Viewing 15 topics - 1 through 15 (of 15 total)
Topic Count Last Reply
Adding options to paypal button

By:  Mike Capps in: Community Forum

voices: 4
replies: 12

3 years, 8 months ago  eve lurie

Registration Email not being sent with PayPal

By:  Dan Martinez in: Community Forum

voices: 3
replies: 3

4 years, 1 month ago  Raam Dev

Multiple s2m Pro forms on the same page

By:  Dan Martinez in: Community Forum

voices: 2
replies: 1

4 years, 1 month ago  Cristián Lávaque

BUG REPORT

By:  Dan Martinez in: Community Forum

voices: 4
replies: 5

4 years, 2 months ago  Eduan

confusion on Paypal Button encryption

By:  Zizhi Lin in: Community Forum

voices: 2
replies: 1

4 years, 2 months ago  Dan Martinez

DOWNLOAD RESTRICTIONS 503 (Invalid Key)

By:  HEAT in: Community Forum

voices: 2
replies: 5

4 years, 3 months ago  HEAT

Enable Registration Form Offsite

By:  Thu Nguyen in: Community Forum

voices: 2
replies: 2

4 years, 3 months ago  Thu Nguyen

Email submit to reach teaser content

By:  Mike Sewell in: Community Forum

voices: 3
replies: 10

4 years, 3 months ago  Dan Martinez

Where's instructions for a login widget. 1 2

By:  Realty Training in: Community Forum

voices: 3
replies: 31

4 years, 3 months ago  Dan Martinez

Hook to use when membership level changes?

By:  Dan Martinez in: Community Forum

voices: 2
replies: 3

4 years, 3 months ago  Eduan

PayPal Sandbox for Free Version of s2Member?

By:  Dan Martinez in: Community Forum

voices: 2
replies: 5

4 years, 3 months ago  Eduan

Change username and password fields?

By:  Amanda Drake in: Community Forum

voices: 2
replies: 1

4 years, 3 months ago  Dan Martinez

Developer needed ASAP

By:  Dianne McLean in: Community Forum

voices: 3
replies: 2

4 years, 3 months ago  Dan Martinez

Looking For s2Member & WordPress Developer

By:  Fernando Ceballos in: Community Forum

voices: 2
replies: 1

4 years, 3 months ago  Dan Martinez

Viewing 15 topics - 1 through 15 (of 15 total)

Topics I've Started


My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 25 total)
Author Replies
Author Replies
Posted: Thursday Nov 22nd, 2012 at 8:26 pm #32379
Dan Martinez
Username: njitc

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.

Posted: Tuesday Nov 6th, 2012 at 9:55 pm #30839
Dan Martinez
Username: njitc

I am having the same issue and am in the process of figuring it out..

Posted: Tuesday Nov 6th, 2012 at 9:53 pm #30838
Dan Martinez
Username: njitc

shoot me an email and I’ll see what I can do to help out: daniel.martinez AT njitconsultants DOT com

Posted: Tuesday Nov 6th, 2012 at 9:51 pm #30835
Dan Martinez
Username: njitc

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.
Posted: Tuesday Sep 18th, 2012 at 12:59 am #25656
Dan Martinez
Username: njitc

@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.

Posted: Monday Sep 17th, 2012 at 1:08 am #25544
Dan Martinez
Username: njitc

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.

Posted: Monday Sep 17th, 2012 at 12:32 am #25541
Dan Martinez
Username: njitc

Mike,

Shoot me an email: daniel.martinez AT njitconsultants DOT com

Posted: Monday Sep 17th, 2012 at 12:21 am #25539
Dan Martinez
Username: njitc

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.

Posted: Sunday Sep 16th, 2012 at 11:11 pm #25532
Dan Martinez
Username: njitc

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.

Posted: Sunday Sep 16th, 2012 at 2:52 pm #25512
Dan Martinez
Username: njitc

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.

Posted: Sunday Sep 16th, 2012 at 2:42 pm #25511
Dan Martinez
Username: njitc

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.

Posted: Sunday Sep 16th, 2012 at 2:18 pm #25507
Dan Martinez
Username: njitc

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.

Posted: Sunday Sep 16th, 2012 at 3:05 am #25460
Dan Martinez
Username: njitc

Eduan,

Good catch, my typing wasn’t in sync with my thoughts and I left them out unintentionally. I corrected my previous post!

Posted: Sunday Sep 16th, 2012 at 2:50 am #25458
Dan Martinez
Username: njitc

Stephen,

I looked through the code of the widget and it has:

// Output other links
$links = '';	
if ( get_option('users_can_register') &amp;&amp; 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') &amp;&amp; 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.

Posted: Saturday Sep 15th, 2012 at 1:02 am #25393
Dan Martinez
Username: njitc

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.

Posted: Saturday Sep 15th, 2012 at 12:40 am #25391
Dan Martinez
Username: njitc

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.
Posted: Friday Sep 14th, 2012 at 11:50 pm #25389
Dan Martinez
Username: njitc

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.

Posted: Friday Sep 14th, 2012 at 11:23 pm #25387
Dan Martinez
Username: njitc

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.

Posted: Friday Sep 14th, 2012 at 9:31 pm #25386
Dan Martinez
Username: njitc

bump.

Posted: Friday Sep 14th, 2012 at 9:28 pm #25385
Dan Martinez
Username: njitc

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?

Posted: Friday Sep 14th, 2012 at 9:22 pm #25384
Dan Martinez
Username: njitc

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.

Posted: Friday Sep 14th, 2012 at 9:19 pm #25383
Dan Martinez
Username: njitc
Posted: Friday Sep 14th, 2012 at 9:17 pm #25382
Dan Martinez
Username: njitc
Posted: Friday Sep 14th, 2012 at 2:03 am #25264
Dan Martinez
Username: njitc

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.
Posted: Friday Sep 14th, 2012 at 12:53 am #25256
Dan Martinez
Username: njitc

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