Want to show birthdays at the bottom of the forumdisplay page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis Olson
    Senior Member
    • Oct 2002
    • 2789

    Want to show birthdays at the bottom of the forumdisplay page

    How can I do that? (BTW, only members should be able to see them, not lurkers.)

    Thanks!
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    I'm pretty sure displaying birthdays on forumdisplay would require custom coding. I doin't believe that info will parse in these templates.

    Also you can set this option to limit viewing of birthdays:

    Admin CP -> vBulletin Options -> Forums Home Page Options -> Show birthdays for active users only

    If you would like the birthdays displayed on the forum home page to only show birthdays for those users who have been active recently, you may set this value to be a number of days -ie: setting '30' will constrain the display to only show birthdays of users who have been active in the last 30 days.

    Set '0' to disable the activity check.

    Any other criteria would require either template conditionals or custom coding.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • Dennis Olson
      Senior Member
      • Oct 2002
      • 2789

      #3
      Yeah, I have the template conditionals already, so that Guests cannot see birthdays. (Works perfectly, and thanks!)

      Shouldn't I be able to cut/paste from forumindex to forumdisplay templates? If so, what code do I need to copy?

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        Straight out of the forumhome template:

        HTML Code:
        <!-- today's birthdays -->
        <tbody>
        <tr>
        <td class="thead" colspan="2">
        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
        $vbphrase[todays_birthdays]
        </td>
        </tr>
        </tbody>
        <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
        <tr>
        <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
        </tr>
        </tbody>
        <!-- end today's birthdays -->
        You can try pasting this into forumdisplay but I have a feeling the info won't parse in that template. If not, this requires modifying the code.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • Dennis Olson
          Senior Member
          • Oct 2002
          • 2789

          #5
          I'll try it, and thank you!

          Comment

          • Dennis Olson
            Senior Member
            • Oct 2002
            • 2789

            #6
            Okay, I added the code, and indeed it was messed up. But it didn't show the birthdays, just the "Todays Birtdays" text and the cake icon. So - looking or a few random thoughts as to why the detail doesn't show?

            Comment

            • Steve Machol
              Former Customer Support Manager
              • Jul 2000
              • 154488

              #7
              As I thought this requires modifying the code so the forumdisplay templates parse this information. Try asking over at vbulletin.org.
              Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
              Change CKEditor Colors to Match Style (for 4.1.4 and above)

              Steve Machol Photography


              Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


              Comment

              • Dennis Olson
                Senior Member
                • Oct 2002
                • 2789

                #8
                Will do. I'm assuming there needs to be a table lookup to support the added template display information...?

                Comment

                • jalmz
                  Member
                  • Nov 2006
                  • 36
                  • 4.0.x

                  #9
                  Hi guys,

                  How to display show birthdays in external or outside the Forum Directory?

                  for example i want to display the todays birthday at www.domain.com and my forum is www.domain.com/forum

                  thanks

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...