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 03-09-2013, 05:09 PM
Empress_Swanbottom's Avatar
Empress_Swanbottom Empress_Swanbottom is offline
Member
 
Join Date: Feb 2013
Posts: 48
Gender: Female
Credits: 7,364
Empress_Swanbottom is on a distinguished road
Default Redirect after login

I was wonder if there was a way to make it so that after someone logs in, the page will redirect to the home page after say... a five second wait. I found things for redirect with wait, but they all say that you can't have anything in the PHP file or else it won't work. Can anybody help me?
__________________
Sorry about all the questions... :( I'm starting to feel like a total nuisance, but I am trying to find them in Google before I post them.

Last edited by Empress_Swanbottom; 03-09-2013 at 05:14 PM.
Reply With Quote
  #2  
Old 03-09-2013, 09:25 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,865
Hall of Famer is on a distinguished road
Default

umm what error messages do you get after redirecting users? Id like to see what I can do to help you with this issue.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 03-09-2013, 09:45 PM
Hedgen's Avatar
Hedgen Hedgen is offline
Member
 
Join Date: Oct 2012
Posts: 36
Gender: Male
Credits: 4,805
Hedgen is on a distinguished road
Default

I edited login.php right after this comment: // Validation succeeded, now begins the actual login procedure

to include this html code:
HTML Code:
<head>
<meta http-equiv='refresh' content='5; URL=http://touhouables.elementfx.com/index.php'>
</head>
so my new php code is this:

PHP Code:
// Validation succeeded, now begins the actual login procedure
         
         
$mysidia->page->settitle($lang->success_title);
         
$mysidia->page->addcontent("<head>
                         <meta http-equiv='refresh' content='5;
                          URL=http://touhouables.elementfx.com/index.php'>
                          </head>
                          Welcome back 
{$mysidia->input->post("username")}{$lang->success}");
         
         
$mysidia->user->login($mysidia->input->post("username")); 
Change "URL=http://touhouables.elementfx.com/index.php" to your site, and "content='5;" to how long you want it to wait in seconds.

Edit: I'm sure this will also work for the log off page, but haven't tried yet. I'll try right now though I'm sure it will work.

Edit2: For logout.php, I edited:

PHP Code:
  $mysidia->page->addcontent($lang->default); 
to

PHP Code:
  $mysidia->page->addcontent("<head>
            <meta http-equiv='refresh' content='5; URL=http://touhouables.elementfx.com/index.php'>
            </head>"
$lang->default); 
and it worked.

Last edited by Hedgen; 03-10-2013 at 04:25 AM.
Reply With Quote
  #4  
Old 03-09-2013, 09:57 PM
Empress_Swanbottom's Avatar
Empress_Swanbottom Empress_Swanbottom is offline
Member
 
Join Date: Feb 2013
Posts: 48
Gender: Female
Credits: 7,364
Empress_Swanbottom is on a distinguished road
Default

Thanks so much, Hedgen!!
__________________
Sorry about all the questions... :( I'm starting to feel like a total nuisance, but I am trying to find them in Google before I post them.
Reply With Quote
  #5  
Old 03-09-2013, 10:10 PM
Hedgen's Avatar
Hedgen Hedgen is offline
Member
 
Join Date: Oct 2012
Posts: 36
Gender: Male
Credits: 4,805
Hedgen is on a distinguished road
Default

Anytime Now to keep trying to figure out how to get the profile picture to show up XD
Reply With Quote
  #6  
Old 06-02-2020, 12:07 AM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 26,522
Micolai is on a distinguished road
Default

I'm a little confused where exactly in login.php I add the code to or what bit is changing? I'm wanting the logged in user to be redirected to their profile page.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion
Reply With Quote
  #7  
Old 06-02-2020, 11:42 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,252
SilverDragonTears is on a distinguished road
Default

Then you would just change the refresh url to yoursite.com/myadopts
__________________

Check out SilvaTales
Reply With Quote
  #8  
Old 06-02-2020, 11:45 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,252
SilverDragonTears is on a distinguished road
Default

ohhh I see what you're saying. These are all old posts and the new Mys 1.3.4 is different. I'm having issues with it myself.
__________________

Check out SilvaTales
Reply With Quote
  #9  
Old 06-02-2020, 02:20 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 26,522
Micolai is on a distinguished road
Default

Quote:
Originally Posted by SilverDragonTears View Post
ohhh I see what you're saying. These are all old posts and the new Mys 1.3.4 is different. I'm having issues with it myself.
Yes, exactly. I'm running into this issue quite a bit lol.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion
Reply With Quote
  #10  
Old 06-03-2020, 08:40 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,069
kristhasirah
Default

if you still have problems with the redirec you can go here:
http://mysidiaadoptables.com/forum/s...ead.php?t=4761
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mys v1.3.4 Seamless Login/Logout Redirect to Index Kyttias Mys v1.3.x Mods 13 06-03-2020 10:13 AM
AdminCP Redirect Not Working Abronsyth Questions and Supports 6 07-01-2014 09:49 AM
Certain Pages Redirect? Brookreed Questions and Supports 11 08-19-2013 01:12 AM
New Users auto redirect to page mapleblade Mys v1.2.x Mods 6 02-09-2012 09:47 AM
Redirect to Previous Page after Login/Logout fadillzzz Mys v1.1.x Mods 6 02-02-2011 05:24 PM


All times are GMT -5. The time now is 08:04 AM.

Currently Active Users: 663 (0 members and 663 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