-
AuthorPosts
-
June 11, 2010 at 11:18 pm #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 Frienduniquebiz
- Join date:
- February 2010
- Posts:
- 596
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 33
- Thanked:
- 156 times in 119 posts
June 11, 2010 at 11:26 pm #346793harikjr88;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
June 12, 2010 at 3:28 am #346812Sorry, 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 Frienduniquebiz
- Join date:
- February 2010
- Posts:
- 596
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 33
- Thanked:
- 156 times in 119 posts
June 12, 2010 at 4:04 am #346815harikjr88;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
June 18, 2010 at 12:50 am #347419Alright 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 Frienduniquebiz
- Join date:
- February 2010
- Posts:
- 596
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 33
- Thanked:
- 156 times in 119 posts
June 18, 2010 at 2:07 am #347423harikjr88;183281Alright dumb sod, I didn’t need your explanation..
Yawn, ho hum
July 1, 2010 at 1:59 pm #348667Before 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 🙂
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by fernando123 14 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum