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
FLOATVAL(3)								 1							       FLOATVAL(3)

floatval - Get float value of a variable

SYNOPSIS
float floatval (mixed $var) DESCRIPTION
Gets the float value of $var. PARAMETERS
o $var - May be any scalar type. floatval(3) should not be used on objects, as doing so will emit an E_NOTICE level error and return 1. RETURN VALUES
The float value of the given variable. Empty arrays return 0, non-empty arrays return 1. Strings will most likely return 0 although this depends on the leftmost characters of the string. The common rules of float casting apply. EXAMPLES
Example #1 floatval(3) Example <?php $var = '122.34343The'; $float_value_of_var = floatval($var); echo $float_value_of_var; // 122.34343 ?> Example #2 floatval(3) non-numeric leftmost characters Example <?php $var = 'The122.34343'; $float_value_of_var = floatval($var); echo $float_value_of_var; // 0 ?> SEE ALSO
boolval(3), intval(3), strval(3), settype(3), Type juggling. PHP Documentation Group FLOATVAL(3)
All times are GMT -4. The time now is 01:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy