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 010
#9
Here is my notifications class:
https://pastebin.com/B7B3xzen

navigation.php:
https://pastebin.com/Yp0zNwYQ

getNotifications.php (Ajax parser):
https://pastebin.com/VJ38bzwd

page_footer.php
https://pastebin.com/aETkyRLX

I did have an issue with the font colors on my end being white despite any css changes. I didn't immediately see any reason for it to happen. I also have a style change for the 'new' badge but wasn't sure where to put it. Maybe simply in a style tag right above the notifications modal?
Code:
.badge-notif {
Code:
font-size: 8px;
Code:
background: #245eb3;
Code:
}

A new notification can be added easily:
Code:
$notifications->addNotification($message, $id);

For example:
Code:
$msg = 'A new time off request requires approval. <a href="'.$us_url_root.'users/staff_timeoff_approval">Go to page</a>';
Code:
$notifications->addNotification($msg, $empId);
  Reply


Messages In This Thread
Status Update 010 - by mudmin - 08-30-2017, 02:07 PM
Status Update 010 - by Brandin - 08-30-2017, 04:05 PM
Status Update 010 - by Brandin - 08-31-2017, 12:42 PM
Status Update 010 - by mudmin - 09-01-2017, 12:44 PM
Status Update 010 - by mudmin - 09-01-2017, 12:45 PM
Status Update 010 - by Brandin - 09-01-2017, 02:15 PM
Status Update 010 - by karsen - 09-01-2017, 03:19 PM
Status Update 010 - by mudmin - 09-01-2017, 04:03 PM
Status Update 010 - by karsen - 09-01-2017, 05:59 PM
Status Update 010 - by Brandin - 09-01-2017, 09:43 PM
Status Update 010 - by karsen - 09-02-2017, 01:27 AM
Status Update 010 - by mudmin - 09-02-2017, 12:41 PM
Status Update 010 - by Brandin - 09-02-2017, 03:07 PM
Status Update 010 - by karsen - 09-02-2017, 03:18 PM
Status Update 010 - by mudmin - 09-02-2017, 04:18 PM
Status Update 010 - by mudmin - 09-02-2017, 04:18 PM
Status Update 010 - by karsen - 09-02-2017, 04:28 PM
Status Update 010 - by Brandin - 09-02-2017, 05:04 PM
Status Update 010 - by Brandin - 09-02-2017, 05:05 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)