1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Display User's Age in Message User Info 1.0.1

Style property to display user's age in user info plus helper to use in other templates

  1. Chris D
    Compatible XF Versions:
    • 1.2
    • 1.3
    • 1.4
    This add-on is not affiliated with XenForo Ltd.
    [​IMG]
    [​IMG] [​IMG] [​IMG]
    Thank you so much for donating. It is always appreciated!

    This add-on enables the displaying of a user's age in the Message User Info area. You as an admin can turn this on/off as a Style Property.

    Admin CP > Appearance > Styles Properties > Message Elements

    This is what it looks like:

    Age.PNG

    Of course, (thanks to Jake Bunce) this honours the user's profile option. Their age will not display if the option is unchecked:

    show_dob_year.PNG

    Finally, this add-on makes available a template helper, allowing you to use the age of the user elsewhere. (Subject to the parameter being available in the template).

    I haven't tested this, but in theory this could be used to prevent access to a forum based on age using template conditionals.

    The helper is called with: {xen:helper userage, $user}

    HOW TO INSTALL

    1) Download the zip file. Extract its contents.
    2) Upload the contents of the upload folder to the root of your XenForo installation.
    3) Install using the XML file provided.

Recent Reviews

  1. rainmotorsports
    rainmotorsports
    5/5,
    Version: 1.0.1
    This plugin has always served us well and Chris was very quick to rewrite it for 1.4 as well as addressing a long standing but never reported flaw. It is very nice to see a developer support older and free work as well as he does his current paid work.
  2. Amaury
    Amaury
    5/5,
    Version: 1.0a
    This is a core feature in vBulletin, so definitely nice!
  3. Adam Howard
    Adam Howard
    5/5,
    Version: 1.0
    Another cool eye candy toy. Useful for those members who wish to display their age (and who believe it means more than it is ... ie .. forum drama. lol)