PDA

View Full Version : Redirect on Sign-up


aquapyrofan
05-26-2017, 12:36 PM
I'm thinking my site needs a tutorial system, but I need a way to put users on the first page for it when they first create an account. How would I do this?

Dinocanid
05-26-2017, 04:50 PM
Inside registerview.php, you could change public function index() to this (assuming it is unedited):
public function index(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
if($mysidia->input->post("submit")){
$document->setTitle($this->lang->success_title);
$document->addLangvar($this->lang->success.$mysidia->input->post("username").$this->lang->success2);

$document->add(new Comment("<meta http-equiv='refresh' content='1;url=YOURURL' />"));

return;
}

I think changing the '1' to a higher number changes the amount of seconds before the redirect happens, just in case you want to show a message or something first.