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:	440
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


              #7
              So sorry I've not gotten back to you on this. Life happens.

              So, in our core directory we have:

              index.html
              vb.phar
              vb.php

              All have date stamps of 2023-05-23 and time stamps of 15:11:42 (expect for vb.phar which has 15:11:43)

              We paid vBulletin Technical Support to upgrade us from 4.2.5 to vBulletin 5.6.4 Patch Level 1 in October 2021. Everything works correctly. Would there be a reason we have what we have, and not what you expected?
              The Linux Community has given me much. I do what I can to return the favor!

              Comment


                #8
                You have the compressed phar file which is included in the default vB5 package. You can download the uncompressed version in the Members Area by choosing the More Download Options radio button and then choosing No in the "Use compressed PHP Archive" option. Then click Download. Once downloaded, uncompress the package file and then upload the contents of the /core/vb directory to the corresponding directory on the server. Remove the .phar file (or move it to a backup).
                Helpful? Donate. Thanks!
                Buy me a coffeePayPal QR Code
                Fast VPS Host for vBulletin:
                A2 Hosting & IONOS

                Comment


                  #9
                  Originally posted by glennrocksvb View Post
                  You can download the uncompressed version in the Members Area by choosing the More Download Options radio button
                  I don't see that button.

                  Click image for larger version

Name:	Screen Shot 2023-06-21 at 2.31.09 PM.png
Views:	63
Size:	147.8 KB
ID:	27172
                  The Linux Community has given me much. I do what I can to return the favor!

                  Comment


                    #10
                    Go to the page where you download the package.
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment


                      #11
                      Okay. Got it. Thank you.
                      The Linux Community has given me much. I do what I can to return the favor!

                      Comment

                      Users Viewing This Page

                      Collapse

                      There is 1 user viewing this forum topic.

                      • Guest Guest

                      Latest Posts

                      Collapse

                      Working...
                      X
                      Searching...Please wait.
                      An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                      Please push the back button and reload the previous window.'
                      An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                      Please push the back button and reload the previous window.'
                      An internal error has occurred and the module cannot be displayed.
                      There are no results that meet this criteria.
                      Search Result for "|||"