We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Need help getting users auto-logged in once registered via Solspace’s User Module.

Development and Programming

Mark Terpstra's avatar
Mark Terpstra
205 posts
17 years ago
Mark Terpstra's avatar Mark Terpstra

I need a bit of help with the User module from Solspace - I want new registrations to be auto logged in once they register. That seems doable based on my reading - but my code isn’t working…

  • I just purchased User module - first time playing with it.
  • I have my EE settings to NOT require activation
  • User accounts ARE being created and activated (I checked)

What else do I need to do here?

Here’s my code for my setup.. Template 1 is where the user registers and is then redirected to Template 2 where they need to click to pay for their subscription. I went them to be auto-logged when they hit Template 2.

TEMPLATE 1 /user/register/

{exp:user:register return="/user/subscription/" admin_register="yes" allowed_groups="5"}

<h3>Step 1 of 2: Create a User Account</h3>
Once you create a user account, you will be redirected to the payment page.

<h4>Enter Your Email Address:</h4>
 <input class="request-form-field" type="text" name="username" size="40" /> 

<h4>Your Full Name: </h4>
 <input class="request-form-field" type="text" name="screen_name" size="40" /></p>

<h4>Choose a Password:</h4>
 <input class="request-form-field" type="password" name="password" size="40" /></p>
<input class="request-form-field" type="password" name="password_confirm" size="40"/> 
  
<input  class="submit" type="submit" value="Go to Step 2  »" /></p>

{/exp:user:register}

TEMPLATE 2: /user/subscription/

{if logged_in}

    <h2>Hi {screen_name}</h2>
    
    <h3>Step 2: Pay for your subscription</h3>

    {exp:weblog:entries weblog="pages" entry_id="156" limit="1"}
    {exp:simple_commerce:purchase entry_id="156" success="/clients/new-subscriber/"}
        <h3><a >Click Here to Pay - {item_sale_price} for One Year</h3>    
    {/exp:simple_commerce:purchase}
    {/exp:weblog:entries}        
            
{/if}

Mod Edit: Moved to the Modules: Discussion and Questions forum.

       
Mark Terpstra's avatar
Mark Terpstra
205 posts
17 years ago
Mark Terpstra's avatar Mark Terpstra

Ended up getting it to work with this extension… http://ellislab.com/forums/viewthread/90180/

       
Mark Terpstra's avatar
Mark Terpstra
205 posts
17 years ago
Mark Terpstra's avatar Mark Terpstra

FYI - Solspace showed me how to accomplish the same goal withOUT the extension mentioned before… http://www.solspace.com/forums/viewthread/1971/

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.