The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Status Update 031
#1
New SQL dump required.

Added {{hr}} in DB-driven nav for dropdowns

Changed the whole DB-driven nav to match the current format and style of the non DB-driven nav

Added {{username}} to the itemString prepare in the menus.php file

Added {{notifications}} and {{messages}} to the db-driven navbar

The navbar was using checkMenu on the ID of the nav item which was causing non-master users to see only menu items with IDs within their perm levels...e.g. menu ID 2 was showing up for non-master admins. I migrated the function to hasPerm and added the appropriate criteria which resolved the issue.

Had to repair the logic on admin_menu_item.php for permissions. There was no value attribute on the checkboxes which was causing the updates to be the Array ID which would be in order (e.g. 1, 2, 3) but if you selected Perm 0 and 2, it would add for 0 and 1 due to the array ID. I added a value and removed the array_keys.

There was no logic for checking permissions within a dropdown. It simply inherited whatever the dropdown was...I added user_id logic and checking from the database nav file into the menu helpers.

Added a show for both recapatchas on the admin panel for anyone within the master account.

I switched the nav back to match the Divs of the non-db driven nav so it works right with the bootstrap corrections and the msg box does not show up above the navbar.

I fixed the email_settings page there was no query so it was dying. I removed the redirect when you are not testing and fixed the error by adding isset(). I also added the errors and successes block.

Added PHP and HTML for notif_daylimit and added the notifications on/off setting. I didn't bother wrapping the settings but just rather did the button in the menu.

Added the custom file for settings on admin_user.php and added the checks to hide/show the button and put an example of the custom file.
  Reply
#2
And yes...I was feeling a little bit productive! Lol
  Reply
#3
Fantastic work.
  Reply
#4
Busy busy! So after these updates, what's left on our plate?
  Reply
#5
Join us in Discord @karsen and we can chat it up! I'm working on some stuff now - would be nice for us all to have a chat, Dan isn't around right now but I am sure he will be shortly.
  Reply
#6
Unfortunately I can't install Discord on my work computer so I'll have to make do with the phone app.
  Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)