#1
|
||||
|
||||
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 06:14 PM. |
#2
|
||||
|
||||
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. |
#3
|
||||
|
||||
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> PHP Code:
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:
PHP Code:
Last edited by Hedgen; 03-10-2013 at 05:25 AM. |
#4
|
||||
|
||||
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. |
#5
|
||||
|
||||
Anytime Now to keep trying to figure out how to get the profile picture to show up XD
|
#6
|
||||
|
||||
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 |
#7
|
||||
|
||||
Then you would just change the refresh url to yoursite.com/myadopts
|
#8
|
||||
|
||||
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.
|
#9
|
||||
|
||||
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 |
#10
|
||||
|
||||
if you still have problems with the redirec you can go here:
http://mysidiaadoptables.com/forum/s...ead.php?t=4761 |
|
|
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 11:13 AM |
AdminCP Redirect Not Working | Abronsyth | Questions and Supports | 6 | 07-01-2014 10:49 AM |
Certain Pages Redirect? | Brookreed | Questions and Supports | 11 | 08-19-2013 02:12 AM |
New Users auto redirect to page | mapleblade | Mys v1.2.x Mods | 6 | 02-09-2012 10:47 AM |
Redirect to Previous Page after Login/Logout | fadillzzz | Mys v1.1.x Mods | 6 | 02-02-2011 06:24 PM |
What's New? |
What's Hot? |
What's Popular? |