Announcement

Collapse
No announcement yet.

Welcome to our newest member issue

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Welcome to our newest member issue

    Is it possible to prevent the "Welcome to our newest member" from displaying the member IF they are BANNED? This is our 'latest' new member, but they were immediately BANNED based on their first post made.

    Click image for larger version

Name:	Screen Shot 2022-09-13 at 11.31.49 AM.png
Views:	27
Size:	49.1 KB
ID:	25425

    The newest member would then be the previous newest member, if again, not BANNED.
    The Linux Community has given me much. I do what I can to return the favor!

    #2
    You'd have to edit one of the core PHP files which means the changes need to be repeated every time you upgrade.

    I haven't done it myself but I just looked at the source code and this could be the solution.
    1. Login to FTP on your server.
    2. Edit this file /core/vb/library/user.php
    3. Find this function in the file.
      PHP Code:
          private function groupsExcludedFromLatest()
          {
             return 
      vB_Library::instance('usergroup')->getMultipleGroupIds([
                
      vB_Api_UserGroup::AWAITINGEMAIL_SYSGROUPID,
                
      vB_Api_UserGroup::AWAITINGMODERATION_SYSGROUPID,
             ]);
          }
      ​ 
    4. Add the Banned usergroup to be excluded by changing the function to this:
      PHP Code:
          private function groupsExcludedFromLatest()
          {
             return 
      vB_Library::instance('usergroup')->getMultipleGroupIds([
                
      vB_Api_UserGroup::AWAITINGEMAIL_SYSGROUPID,
                
      vB_Api_UserGroup::AWAITINGMODERATION_SYSGROUPID,
                
      vB_Api_UserGroup::BANNED,
             ]);
          }
      ​ 
    5. Save the file.
    Last edited by glennrocksvb; 09-13-2022, 06:07 PM.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      But take note that if at the time the statistics was built a user has not been banned yet, then they may still show up as the newest member until the stats are rebuilt.
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      Comment


        #4
        Thank you for looking into this. I’ll give this a try and let you know how it goes.
        The Linux Community has given me much. I do what I can to return the favor!

        Comment


          #5
          Originally posted by glennrocksvb View Post
          Edit this file /core/vb/library/user.php
          I don't know why, but we don't have this directory (../core/vb/library). Of the user.php files that do exist:

          /srv/www/kubuntuforums.net/public_html/core/admincp/user.php

          /srv/www/kubuntuforums.net/public_html/core/modcp/user.php

          /srv/www/kubuntuforums.net/public_html/includes/vb5/user.php

          None of them have the section of php code you identified.
          The Linux Community has given me much. I do what I can to return the favor!

          Comment


            #6
            You might be using the compressed vb.phar file. Do you see the core/vb/vb.phar file?

            You need to download the non-phar version of the package When you download it from Members Area, choose the "More Download Options" and then choose No for the "Use compressed PHP Archive" option.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment

            Latest Topics

            Collapse

            Working...
            X