Redirect on Sign-up

Forum
Last Post
Threads / Messages

aquapyrofan

Member
Member
Joined
Apr 22, 2017
Messages
48
Points
0
Mysidian Dollar
5,119
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?
 
Inside registerview.php, you could change public function index() to this (assuming it is unedited):
PHP:
	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.
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top