Im currently trying to redirect a user to a different page if there is an error during the registration process like typing a username or an email already in use. The file im editing is a php file and i have copied the code of that file into a text file, heres the link to it http://designstattoono1.com/foreveracesample/components/com_user/controller.txt The coding is in here, i think editing the registration function is the answer to this but not sure where to edit. cheers
You can see some code like $mainframe->redirect( $return ); You can make use of this to redirect to the page you want based on your requirement. $return here will be the page to which you need redirection say If you are trying to redirect to a page error.php code can be like this $return = "error.php"; $mainframe->redirect( $return ); Code (markup): Alternatively you can make use of php's redirect using header function like $return = "error.php"; header("Location:".$return); PHP: