Suggestion for very minor change to "Newest Member"
Quote from Jim on January 13, 2022, 6:44 pmI hope the newest member could be identified by registration date rather than user_id. There are several reasons why ID might not identify the last user. Administrators sometimes change their ID to a high number for security. Sometimes I have to experiment with new users by deleting and re-adding a test user. It’s a lot easier to edit the registration date on the new user than to change the ID.
I tested a very minor change in forum-online.php that works. All it takes is substituting
user-registered
forID
:if ($this->asgarosforum->options['show_newest_member']) { // $newest_member = get_users(array('orderby' => 'ID', 'order' => 'DESC', 'number' => 1)); $newest_member = get_users(array('orderby' => 'user_registered', 'order' => 'DESC', 'number' => 1));
I hope the newest member could be identified by registration date rather than user_id. There are several reasons why ID might not identify the last user. Administrators sometimes change their ID to a high number for security. Sometimes I have to experiment with new users by deleting and re-adding a test user. It’s a lot easier to edit the registration date on the new user than to change the ID.
I tested a very minor change in forum-online.php that works. All it takes is substituting user-registered
for ID
:
if ($this->asgarosforum->options['show_newest_member']) { // $newest_member = get_users(array('orderby' => 'ID', 'order' => 'DESC', 'number' => 1)); $newest_member = get_users(array('orderby' => 'user_registered', 'order' => 'DESC', 'number' => 1));