Announcement

Collapse
No announcement yet.

Birthday Field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Birthday Field

    As you know there is option for hiding age or hiding both birthday and age at user control panel. Is there a way to make birthday field visible to admins even user set it to hide his/her birthday and age info?

    I know i can check it from edit user section but just want to know if there is a easier way for it

  • #2
    This will require a modification. Please visit vBulletin.org for modification support and assistance.

    Comment


    • #3
      On a side note to this, is there a way to disable that option so the user is not given a choice on whether or not to display their birthday and have the option set entirely by the admin?

      Comment


      • #4
        Originally posted by bonjurkes View Post
        As you know there is option for hiding age or hiding both birthday and age at user control panel. Is there a way to make birthday field visible to admins even user set it to hide his/her birthday and age info?
        I really think this should be the default behavior of vBulletin. Here's a template mod:

        AdminCP -> Styles & Templates -> Style Manager -> (pick your style) -> Edit Templates -> Member Info Templates -> MEMBERINFO

        Find:
        Code:
        <if condition="$show['birthday']">
        Change it to:
        Code:
        <if condition="$show['birthday'] or is_member_of($bbuserinfo,6)">

        Comment


        • #5
          Originally posted by moncoff View Post
          On a side note to this, is there a way to disable that option so the user is not given a choice on whether or not to display their birthday and have the option set entirely by the admin?
          AdminCP -> Styles & Templates -> Style Manager -> (pick your style) -> Edit Templates -> Modify User Option Templates -> modifyprofile_birthday

          To remove this option during REGISTRATION, replace this (near the beginning of the template):
          Code:
                  <fieldset class="fieldset">
                          <legend>$vbphrase[birth_date] - $birthdate</legend>
                          <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                          <tr>
                              <td>
                                  $vbphrase[your_date_of_birth]<br />
                                  $vbphrase[contact_admin_to_modify_birthday]<br /><br />
                                  $vbphrase[privacy]:<br />
                                  <select name="showbirthday">
                                  <option value="0" $sbselected[0]>$vbphrase[hide_age_and_dob]</option>
                                  <option value="1" $sbselected[1]>$vbphrase[display_age]</option>
                                  <option value="2" $sbselected[2]>$vbphrase[display_age_and_dob]</option>
                                  </select>
                              </td>
                          </tr>
                          </table>
                      </fieldset>
          with:
          Code:
          <input type="hidden" name="showbirthday" value="1" />
          Change the value="" to whichever of the 3 options you want.


          To remove this option from the USER CONTROL PANEL, replace this (towards the end of the template):
          Code:
                          <tr>
                              <td>
                                  $vbphrase[privacy]<br />
                                  <select name="showbirthday">
                                  <option value="0" $sbselected[0]>$vbphrase[hide_age_and_dob]</option>
                                  <option value="1" $sbselected[1]>$vbphrase[display_age]</option>
                                  <option value="2" $sbselected[2]>$vbphrase[display_age_and_dob]</option>
                                  </select>
                              </td>
                          </tr>
          with:
          Code:
          <input type="hidden" name="showbirthday" value="1" />
          Change the value="" to whichever of the 3 options you want.
          Last edited by feldon23; Mon 19 Mar '07, 9:04am.

          Comment

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