Announcement

Collapse
No announcement yet.

Can I force "Show D.o.B and age" ?

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

  • Can I force "Show D.o.B and age" ?

    Can i ensure all members allow their Date of Birth and age to be shown ?

    At the moment my site allows hide, show etc

    Can this option be removed so ALL members have to show their age etc ?

    Many thanks for any replies

    p.s. have done a search but couldnt find a previous answer to this question

  • #2
    I think you will have to edit one of the UserCP templates to physically remove the option. Then I think you will have to do a MySQL query to set all the users to SHOW.

    Comment


    • #3
      I will give my MySql "helper" his orders then ! - lol lol lol

      Comment


      • #4
        http://www.vbulletin.com/forum/showthread.php?t=213135 for the MySQL part.

        Show Birthday
        Hide Age & Date of Birth: UPDATE user SET showbirthday = 0
        Display Age: UPDATE user SET showbirthday = 1
        Display Age & Date of Birth: UPDATE user SET showbirthday = 2


        As for the first part, editing the template, let me see...

        AdminCP -> Styles & Templates -> Style Manager -> (pick your style) -> Edit Templates
        Modify User Option Templates -> modifyprofile_birthday

        Replace this code:
        Code:
        $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>
        with this code:
        Code:
        <input name="showbirthday" type="hidden" value="2">
        P.S. I wouldn't expect a lot of women to sign up on your forum.

        Comment

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