The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Redirection after Login

View previous topic View next topic Go down

Solved Redirection after Login

Post by vampirakos on 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!

vampirakos
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

Solved Re: Redirection after Login

Post by FL.ux on 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. .

FL.ux
Forumember

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

Back to top Go down

Solved Re: Redirection after Login

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

Not solved yet! Please help!

vampirakos
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

Solved Re: Redirection after Login

Post by RoNo on 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"




Example: Invision forum "login to inbox" widget
[click]


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>



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>



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>

RoNo
Active Poster

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

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Redirection after Login

Post by LGforum on 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' />"; }
});

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Redirection after Login

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

Thanksa a lot!
Solved!

vampirakos
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

Solved Re: Redirection after Login

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

@vampirakos wrote:Thanksa a lot!
Solved!

Topic Solved & Locked





SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum