I'm using JomSocial and yes i have it as menu item, but why should that affect anything this redirect thing is calling com_user not com_community?Webdongle wrote:Have the login as a Module not a menu item
403 Page to Login Redirect
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
- fezzicnex
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Dec 18, 2008 1:57 pm
Re: 403 Page to Login Redirect
-
- Joomla! Intern
- Posts: 55
- Joined: Tue May 13, 2008 4:19 pm
Re: 403 Page to Login Redirect
jerryjurden wrote:Wow, this worked, thanks so much!
RANT: It's REDICULOUS that a product this mature does not do this by default! It's utterly absurd that I have to hack the code to make this behave the way it should!!!!!
No kidding.... 2011 and it's STILL the same.
-
- Joomla! Intern
- Posts: 67
- Joined: Thu May 22, 2008 1:40 pm
- Location: Philadelphia, PA
- Contact:
Re: 403 Page to Login Redirect
I got this to work for me just fine. Many, many thanks. However, how do I make layout changes to the login page? I don't seem to have any control over the modules that appear on that page, and I changes I make to the classes the default_login.php file, they are not reflected on the generated page.
Thanks for your help.
Thanks for your help.
- Webdongle
- Joomla! Master
- Posts: 44037
- Joined: Sat Apr 05, 2008 9:58 pm
Re: 403 Page to Login Redirect
If your Template has a Template override for the Login module then altering the core module output will have no effect.randy270 wrote:..... changes I make to the classes the default_login.php file, they are not reflected on the generated page.
.....
http://docs.joomla.org/Understanding_Output_Overrides
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Intern
- Posts: 67
- Joined: Thu May 22, 2008 1:40 pm
- Location: Philadelphia, PA
- Contact:
Re: 403 Page to Login Redirect
Thanks for the response.
I'm making changes to an override file. Still no change.
Still, I also need to know how to make modules appear on this page. One menu module appears, but the main menu module does not. I don't know which menu item to assign.
I'm making changes to an override file. Still no change.
Still, I also need to know how to make modules appear on this page. One menu module appears, but the main menu module does not. I don't know which menu item to assign.
- Webdongle
- Joomla! Master
- Posts: 44037
- Joined: Sat Apr 05, 2008 9:58 pm
Re: 403 Page to Login Redirect
The Default menu item.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Feb 16, 2011 8:01 am
Re: 403 Page to Login Redirect
All I can say is WOW!!! THAT WAS EASY!!!... I have not seen anyone who had luck in Joomla 1.6 so I though I would report that it works great and took less than 5 minutes to execute changes. Thank you so much!
P.S. I am not sure if it was supposed to but it already has a nice note to log in or register for access.
P.S. I am not sure if it was supposed to but it already has a nice note to log in or register for access.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Sun Jun 19, 2011 1:00 am
Re: 403 Page to Login Redirect
Hi theperf,
Did you try again with Joomla 1.6.3 ? I cannot get it work.
Thank you.
Did you try again with Joomla 1.6.3 ? I cannot get it work.
Thank you.
-
- Joomla! Apprentice
- Posts: 14
- Joined: Thu Aug 10, 2006 4:03 am
Re: 403 Page to Login Redirect
thanks drsassafras
the best solution i have ever had in this subject
thanks once again
the best solution i have ever had in this subject
thanks once again
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Jan 24, 2012 9:56 am
- Contact:
Re: 403 Page to Login Redirect
Is het possible that the file 'drsassafras' included, isn't accesseble anymore? The manual changes are ging me some other problems. After an change, I get a 500-error...
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Mar 15, 2012 3:28 pm
Re: 403 Page to Login Redirect
Hi. Do you have any idea about solution fot Joomla 2.5? Best Regards
-
- Joomla! Fledgling
- Posts: 4
- Joined: Fri Aug 26, 2011 11:07 am
Re: 403 Page to Login Redirect
The Joomla! 2.5 /components/com_user/views/login/tmpl/default_login.php file does not contain the following row anymore:
Instead it contains the following:
So, how can I change my code to redirect the 403 pages to the user login?
Thank you in advance.
Code: Select all
<input type="hidden" name="return" value="<?php echo $this->return; ?>" />
Code: Select all
<input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('login_redirect_url', $this->form->getValue('return'))); ?>" />
Thank you in advance.
-
- Joomla! Apprentice
- Posts: 27
- Joined: Sat Oct 24, 2009 7:06 pm
Re: 403 Page to Login Redirect
Looking for the same thing for Joomla 2.5 ? why cant developers make this by default.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat May 19, 2012 6:11 pm
Re: 403 Page to Login Redirect
Use jacarlinredirect - it is free plugin to redirect system messages
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Sep 15, 2012 1:42 am
Re: 403 Page to Login Redirect
thanks drsassafras, thanks damnpradeep
If someone want to redirect all 403 errors to login with code. Following the update of the code for joomla 2.5
Put in /yourtemplate/error.php
$ReferTo = $_SERVER['REQUEST_URI'];
$ReferTo = base64_encode($ReferTo);
if ($this->error->getCode() == '403') {
header('Location: ' . $this->baseurl . '/index.php?option=com_users&view=login&return='. $ReferTo); die();
}
If someone want to redirect all 403 errors to login with code. Following the update of the code for joomla 2.5
Put in /yourtemplate/error.php
$ReferTo = $_SERVER['REQUEST_URI'];
$ReferTo = base64_encode($ReferTo);
if ($this->error->getCode() == '403') {
header('Location: ' . $this->baseurl . '/index.php?option=com_users&view=login&return='. $ReferTo); die();
}
-
- Joomla! Intern
- Posts: 51
- Joined: Tue Oct 06, 2009 4:36 am
Re: 403 Page to Login Redirect
If someone want to redirect all 403 errors to login with code. Following the update of the code for joomla 2.5
Put in /yourtemplate/error.php
Code: Select all
$ReferTo = $_SERVER['REQUEST_URI'];
$ReferTo = base64_encode($ReferTo);
if ($this->error->getCode() == '403') {
header('Location: ' . $this->baseurl . '/index.php?option=com_users&view=login&return='. $ReferTo); die();
}
-
- Joomla! Intern
- Posts: 57
- Joined: Sun May 12, 2013 12:26 pm
Re: 403 Page to Login Redirect
If you have joomla 2.5?
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Jun 09, 2010 8:00 am
Re: 403 Page to Login Redirect
Fix for joomla 3 with this?