Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Redirect on Sign-up (http://www.mysidiaadoptables.com/forum/showthread.php?t=5453)

aquapyrofan 05-26-2017 12:36 PM

Redirect on Sign-up
 
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):
PHP Code:

    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.


All times are GMT -5. The time now is 09:13 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.