Announcement

Collapse
No announcement yet.

Hide Birthday Module if No Results Returned

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

    Free Mod Hide Birthday Module if No Results Returned

    In vB5 and vB6 (including vBCloud), when no one has a birthday, the Birthday Module shows "There are no members with birthdays today" message. Currently, the module has no option to hide the module if there are no results.

    An improvement request has been filed for this at:



    But if you cannot wait and want to do a temporary and easy pure-CSS solution, you're in the right place!

    Simply add this CSS code in css_additional.css template.

    Code:
    .birthday-widget:not(:has(.birthdays)) {
        display: none;
    }​
    That's it! Yes, that's it, with just 3 lines of CSS code.

    This code is compatible with self-hosted vB5 and vB6 as well as vBCloud.

    Enjoy!
    Last edited by glennrocksvb; 01-23-2024, 08:28 PM.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    thanks..


    something similar for the latest registered users would also be useful​

    Comment


      #3
      Originally posted by desmomax View Post
      something similar for the latest registered users would also be useful​
      Are you referring to this module?
      This custom vB5 module displays recent users that registered in your forum. Click image for larger version Name: last-registered-users-avatar.png Views: 1

      If yes, try this CSS code:

      Code:
      .vbmodsthatrocks-last-registered-users-widget:not(:has(.last-registered-users-list)) {
          display: none;
      }​
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      Comment


      • glennrocksvb
        glennrocksvb commented
        Editing a comment
        I've added this code to the first post of the Last Registered Users mod topic.

      #4
      Originally posted by glennrocksvb View Post
      Are you referring to this module?
      yes exactly...

      many thanks

      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 "|||"