Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
How can i move the user after login to the MAIN page?
  • Posted: 14.10.2003, 20:10
     
    darrylb
    rank:
    Helper Helper
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.06.06
    Posts:
    153
    Ok hopefully a simple question. When the user logs in, it takes them to the "Your Account" page. How can i get it to move them to the index and not this?

    Thanks!
  • Posted: 15.10.2003, 08:30
     
    MovingTarget
    rank:
    Softmore Softmore
    registered:
     June 2003
    Status:
    offline
    last visit:
    24.08.04
    Posts:
    56
    If you log in via the User login block, it sends you to the same page you were on when you clicked on the Login button after filling out your username and passowrd. If you go throught the "Your Account" link, it does what you say it does (Unless you have added a user hack, such as xuser).

    You could either disable logging in via the Your Account Link (too much hassle and probably not something you want to do) or I am pretty sure you can edit the link in the user.php file (in your modules/NS-User/ folder somewhere around the 317 line)

    Im not 100% sure becasue I have a few hacks on mine so I was looking at the original PostNuke phoenix-0.7.2.3 files so if you have a different version, it may be a little off.

    Hope this helped.

    Moving Target
  • Posted: 15.10.2003, 18:09
     
    darrylb
    rank:
    Helper Helper
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.06.06
    Posts:
    153
    Sadly, it didnt. I was not able to find anything that would work....
  • Posted: 15.10.2003, 21:05
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534
    Which version are you using?
  • Posted: 16.10.2003, 18:13
     
    darrylb
    rank:
    Helper Helper
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.06.06
    Posts:
    153
    Last version. Not this new one. .7.2.3 i think
  • Posted: 16.10.2003, 18:26
     
    marcolinux
    rank:
    Freshman Freshman
    registered:
     March 2003
    Status:
    offline
    last visit:
    07.10.08
    Posts:
    17
    you've got to edit yr theme and add this line in the log-in form:

    <input type="hidden" name="url" value="/WhatYouWant.php" />

    bb,
    m
  • Posted: 22.10.2003, 18:20
     
    darrylb
    rank:
    Helper Helper
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.06.06
    Posts:
    153
    I dont see where i would put that line, or why i would edit my theme. I looked over the theme.php and there are no login functions of any type...

    In the NS-User/user i attempted to take out like 267 which says

    Code

    ."<input type=\"hidden\" name=\"url\" value=\"".getenv("HTTP_REFERER")."\">\n";

    and i replaced it with

    Code

    ."<input type=\"hidden\" name=\"url\" value=\"index.php\">\n";


    But to no prevail...

    Thanks

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula