Hello again,
How can I change a theme so that after a users logs in it goes to Home instead of Your Account.
I find this very annoying.
Thanks from England
Paul
Hi Paul,
in Y_A 5.5 from our vkp please look near line 666 for Header("Location:
(its the function login)
if you type in there the index.php the user always start at Home after login.
I think you mean this, or not?
Hi Yes this is exactly what I mean, but the line you mention is not at 666 can you give me a longer string to search for as there are many entries for:
Header("Location:
Thank you very much
Paul
These are my lines 584 to 606:
function login($uname, $pass) {
global $setinfo, $user_prefix, $dbi;
$result = sql_query("select pass, uid, storynum, umode, uorder, thold, noscore, ublockon, theme, commentmax from ".$user_prefix."_users where uname='$uname'", $dbi);
$setinfo = sql_fetch_array($result, $dbi);
if ((sql_num_rows($result, $dbi)==1) AND ($setinfo[uid] != 1) AND ($setinfo[pass] != "")) {
$dbpass=$setinfo[pass];
$non_crypt_pass = $pass;
$old_crypt_pass = crypt($pass,substr($dbpass,0,2));
$new_pass = md5($pass);
if (($dbpass == $non_crypt_pass) OR ($dbpass == $old_crypt_pass)) {
sql_query("update ".$user_prefix."_users set pass='$new_pass' WHERE uname='$uname'", $dbi);
$result = sql_query("select pass from ".$user_prefix."_users where uname='$uname'", $dbi);
list($dbpass) = sql_fetch_row($result, $dbi);
}
if ($dbpass != $new_pass) {
Header("Location: modules.php?name=Your_Account&stop=1");
return;
}
docookie($setinfo[uid], $uname, $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&uname=$uname");
} else {
Header("Location: modules.php?name=Your_Account&stop=1");
}
I notice 2 instances of Header("Location:
Which one do I change to send user to index.php after login
Also what do I change the line to?
Thanks again
Paul[Bearbeitet am: 14/5/2002 von PaulK]
Hi Paul :)
you must change this line:
ZitatHeader("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&uname=$uname");
to:
ZitatHeader("Location: index.php");
greetings.....
cu Andi
Hello Andi
Thank you for looking after me again.
IT WORKED 1ST TIME !!
Hope Germany has better weather than England at the moment
Paul
[Bearbeitet am: 14/5/2002 von PaulK]