The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
not_logged_in $dest - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29) +--- Thread: not_logged_in $dest (/showthread.php?tid=726) |
not_logged_in $dest - Brandin - 09-07-2017 Hello, How can I use the not_logged_in.php script to redirect to a page in usersc called landing and have the dest? I want to use the landing in place of the registration and login pages, but I need the dest passed over. I had this: Code: Redirect::to('/usersc/landing.php?dest='.$dest) not_logged_in $dest - mudmin - 09-08-2017 I guess thinking about it, the Redirect message on line 434 of us helpers (in v4.3) should probably be (have been) in the not_logged_in script. I'm guessing we wouldn't have a problem moving that safely as long as we notify people during the upgrade in case they've modified it. not_logged_in $dest - Brandin - 09-08-2017 Sounds good to me - let me know if you are planning on doing this or not so I can deploy it in my project if you aren't going to. not_logged_in $dest - mudmin - 09-08-2017 I'll do it. It would be a pain to have to keep patching manually for every update of us_helpers. not_logged_in $dest - Brandin - 09-16-2017 @Mudmin This was what we wanted to do with the login function I think (you had emailed me) not_logged_in $dest - mudmin - 09-16-2017 Ok. Sweet. I'll take a look. Thanks! not_logged_in $dest - mudmin - 09-16-2017 I don't think a change is needed there. If yo go into the blank not_logged_in.php page, you can do Code: dnd($page); And you will have access to the page the person was trying to go to. So you can do Code: $dest = sanitizedDest($page); Code: Redirect::to('/usersc/landing.php?dest='.$dest) Is that what you were trying to do? |