![]() |
Stop Banned Users from being Newest Member
Prevents Banned Users from Displaying in What's Going On? Statistics phrase: Welcome to our newest member
|
I've applied this change to my page, but I'm not seeing it take affect on the page.
The current newest user is in the banned group, and when I try what the query should be from the AdminCP Execute SQL Query page, I get the right results, but when I refresh the index page, I keep seeing the banned user as the newest. Is there anything else I need to do to get this to work correctly? EDIT Just as a test, I changed later lines on the page to return fixed values in the values array, like so: PHP Code:
It's the only file on the host with that function and that query, but it doesn't seem to be working, and I'm not sure why. |
I believe I've had this problem before when deleting a banned user -- try going into the Maintenance menu and Update Counters, Update User Titles and Ranks.
|
Quote:
|
Thanks :)
|
To update the newest member immediately you can go:
AdminCP -> Scheduled Tasks -> Scheduled Tasks Manager -> Daily Statistics Log -> run now |
|
Worked like a charm! thank you for this tip!
|
Thanks for an awesome tip! It wasn't cool to see banned users and their names come up on the forum index. I used this, but I modified the query some:
Code:
$newuser = $vbulletin->db->query_first("SELECT userid, username FROM `" . TABLE_PREFIX . "user` WHERE joindate=(select max(joindate) from user where usergroupid!=8)"); |
I've applied this change to my forum but I'm not seeing it take affect on the forum , and still showing the banned users.
|
All times are GMT. The time now is 05:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|