Jump to content

Featured Replies

Posted

Once people hit your landing page and then sign in can you send them to a welcome page rather than the landing page. ? Issue is my landing page is there to get people to sign up and then when people sign in they don’t go to an inside welcome page.

Make sense. ?

You can use the page for both!
Use blocks from the ACP ( ACP => PAges => BLocks) to contol the visibility via permissions, so that one set of blocks is visible to only guests and the other to members)

  • Author

The only issue is I want them to look and feel totally different. A sign on redirect would be better thanks

  • Community Expert

Adding some code in a block on the page to redirect if the user is logged in might work:

  • Guest => remains on the page

  • Logged-in member => Redirect to another page.

That would also take care of redirecting after a login. 🤔

  • Author

Sorry im not a tech expert please can you explain and the code. Would really appreciate the help

  • 1 month later...
  • Community Expert

@Julian Jenkins I completely forgot to post the code.

Here you go:

1) Create a Manual custom block in ACP using the Pages application.

2) In the block's content textarea, paste this code:

{{if member.member_id AND !member.isAdmin()}}
    {{$redirectUrl = 'https://www.google.com/';}}
    {{\IPS\Output::i()->redirect( \IPS\Http\Url::external( $redirectUrl ) );}}
{{endif}}

Update the $redirectUrl variable from Google's URL to whatever you need.

3) Edit your landing page and include the newly created block.

===

When a member lands on the page, they will be redirected to the URL you entered.

I've also added a check to NOT redirect admins so you can still check how the landing page looks even while logged in.

Recently Browsing 0

  • No registered users viewing this page.