Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 48
0 members and 48 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
The Lyric Archive
Dining Room Furniture

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
Redirect to Your Account!
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jan 2005
Redirect to Your Account! - 05-11-2005, 11:54 AM

Hi!
I have some PHPNuke websites running and there was one thing that I have altered in some of them but can remember how to...

When you login at the site you're redirected to "Your Account". I want to login and go straight to the first side (index.php) instead. Does anyone know how to alter this?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Member
 
Status: Offline
Posts: 450
Join Date: Jul 2004
05-11-2005, 03:36 PM

Whatever login block your using open it and find a line similar to the following

<form action=\"modules.php?name=Your_Account\" method=\"post\">

edit the link "modules.php?name=Your_Account" to just "index.php" that should do it ?


What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jan 2005
05-12-2005, 01:25 PM

Hmm... That didn't work in "User Info" block. But I found it out... Instead of editing the various login blocks do this:

Open index.php from the modules/Your_Account directory and find the following code within the login function (around line 830 in Nuke 7.6 - this may vary, but look for the login function)


Code:
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");


Change this line ...

Code:
if ($redirect == "" ) { 
            Header("Location:modules.php?name=Your_Account&op=userinfo&bypass=1&username=$username");
Edit the URL to take members to another page upon login.
Remove modules.php?name=Your_Account&op=userinfo&bypass=1 &username=$username and replace it with the URL of your choosing.

This works great... :wink:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Administrator Account Hughie Site design 4 10-13-2004 01:05 PM
[FIX] Wrong url after search for "redirect" anor Other "stuff" 0 07-06-2003 06:01 PM
Your account pics Evil Purged Topics 2 02-27-2003 07:58 AM
HELP !!! cannot create account by using Admin account anht1706 Purged Topics 1 01-18-2003 01:33 AM
New your account graphics Martin Open topics 6 11-22-2002 03:44 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31