need help with login module nuke 6.9

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   need help with login module nuke 6.9
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
right now when members log in to my site it goes directly to "your account"
can someone tell me what file i need to edit, and where in it, to have it go to the main page(index.php) after loging in??

also, the theme I have chosen (anagram) is designed for 1024x768 and above; if someone is using 800x600 it has a scroll bar for side to side-- is there a code i can insert somewhere to have it resize itself for different resolutions

note: I was able to do some editing to get the index page to fit properly, but it didnt carry to the forums, i couldnt tell where or what to edit for that-

the site is here-->> [ Register or login to view links on this board.] if ya wanna see what I mean

update*** I no longer need help with resizing for my forums-- I ended up removing the side blocks for that page, a much better solution for me--
thanks!!



thanks in advance!! ---Turbo




_________________
Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
The login function is in the Your_Account/index.php the mode redirect is also in thier around line 820

if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
       Header("Location: modules.php?name=$module_name&stop=1");
       die();
   } else {
       docookie($setinfo[user_id], $username, $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
       $uname = $_SERVER["REMOTE_ADDR"];
       $db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$uname' AND guest='1'");
   }
   if ($pm_login != "") {
            Header("Location: modules.php?name=Private_Messages&file=index&folder=inbox");
       exit;
   }
        if ($redirect == "" ) {
            Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&username=$username");
        } else if ($mode == "") {
            Header("Location: modules.php?name=Forums&file=$forward");
        } else if ($t !="")  {
            Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&t=$t");
        } else {
            Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&f=$f");
   }
    } else {
   Header("Location: modules.php?name=$module_name&stop=1");
    }
}


Theres a few in there for the forums and private messages the ones you want are the modules.php?name=$module_name&stop=1 change those the index.php.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
it didnt work the way I interpeted your intructions--

im changing this in the index.php of the "your account module"--

from ("Location: modules.php?name=$module_name&stop=1");

to----("Location: index.php");

shouldnt there be more than just index.php in that line??

thx--



Back to top Reply with quote
#4   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Sorry i wasnt sure what you meant now i see find in the function login the following


if ($redirect == "" ) {
            Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&username=$username");


change that to:

if ($redirect == "" ) {
            Header("Location: index.php");


Tested!



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
works perferct--- thanks a bunch!!

that was driving me nuts---

Turbo




_________________
Back to top Reply with quote
#6   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Great! Glad I could help.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum