PDA

View Full Version : How can i make this ?


Dondxon
07-24-2012, 09:18 PM
alright.

so people can now login from a page which is not from the forums it self, thats good!

but,

if they click the submit button, under the username and password they will be redirected to the homepage. and there they say thank you for loggin in and than they redirect you to the forums.

how can i prevent that?

if people login, i would like to have it than that the page where they login from refreshes and that they immediately see that they have logged in without being redirected to the forums first .

also, how can i make a logout? that works for everyone.
Look, if i want to logout on my profile i have to go to this link: http://prntscr.com/cmtkh

but if i just go to www.syndromeex.com/vb/login.php?do=logout it says this: http://prntscr.com/cmtqa

so basically, how can i make people loggout without the hash behind it??
and if you use it, that it doesnt redirect you to the forums.

if sum1 can help me with this, i would be really thankful to him.

love,
Dondxon.

Dondxon
07-26-2012, 08:22 AM
Help me :3

Lynne
07-26-2012, 03:51 PM
If you have a custom page and users login via it, then in your php code you need to define where they end up after they login. If you are using the standard login.php page from vbulletin, then look up the function do_login_redirect to see how it works and what you need to do to redirect back to your custom page (I believe it looks up the location of the user in the session table, so you will need to make sure that your user has a valid session and your page location is set correctly).

Dondxon
07-28-2012, 09:25 AM
i think i cant figure it out. ive been looking 1 hours to the codes and i just cant understand it. there is just 1 line with do_login_redirect(); thats it.

Lynne
07-28-2012, 04:21 PM
Did you look up the function do_login_redirect ? That is in functions_login.php

nodofollow
08-07-2012, 06:20 PM
Can you share the code for us ?