Forum

Thread tagged as: Question, Members

Members Login Link

Hello,

I would like it when a member logs in from the home page via the log in form, for them to be sent to their profile page.

Where could I add the link for that to happen?

<perch:member logged-in="true"> 

    <p>Hi <perch:member id="first_name" />, you are logged in</p>

<perch:else:member />

    <perch:form id="login" method="post" app="perch_members">
        <fieldset>
            <legend>Log in</legend>

            <perch:error for="all" type="login">
                <p class="error">Those details do not match our records.</p>
            </perch:error>

            <div>
                <perch:label for="email">Email</perch:label>
                <perch:input type="email" id="email" required="true" label="Email" />
                <perch:error for="email" type="required">Required</perch:error>
                <perch:error for="email" type="format">Check format of address</perch:error>
            </div>
            <div>
                <perch:label for="password">Password</perch:label>
                <perch:input type="password" id="password" required="true" label="Password" />
                <perch:error for="password" type="required">Required</perch:error>
            </div>
            <div>
                <perch:input type="submit" id="submit" value="Log in" />
                <perch:input type="hidden" id="r" />

                <p>Forgotten your password? <a href="/members/reset.php">Reset it now</a>.</p>
            </div>

        </fieldset>

    </perch:form>

</perch:member>

Many Thanks

Gary Thompson

Gary Thompson 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That would go in the first section where it says "you are logged in"

Do you mean like this?

<perch:member logged-in="true" href="https://mysite.co.uk/profile"> 
Drew McLellan

Drew McLellan 2638 points
Perch Support

No, just a regular link.

<a href="https://mysite.co.uk/profile">Profile</a>