2011-04-18, 04:21 AM
Pages: 1 2
2011-04-18, 06:44 AM
Are you saying you want to stop people from hiding their birthdays?
2011-04-18, 07:05 AM
Open ./usercp.php file and find;
if($user['birthdayprivacy'] == 'all' || !$user['birthdayprivacy'])
{
$bdayprivacysel .= "<option value=\"all\" selected=\"selected\">{$lang->birthdayprivacyall}</option>\n";
$bdayprivacysel .= "<option value=\"none\">{$lang->birthdayprivacynone}</option>\n";
$bdayprivacysel .= "<option value=\"age\">{$lang->birthdayprivacyage}</option>";
}
else if($user['birthdayprivacy'] == 'none')
{
$bdayprivacysel .= "<option value=\"all\">{$lang->birthdayprivacyall}</option>\n";
$bdayprivacysel .= "<option value=\"none\" selected=\"selected\">{$lang->birthdayprivacynone}</option>\n";
$bdayprivacysel .= "<option value=\"age\">{$lang->birthdayprivacyage}</option>";
}
else if($user['birthdayprivacy'] == 'age')
{
$bdayprivacysel .= "<option value=\"all\">{$lang->birthdayprivacyall}</option>\n";
$bdayprivacysel .= "<option value=\"none\">{$lang->birthdayprivacynone}</option>\n";
$bdayprivacysel .= "<option value=\"age\" selected=\"selected\">{$lang->birthdayprivacyage}</option>";
}
and Change it to; if($user['birthdayprivacy'] == 'all' || !$user['birthdayprivacy'])
{
$bdayprivacysel .= "<option value=\"all\" selected=\"selected\">{$lang->birthdayprivacyall}</option>\n";
$bdayprivacysel .= "<option value=\"age\">{$lang->birthdayprivacyage}</option>";
}
else if($user['birthdayprivacy'] == 'none')
{
$bdayprivacysel .= "<option value=\"all\">{$lang->birthdayprivacyall}</option>\n";
$bdayprivacysel .= "<option value=\"age\">{$lang->birthdayprivacyage}</option>";
}
else if($user['birthdayprivacy'] == 'age')
{
$bdayprivacysel .= "<option value=\"all\">{$lang->birthdayprivacyall}</option>\n";
$bdayprivacysel .= "<option value=\"age\" selected=\"selected\">{$lang->birthdayprivacyage}</option>";
}
2011-04-18, 02:16 PM
thanks a lot Yaldaram
2011-04-18, 02:30 PM
Thanks.
2011-04-21, 09:11 PM
hmm thought this was fixed but members are still able to hide their birthday. I added the code above
2011-04-21, 09:16 PM
Run the following query in phpmyadmin;
UPDATE mybb_users SET birthday = '';
2011-04-21, 09:29 PM
I ran it but now just getting... Date of Birth: Not Specified in all profiles
2011-04-21, 09:42 PM
That's because the query Yaldaram gave you erased everybody's birthday, not change the privacy option.
2011-04-22, 02:24 AM
aww dang it. Now i'm having another problem...
when I try to create a new thread it takes me to my profile. What could be causing this?
when I try to create a new thread it takes me to my profile. What could be causing this?
Pages: 1 2