Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2017, 12:36 PM
aquapyrofan aquapyrofan is offline
Member
 
Join Date: Apr 2017
Posts: 48
Gender: Unknown/Other
Credits: 8,245
aquapyrofan is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 05-26-2017, 04:50 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 63,636
Dinocanid is on a distinguished road
Default

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.
__________________

Last edited by Dinocanid; 05-26-2017 at 04:55 PM. Reason: WOOPS I messed up. it needs to be in an if statement
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:48 AM.

Currently Active Users: 455 (0 members and 455 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636