Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
Seamless Login/Logout Redirect to Index
login/logout redirectI can't believe I didn't figure this one out sooner! Inside view/loginview.php, inside each of the functions, add in this line before the $mysidia variable is set: (The online users count won't update until you visit another page, btw?)
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#2
|
||||
|
||||
Very interesting! Might make a use of this in my script!
Also, what do you use to make your gif's when you display your webpages? Ive seen some things like this on tumblr and was very interested in finding out!
__________________
|
#3
|
||||
|
||||
Quote:
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#4
|
||||
|
||||
Thanks! I bookmarked the site for when i need to use it!
__________________
|
#5
|
||||
|
||||
I love you <3 I wanted to do this <3
|
#6
|
|||
|
|||
Thanks very much! Modding my script is becoming enticing :o
|
#7
|
||||
|
||||
It doesn't seem to work for me. The logout button seems to still take me to a "/login/logout" page
__________________
Failing at being normal since 1990. |
#8
|
||||
|
||||
In the original post I left a spoiler tag. Open it up and paste the entire contents to replace the entire file? It appears I forgot to mention one also needs to place a header redirect inside the logout function a few lines down, as well. No one else mentioned this because they probably just replaced their entire file, I guess.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#9
|
||||
|
||||
I think I might just be an idiot. Or tired.
All fixed and working now. :D Doesn't even take me to that pointless /index page either.
__________________
Failing at being normal since 1990. |
#10
|
||||
|
||||
Does anyone know what the proper way to write the location when your site is installed into a subfolder?
header( "Location: /" ); will redirect me to the root of my site. (Which is not where my install of mysidia is located.) I tried header( "Location: subfolder/" ); but it only half works. When I login, it takes me to the correct page, but the url duplicates the subfolder. www.mysite.com/subfolder/subfolder When I logout, it duplicates the subfolder in the url so many times it breaks everything. |
Tags |
login, login redirect, redirect |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Redirect after login | Empress_Swanbottom | Questions and Supports | 10 | 06-03-2020 10:12 AM |
Mys v1.3.4 Index Page Mod (Use PHP inside Index!) | Kyttias | Mys v1.3.x Mods | 1 | 01-19-2015 10:49 PM |
Custom pages redirect to index | Vaporman87 | Questions and Supports | 6 | 02-21-2014 06:57 PM |
Login/Logout Error | tahbikat | Questions and Supports | 15 | 02-15-2014 10:26 AM |
Redirect to Previous Page after Login/Logout | fadillzzz | Mys v1.1.x Mods | 6 | 02-02-2011 05:24 PM |
What's New? |
What's Hot? |
What's Popular? |