The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Status Update 003 - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Status Update 003 (/showthread.php?tid=664) |
Status Update 003 - mudmin - 08-06-2017 I added a bunch of Brandin's functions which will work for these and a few of his mods. Everything seems to be working except the checkbox to force reauth. I also need to see what happens if you try to add reauth to a page outside the users folder. This build requires the latest db in the download. Status Update 003 - Brandin - 08-06-2017 Mudmin, I have folders outside of users folder (usersc and my other folders /templates /cron etc) and everything works fine. Thank you! Status Update 003 - mudmin - 08-06-2017 Awesome! Good to know. Status Update 003 - Brandin - 08-06-2017 Changes I made to this build: -Added nounderline text dec to custom.css or another CSS file you put your own stuff in - or you can call it on the messages section directly, but I think it looks nicer everywhere http://pasted.co/860a150e -Changed line 167 to account for users that are not logged in. Code: if ($user->isLoggedIn()) { (!reAuth($_SERVER['PHP_SELF'],$user->data()->id)); } ReAuth Fix!!! After empty private ~ line 47 add: http://pasted.co/4b9f9e6e You also need the language keys for this from the DP (PAGE_REAUTH_TOGGLED) Status Update 003 - Brandin - 08-06-2017 You also should modify the private toggle when toggled to 0 ~ line 65 you should run this too: Code: (updateReAuth($pageId, 0)) Status Update 003 - mudmin - 08-06-2017 Sorry. My brain hurts. What file am I supposed to modify with those changes? I added the css stuff to the bootstrap_corrections file so it is loaded everywhere. Thanks so much for your help Status Update 003 - Brandin - 08-06-2017 That's okay! I should have put that I'm sorry! Code: header.php Code: if ($user->isLoggedIn()) { (!reAuth($_SERVER['PHP_SELF'],$user->data()->id)); } ReAuth fixes are both on Code: admin_page.php http://pasted.co/4b9f9e6e Around line 65 ~ where you toggle private to 0, after it runs you want to: Code: (updateReAuth($pageId, 0)) Status Update 003 - mudmin - 08-06-2017 Sorry. Still not understanding the line 65 part. Can you paste the entire //Toggle reauth setting snippet? I'm dense on those things. Status Update 003 - Brandin - 08-06-2017 Replace Toggle Private Page Setting ~ line 54 with: http://pasted.co/e6a3272b Status Update 003 - mudmin - 08-07-2017 Yep. That did the trick! Thanks! |