PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Login vs registration in widget

s2Member Plugin. A Membership plugin for WordPress®.

Login vs registration in widget

Postby cassel » July 5th, 2011, 7:55 am

After several tests it seems to me that the widget is ok for logging in if a user already has an account. However, in case they want to sign up they get to the Membership Option page. Is there a way to either allow registration directly IN the widget so the user can stay on the same page that is likely interesting him OR send him to the REGISTRATION page itself? I find it confusing for the user if they are supposed to access a page but only when registered/logged in and the get detoured somewhere else.

Here is an example:
http://scrapbookcampus.com/basic-tutori ... tshop-pro/
This page has several conditionals and will display differently if you are (1) a visitor not logged in (2) a registered free member (3) a paying member with the "basic" ccaps. However, if you are a new visitor and want access to the content for FREE registered member, and you click SIGN UP, you are directed to the Membership Option page which does not make much sense and then, you still cannot register there, and as you keep clicking on SIGN UP NOW, you keep refreshing the same page over an over again.

It looks to me like the visitor`s path is wrong and i am not sure how to get around it. Any suggestion? Is ther a way to have the signup/registration in the same widget?
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby cassel » July 5th, 2011, 9:58 am

REvisiting the login widget, what is the %%automatic%% refering to in the Signup Now? Is that where to direct the viewer to the ACTUAL registration/login page? I guess it would be better than redirecting to the MEmbership Option page, but i strongly feel it would help conversion if the visitor could register on the same page. Afterall, if the login widget is on the page where they WANT to register, that is where they would want to go, so why make a detour? (just saying)
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby Cristián Lávaque » July 5th, 2011, 2:27 pm

That Pro Login Widget lets you specify where to send the person when he clicks the link. You can point it to the default registration page http://scrapbookcampus.com/wp-login.php?action=register or a custom registration page you create http://scrapbookcampus.com/my-custom-registration for example.

If you want to do something more advanced, you may leave that field blank and instead use the field below it to create your custom link, and you'll be able to use HTML and PHP there. It won't display in the same place, it'll come under the login button, but you can customize it so it looks good anyway.

This would allow you to have the registration pro-form in the same page the person is in, if you make the link point to the same page with an extra variable in the end.

Code: Select all
<a href="<?php echo $_SERVER['REQUEST_URI']; ?>?signup">Sign Up</a>


This extra variable you can pick up with a conditional and if present, display the registration form.

Code: Select all
<?php if (isset($_GET['signup']) {
    // Display registration pro-form.
} else {
    // What goes in this page.
} ?>


I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Login vs registration in widget

Postby cassel » July 5th, 2011, 4:52 pm

Yikes! that looks like foreign language to me. I guess the first option to put the actual link to the registration page would do enough, however, when i try it on the test site, it STILL goes to the exact same page as if i had left the %%automatic%% there.

Now, i am puzzled. I set the after login and after logout to PREVIOUS PAGE in both case but now, if i log in as me (admin) i an redirected to the dashboard! and if i log in as Member0 i am sent to the welcome back page. But it should keep me on the same page, right?

And if i click on Signup Now, i am redirected to the Membership Option page EVEN if i have put
http://digiscrapcampus.com/main/wp-logi ... n=register for that.Image

You can try with member0 and member0 as username and password (there is not much on that site beside test pages!) It is the PINK widget (the other one was done by the developper and i dont want to loose it yet)
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby cassel » July 5th, 2011, 6:57 pm

Well,maybe it needed a lunch break. Without changing anything, it works now. Go figure. Must be cookie related or something because it worked perfectly on another computer. It keeps me on the same page when i log in and log out. It brings up the Register page when Signup Now.

The only oddity is that if i go for Signup, going to that registration page, and click login instead and enter my info, i am sent to the dashboard if i use my admin ID. Just curious.

Anyways, i think it would be ideal if the registration process could be done inthe same box so the visitor does not leave the page that convinced him to register!

Thanks
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby Cristián Lávaque » July 5th, 2011, 10:05 pm

Glad it sorted itself out. :)

The admin will always be sent to the dashboard after logging in, unless you specify a redirect_to URL whwn you load wp-login.php.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Login vs registration in widget

Postby Cristián Lávaque » July 5th, 2011, 10:08 pm

You could try using the free registration pro-form in the XHTML/PHP field of the Pro Login Widget, the first part for those that aren't logged in.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Login vs registration in widget

Postby cassel » July 5th, 2011, 10:15 pm

I would have to read on that as i have NO clue what it is! LOL
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby Cristián Lávaque » July 5th, 2011, 10:31 pm

lol, don't worry. See the Sign Up field in the widget? Right below it there's a field for additional things, enter there the shortcode for a free registration pro-form. WP Admin -> s2Member -> PayPal Pro-Forms -> Free Registration
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Login vs registration in widget

Postby cassel » July 6th, 2011, 9:43 am

That would set up the registration in the sme widget box as the signup? That would be great. Will check that later. Thanks.
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby cassel » July 6th, 2011, 10:08 am

It looks... interesting. I guess it is LOOOOOOOOOONG form now!
http://digiscrapcampus.com/main/

Could i be picky and ask for something else? Is it possible to have the sign up part pull down ONLY when the user clicks Signup while keeping the minimum otherwise? And can the captcha be removed? I deleted the mention in the shortcode but it stays there. And how about the formatting? where would i edit the font and size and such? (some of those are huge and not really matching the rest) I think it has potential though.

And btw, why is it specifying to only use lowercases and/or numbers? I dont remember seeing that in the regular registration page.????
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby Cristián Lávaque » July 6th, 2011, 4:28 pm

You can edit it using CSS so it's more compact, or you can customize the form's template.

Is it possible to modify the PayPal® and/or Authorize.Net® Pro Form templates?

Usually not necessary. But yes, if you really need to. Please check your /s2member-pro/includes/templates/forms/ directory. You can take the default templates, and place some ( or all of them ) into your own WordPress® theme directory. s2Member Pro will automatically find your custom templates there. By placing custom templates into your theme directory, you can be sure they won't get overwritten in a future upgrade. Either that, or you can just use the default templates like they are, and customize them with your own CSS rules inside the Stylesheet for your WordPress® theme ( i.e. style.css ). If you're using a PriMo Theme ( for instance, the s2Clean Theme ), check your Theme Options Panel, under: Custom CSS / Style Sheet.


And WP Admin -> s2Member -> PayPal Pro-Forms -> Shortcode Attributes (Explained) -> template

template="" 100% optional. This can be a custom template file that exists inside your WordPress® theme directory. For example: template="checkout.html".


To make that form collapsable, you'd have to add some JavaScript to your code there. I don't know much about this to give you code, though.

I don't know why it says only those characters, I believed more were allowed https://codex.wordpress.org/Function_Re ... itize_user You may want to test that.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Login vs registration in widget

Postby cassel » July 23rd, 2011, 11:50 am

I hope this is only a small question. I managed to combine a few things to make something i think is interesting.
http://scrapbookcampus.com

I managed to use the conditionals on the top yellow leaf to display the "sales pitch" or not, depending on whether the viewer is logged in or not. If you are not logged in, it will display. If you are logged in, it will totally vanish (no point in pushing you to register, if you are already logged in, right?).

Since i could not figure out a short way to use the pro-form, i used my MailChimp code for registration (it is all integrated anyways). Now, if a viewer is already registered, but not yet logged in, the arrow will lead them to the login widget. Neat huh? (not being a programmer myself, i am pretty proud of that!) Now, the only detail i would like to edit i the login widget is to remove the "register now", since the registration is expected to happen on the top leaf instead of the one from the pro-form which would send to a separate registration page. Where do i look to remove that from the login widget?
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby Cristián Lávaque » July 25th, 2011, 6:31 pm

Awesome! Great job. :)

WP Admin -> Appearance -> Widgets -> s2Member Pro Login Widget -> Signup Now, leave blank to exclude this link.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Login vs registration in widget

Postby cassel » July 25th, 2011, 6:52 pm

Too easy! Thanks!
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login vs registration in widget

Postby Cristián Lávaque » July 25th, 2011, 8:38 pm

:)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron