Redirection after Login Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
5 posters

    Redirection after Login

    avatar
    vampirakos
    New Member


    Posts : 8
    Reputation : 1
    Language : English

    Solved Redirection after Login

    Post by vampirakos January 8th 2012, 4:51 am

    Hello, i want to ask how i can redirect to Portal after login?
    Now after login redirects me to forum.
    I have done Setting in: Display->Generalities->General (The portal) but still redirects me after login to forum.

    Please help!
    Thanks!
    FL.ux
    FL.ux
    Forumember


    Male Posts : 841
    Reputation : 18
    Language : I hope I could be a FM staff :'(
    Location : I shall fly to the subterranean sky.

    Solved Re: Redirection after Login

    Post by FL.ux January 14th 2012, 7:27 am

    well i think you can't do that. . . after you log in it always bring you to the forum.. .

    well i don't know. .
    avatar
    vampirakos
    New Member


    Posts : 8
    Reputation : 1
    Language : English

    Solved Re: Redirection after Login

    Post by vampirakos January 15th 2012, 8:37 pm

    Not solved yet! Please help!
    RoNo
    RoNo
    Active Poster


    Male Posts : 1270
    Reputation : 135
    Language : English
    Location : Laguna Beach, California

    Solved Re: Redirection after Login

    Post by RoNo January 16th 2012, 3:21 am

    vampirakos wrote:Hello, i want to ask how i can redirect to Portal after login?
    Now after login redirects me to forum.
    I have done Setting in: Display->Generalities->General (The portal) but still redirects me after login to forum. Please help! Thanks!

    You can redirect to the portal by using 2 login widgets...

    Create a second (copy) Login widget with permissions
    set to "Guests" and a redirect link like this:
    form action="/login.forum?redirect=portal"

    Set the default Login widget permissions to
    "Administrators, Moderators, Members"

    Redirection after Login Loginredirect1


    Example: Invision forum "login to inbox" widget
    [click]
    Redirection after Login Th_loginredirect2


    Redirection after Login Widget_rights1
    Code:
    <center><div class="box-content ipbform"><form action="/login.forum?redirect=/privmsg?folder=inbox" rel="nofollow" method="post"><fieldset><dl><dt><label for="username">Username:</label></dt><dd><input tabindex="1" name="username" id="username" size="15" maxlength="40" value="" class="inputbox autowidth" type="text"></dd></dl><dl><dt><label for="password">Password:</label></dt><dd><input tabindex="2" id="password" name="password" size="15" maxlength="25" class="inputbox autowidth" type="password"></dd><dd class="forgot-pwd"><a href="href="/profile.forum?mode=sendpassword" rel="nofollow">I forgot my password</a></dd></dl><dl><dd><label for="autologin"><input name="autologin" id="autologin" tabindex="4" class="checkbox" checked="checked" type="checkbox"> Auto Log On</label></dd></dl><fieldset class="formbuttonrow"><input name="login" tabindex="6" value="Log in" class="button" type="submit"></fieldset></fieldset></form></div></center>

    Redirection after Login Robrk410

    Phpbb2 forum login widget (redirects to portal)
    Use a table type: Yes
    Code:
    <form action="/login.forum?redirect=portal" method="post"><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td align="left" width="55%"><span class="gen">Username:</span></td><td style="position:relative;padding-right:5px;"><input type="text" name="username" value="" size="20" maxlength="40" style="width:100%;" /></td></tr><tr><td align="left"><span class="gen">Password:</span></td><td style="position:relative;padding-right:5px;"><input type="password" name="password" size="20" maxlength="32" style="width:100%;"></td></tr><tr align="center"><td colspan="2"><span class="gen">Log me on automatically at each visit: <input type="checkbox" name="autologin" checked="checked"></span></td></tr><tr align="center"><td colspan="2"><input class="mainoption" type="submit" name="login" value="Log in"></td></tr><tr align="center"><td colspan="2"><span class="gensmall"><a class="gensmall" href="/profile?mode=sendpassword" rel="nofollow">:: I forgot my password</a></span></td></tr></table></form>

    Redirection after Login Robrk410

    Phpbb3 forum login widget (redirects to portal)
    Use a table type: Yes
    Code:
    <form action="/login.forum?redirect=portal" method="post"><fieldset class="fields1"><dl><dt><label for="username">Username:</label></dt><dd><input tabindex="1" name="username" id="username" size="20" maxlength="40" value="" class="inputbox autowidth" type="text"></dd></dl><dl><dt><label for="password">Password:</label></dt><dd><input tabindex="2" id="password" name="password" size="20" maxlength="25" class="inputbox autowidth" type="password"></dd><dd><a href="/profile.forum?mode=sendpassword" rel="nofollow">I forgot my password</a></dd></dl><dl><dd><label for="autologin" style="display: inline; white-space: normal;"><input name="autologin" id="autologin" tabindex="4" class="checkbox" checked="checked" type="checkbox"> Log me on automatically at each visit</label></dd></dl><dl><dt> </dt><br><dd><input name="login" tabindex="6" value="Log in" class="button1" type="submit"></dd></dl></fieldset></form>
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Redirection after Login

    Post by LGforum January 16th 2012, 12:54 pm

    Or this small bit of javascript will do it to the log in pages:

    Code:

    $(function() {
     var form=document.forms['form_login'];
     if (form.redirect) { form.redirect.value="/portal"; }
     else { form.innerHTML+="<input name='redirect' type='hidden' value='/portal' />"; }
    });
    avatar
    vampirakos
    New Member


    Posts : 8
    Reputation : 1
    Language : English

    Solved Re: Redirection after Login

    Post by vampirakos January 18th 2012, 5:48 pm

    Thanksa a lot!
    Solved!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Redirection after Login

    Post by SLGray January 19th 2012, 3:02 am

    vampirakos wrote:Thanksa a lot!
    Solved!

    Topic Solved & Locked