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: http://fc03.deviantart.net/fs71/f/20...as-d8e0rq1.gif (The online users count won't update until you visit another page, btw?) |
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! |
Quote:
|
Thanks! I bookmarked the site for when i need to use it!
|
I love you <3 I wanted to do this <3
|
Thanks very much! Modding my script is becoming enticing :o :happyc:
|
It doesn't seem to work for me. The logout button seems to still take me to a "/login/logout" page
|
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. :veeee:
|
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. |
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. |
All times are GMT -5. The time now is 10:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.