Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • harikjr88 Friend
    #151745

    How can I make a login link/button that RETURNS to the SAME page the user was on after loggining in???

    Because it’s pointless if some browses your site and they need to login at a point, and then all of a sudden it directs them to the homepage of my website..

    Please help.. What’s the PHP query (return url) for the same url the user was on before logging in?

    Also.. What changes do I need to make in the core to change the default ogin page so it would direct to the page the user was on after logging in and not to the homepage?

    uniquebiz Friend
    #346793

    harikjr88;182495How can I make a login link/button that RETURNS to the SAME page the user was on after loggining in???

    Because it’s pointless if some browses your site and they need to login at a point, and then all of a sudden it directs them to the homepage of my website..

    Please help.. What’s the PHP query (return url) for the same url the user was on before logging in?

    Also.. What changes do I need to make in the core to change the default ogin page so it would direct to the page the user was on after logging in and not to the homepage?

    I’d search the JED for a login module to suit, I know in Zeolite II with Virtuemart I have the virtuemart login module that allows parameter to direct login to frontpage, or page where user filled out the login form, logout can be controlled to a different page etc

    Blessings Shannon

    harikjr88 Friend
    #346812

    Sorry, that’s not the best answer and searching the JED is no help. This has nothing to do with modules/plugins. Read my question. It’s supposed to be IN THE article..

    uniquebiz Friend
    #346815

    harikjr88;182519Sorry, that’s not the best answer and searching the JED is no help. This has nothing to do with modules/plugins. Read my question. It’s supposed to be IN THE article..

    Where in your question does it say MUST be in the article I see no reference to articles at all just login buttons,

    Originally Posted by harikjr88
    How can I make a login link/button that RETURNS to the SAME page the user was on after loggining in???

    Because it’s pointless if some browses your site and they need to login at a point, and then all of a sudden it directs them to the homepage of my website..

    Please help.. What’s the PHP query (return url) for the same url the user was on before logging in?

    Also.. What changes do I need to make in the core to change the default ogin page so it would direct to the page the user was on after logging in and not to the homepage?

    so mistakenly I figured if you are familiar with coding a trip to the VM login module may give you the code clues to do what you needed.

    Not the best answer
    , of course not! I am not a JA programmer just a dumb sod who spends time trying to help others here. Only to get pissed on by impatient bods who think ja and all in it owe them explanations OR programming hacks and customised code cause they have brought a ja template and want it highly customised but don’t have a clue how to do it , joomlancers has programmers, spend a dollar and get someone to do it for you.

    Instead of getting grumpy cause my solution wasn’t the BEST ANSWER and my magic wand didn’t suddenly make what you wanted and attached it to your site for you.

    Shall a JA representative or forum member come over and make your tea and clean the house too 🙂 since your a member? I think not

    harikjr88 Friend
    #347419

    Alright dumb sod, I didn’t need your explanation..

    <em>@uniquebiz 182522 wrote:</em><blockquote>Where in your question does it say MUST be in the article I see no reference to articles at all just login buttons,

    so mistakenly I figured if you are familiar with coding a trip to the VM login module may give you the code clues to do what you needed.

    Not the best answer
    , of course not! I am not a JA programmer just a dumb sod who spends time trying to help others here. Only to get pissed on by impatient bods who think ja and all in it owe them explanations OR programming hacks and customised code cause they have brought a ja template and want it highly customised but don’t have a clue how to do it , joomlancers has programmers, spend a dollar and get someone to do it for you.

    Instead of getting grumpy cause my solution wasn’t the BEST ANSWER and my magic wand didn’t suddenly make what you wanted and attached it to your site for you.

    Shall a JA representative or forum member come over and make your tea and clean the house too 🙂 since your a member? I think not</blockquote>

    uniquebiz Friend
    #347423

    harikjr88;183281Alright dumb sod, I didn’t need your explanation..

    Yawn, ho hum

    fernando123 Friend
    #348667

    Before redirect to login page use the values of ‘$_SERVER[‘REQUEST_URI’]’ or ‘$uri = JFactory::getURI();’ in session and after login change line 151 in file components/com_user/controller.php to redirect to the page that we have in session and clear the session values 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 3 voices, and was last updated by  fernando123 14 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum