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

First Timer: Redirect new members on their first login.

Development and Programming

Ryan Irelan's avatar
Ryan Irelan
444 posts
17 years ago
Ryan Irelan's avatar Ryan Irelan

We just released a nice extension—First Timer—that we built for a client project. It allows you to redirect members to a location of your choosing upon their first successful login. You can also set a destination for any subsequent logins.

We built this because the client wanted new members to see a “how to” page for the website, but did not want to annoy the members with it each and every time they logged in. They also needed the ability to easily change (from within the CP) the destination pages (for both new and existing members) at any time.

You can download First Timer and get details here: http://airbagindustries.com/software/ee/firsttimer/

       
Ingmar's avatar
Ingmar
29,245 posts
17 years ago
Ingmar's avatar Ingmar

Before I dig into the code, how does it determine it’s your first time? Checking exp_members.last_visit, I suppose?

       
Ryan Irelan's avatar
Ryan Irelan
444 posts
17 years ago
Ryan Irelan's avatar Ryan Irelan

I tried that, Ingmar, but that field is updated before the hook, so it never worked. I ended up using a custom column to track the login.

       
Ingmar's avatar
Ingmar
29,245 posts
17 years ago
Ingmar's avatar Ingmar

Interesting. Guess I will need to take a closer look to satisfy my curisoity, then 😊 Thanks, it looks like a very useful extension.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Ryan,

Just took a look under the hood and all looks nice 😉

Just wondering, haven’t tried it yet but will this also work with people who sign up and register but have to confirm the e-mail first? I guess it would, wouldn’t it?

Very nice addition which I’m sure a lot of people will find really useful.

Best wishes,

Mark

       
Ryan Irelan's avatar
Ryan Irelan
444 posts
17 years ago
Ryan Irelan's avatar Ryan Irelan
Just wondering, haven’t tried it yet but will this also work with people who sign up and register but have to confirm the e-mail first? I guess it would, wouldn’t it?

Yep, that’s exactly how we’re using it. It hooks in to the login process, so it doesn’t matter how they register or get registered.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Fantastic! In that case when I said that a lot of people will find it really useful I can now say a lot more will!! 😉

Best wishes,

Mark

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
17 years ago
Sean C. Smith's avatar Sean C. Smith

I can definitely see a use for this in the future - great extension!

       
Qrat's avatar
Qrat
40 posts
17 years ago
Qrat's avatar Qrat

cool extension, Is it possible to redirect firts_login_user if self-activation disabled on the site?

       
Max Lazar's avatar
Max Lazar
341 posts
17 years ago
Max Lazar's avatar Max Lazar

This extension work with member_member_login_single hook, in this case redirect will work only after second login because is no hooks during auto login.

I think you need something like Stand-Alone Registration Form with Redirect

       
mattbrighton's avatar
mattbrighton
50 posts
17 years ago
mattbrighton's avatar mattbrighton

hi ryan

great plugin. can you tell me if it is compatible with MSM, with the ability to input different destination url’s for each site?

       
Ryan Irelan's avatar
Ryan Irelan
444 posts
17 years ago
Ryan Irelan's avatar Ryan Irelan

Hi Matt,

Currently the settings are system-wide, so it won’t support the MSM. I will take that as a feature request (and it’s a good one). Thanks!

       
mattbrighton's avatar
mattbrighton
50 posts
17 years ago
mattbrighton's avatar mattbrighton

Glad to be of assistance 😉

I was wondering if the URL inputs currently parse eetags? If so this is one way to possibly get around it now if you had the site structure similar on both sites. (sorry haven’t got around to testing this yet as I don’t want it interfering with my MSM setup).

ie: {site_url)/wiki/Gettingstarted

       
Ryan Irelan's avatar
Ryan Irelan
444 posts
17 years ago
Ryan Irelan's avatar Ryan Irelan

The inputs don’t parse EE tags. They just check for properly formed URL and redirect to it.

       
Michael Roper's avatar
Michael Roper
36 posts
17 years ago
Michael Roper's avatar Michael Roper

Hi Ryan,

Any chance there has been some progress on the feature request for MSM support? I have a MSM setup, but only want to use this extension on one of the sites… any hints on how to do that?

Cheers…

       
1 2

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.