Sponsored Content
The Lounge What is on Your Mind? Update to Navbar - Member Info and Avatars Post 303020326 by Neo on Monday 16th of July 2018 10:38:52 PM
Old 07-16-2018
Quote:
Originally Posted by Don Cragun
I'm happy with the numbers in various colored circles around the avatar.

I'm still concerned about manually clearing confidential post counts by hitting the "Mark Forums Read" button. Hitting that button builds in a race condition that can clear notification of unread confidential posts before I receive notice that new confidential messages have been posted.
It was that way before.

When one of our admins wrote that plugin years go he did not add any hooks to update the notification system (to my knowledge) when a confidential post is viewed; and so it was the same before; however, it was not noticeable because it always appeared in the text area (at least for me) so I always had to clear notifications for confidential posts the same way. Nothing has changed from before except the fact it is more noticeable now because of using badges.

The notification feature increments not only for confidential posts, but according to the code, increments for all notices (posts in mod queue, picture comments to moderate, etc) except PMs. It may be that the notifications will update (decrement) with the vB cron during periodic system updates, but I've not testing this yet.

I will write some debugging log code in the notification system and see if I can understand how to make this even better; because I would like for these notifications to update in near real time without refreshing the page (or marking the forums read); and that goes for the PMs as well.

Thanks for staying on top of this.
 

5 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Avatars?

Just wondering why the board is configured not to show any avatars in the post displays? I haven't seen anyone else asking this question and there is no mention of it by the admins anywhere (correct me if I am wrong).... A little bit of playfulness would do unix.com good :) (2 Replies)
Discussion started by: patvdv
2 Replies

2. Post Here to Contact Site Administrators and Moderators

avatars

how do i get those avatars on the bottom of my user name? (2 Replies)
Discussion started by: grizzly1
2 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Update my info

I hadn't logged on here in several months. I want to update my info, such as the email address that I can be contacted at, but I don't see any links to do that. (1 Reply)
Discussion started by: cleopard
1 Replies

4. What is on Your Mind?

Update to Posts - Member Info Icon and Badge

Hey, Upgrade (step 1) the posts, by putting a "user info" icon in the top right and making it so it toggles the user info. The user info icon has a badge which shows the number of posts. I will have to dig around in the code more to get the total posts thanks and other badges working; but... (22 Replies)
Discussion started by: Neo
22 Replies

5. Web Development

Update to Member List - New Click Options

FYI, Have updated our memberlist : https://www.unix.com/members/list/?order=DESC&sort=lastvisit&pp=30 $cat memberlist.php ... 375 // added next line by neo 15 Nov 2018 376 $condition .= ' AND credits > 0'; ... The reason for this change is insure the... (3 Replies)
Discussion started by: Neo
3 Replies
notifyutil(1)						    BSD General Commands Manual 					     notifyutil(1)

NAME
notifyutil -- notification command line utility SYNOPSIS
notifyutil [-q] [-v] [-z msec] [-M] [-R] [command ...] DESCRIPTION
notifyutil is a command-line utility for interacting with the notify(3) notification system and the notifyd(8) server. It may be used to post notifications, detect and report notifications, and to examine and set the state values associated with notification keys. If notifyutil is used to monitor one or more notification keys, it prints the notification key when the corresponding notification is received. The -v (verbose) and -q (quiet) flags, if specified, modify the output behavior. The -v flag causes notifyutil to print a time stamp, the notification key, the current state value for that key, and the type of the notifi- cation (port, file, etc). The -q flag supresses any output except for state values fetched following a -g command. Commands listed in the table below are processed in left to right order from the command line. -p key Post a notification for key. -w key Register for key and wait forever for notifications. -# key Register for key and wait for # (an integer) notifications. E.g. -1 key waits for a single notification. -g key Get state value for key. -s key val Set state value for key. -port Use mach port notifications for subsequent -w or -# registrations. This is the default registration type. -file Use file descriptor notifications for subsequent registrations. -check Use shared memory notifications for subsequent registrations. -signal [#] Use signal notifications for subsequent registrations. Signal 1 (HUP) is the default, but an alternate signal may be specified. -dispatch Use dispatch for subsequent registrations. When invoked with any combination of -w and -# actions, notifyutil registers for notification for the specified key(s). If any key is given with a -w action, notifyutil runs until interrupted with Control-C. If all registrations are invoked with -#, the program continues to run until the corresponding number of notifications for each key have been received. By default, notifyutil uses mach port registration (using notify_register_mach_port()) for keys given with a -w or -# flag. The -file com- mand causes notifyutil to use notify_register_file_descriptor() for any subsequent -w or -# registrations. Similarly, -check causes notifyutil to use notify_register_check() for subsequent registrations, -signal switches to notify_register_signal(), and -dispatch causes it to use notify_register_dispatch() for subsequent registrations. If any registrations are made following the use of the -check command, notifyutil will start a timer and check for shared memory notifica- tions every 100 milliseconds. An alternate timer value may be set following the -z flag. The -M flag causes notifyutil to use multiplex all notifications over a single mach connection with notifyd. Notifications (except shared memory notifications) are received and redistributed by a dispatch handler. The -R flag causes notifyutil to regenerate all its registrations in the unlikely event that notifyd restarts. Note that a notification key and its associated state variable only exist when there are one or more current registrations for that key. Setting the state for a key that has no registrations has no effect. Thus the command notifyutil -s foo.bar 123 -g foo.bar will print foo.bar 0 unless foo.bar is registered by some other process. However, the command notifyutil -w foo.bar -s foo.bar 123 -g foo.bar prints foo.bar 123 since the ``-w foo.bar'' registration ensures the key and its state variable exist before the value is set, and continue to exist when the value is fetched. SEE ALSO
notify(3), notifyd(8) Mac OS X November 4, 2011 Mac OS X
All times are GMT -4. The time now is 08:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy