The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
haha got the redirect working right - 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: haha got the redirect working right (/showthread.php?tid=485) Pages:
1
2
|
haha got the redirect working right - raven - 03-02-2017 alright after making a custom redirect script lol i have another question now the users name at the top is there a way to script that so if they have the proper permissions it will redirect to the correct user page vs the generic user page http://prntscr.com/ef5127 haha got the redirect working right - mudmin - 03-02-2017 You could handle that one of 2 ways...either you could edit navigation.php (which could get written with updates), or the better way to do it would be to copy the default account page over to usersc/account.php, change the init to ../users/init.php at the top of that page. Then just below that, write a script to redirect people to the right place based on permissions just like you did for the other thing. In this situation, it would try to send them to the account.php but they would immediately be redirected. They won't even notice. haha got the redirect working right - mudmin - 03-02-2017 You could handle that one of 2 ways...either you could edit navigation.php (which could get written with updates), or the better way to do it would be to copy the default account page over to usersc/account.php, change the init to ../users/init.php at the top of that page. Then just below that, write a script to redirect people to the right place based on permissions just like you did for the other thing. In this situation, it would try to send them to the account.php but they would immediately be redirected. They won't even notice. haha got the redirect working right - raven - 03-02-2017 hm seems simpleenough i was tinkering with setting the navigation to redirect it to the custom script and it just sorta crashed lol ill try that second one out seems simpler in the end haha got the redirect working right - mudmin - 03-02-2017 Yeah. I do that on a lot of my apps. It works well and I don't even notice it. haha got the redirect working right - raven - 03-02-2017 that was super simple i like that lol so if i was to say abandon all your ready made pages i just copy that head code for the that i edited the require once part to any page i want i was debating about redoing the majority of the pages so i could add in iframes for the side fixed menu and top header haha got the redirect working right - raven - 03-02-2017 weird i get a redirect error for too many redirects for anything but admin ... werid haha got the redirect working right - raven - 03-03-2017 hah solved it lol probally not at all right but it stoped with the redirect to many times i added my admin redirect to the account page in users and it works just fine now strange haha got the redirect working right - mudmin - 03-03-2017 Yeah. It sounds like you were redirecting somewhere that the user did not have permission to go, so it was redirecting back. haha got the redirect working right - raven - 03-03-2017 trial and error is the best way to learn i think |