Sponsored Content
The Lounge What is on Your Mind? Update to Navbar - Member Info and Avatars Post 303020329 by Neo on Monday 16th of July 2018 11:02:52 PM
Old 07-17-2018
Here is the PHP code to update the $newhiddenposts global var (and I searched the plugin code in the DB and this is the only reference to that $newhiddenposts var:

Code:
if (can_moderate()) 
{ 
    $posts = $db->query_first(" 
        SELECT COUNT(postid) AS count 
        FROM " . TABLE_PREFIX . "post AS post 
        LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post') 
        WHERE visible = 3 AND " . TABLE_PREFIX . "post.dateline > " . $vbulletin->userinfo[lastvisit] . " 
            AND deletionlog.primaryid IS NULL 
    "); 
    $newhiddenposts = intval($posts['count']); 
}

And there seems no built in cron to update:

Code:
neo@www:/var/www/includes/cron# grep notification *php
neo@www:/var/www/includes/cron# grep notice *php
neo@www:/var/www/includes/cron# grep hiddenpost *php
neo@www:/var/www/includes/cron# grep hidden *php

 

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
strclean(1M)						  System Administration Commands					      strclean(1M)

NAME
strclean - STREAMS error logger cleanup program SYNOPSIS
strclean [-a age] [-d logdir] DESCRIPTION
strclean is used to clean up the STREAMS error logger directory on a regular basis (for example, by using cron. By default, all files with names matching error.* in /var/adm/streams that have not been modified in the last three days are removed. OPTIONS
The following options are supported: -a age The maximum age in days for a log file can be changed using the -a option. -d logdir A directory other than /var/adm/streams can be specified using the -d option. EXAMPLES
Example 1 A sample of using the strclean command. This example has the same result as running strclean with no arguments: example% strclean -d /var/adm/streams -a 3 FILES
/var/adm/streams/error.* ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
cron(1M), strerr(1M), attributes(5) NOTES
strclean is typically run from cron on a daily or weekly basis. SunOS 5.11 14 Sep 1992 strclean(1M)
All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy