News:

Wondering if this will always be free?  See why free is better.

Main Menu

enter birthday once

Started by boogiedown, April 05, 2005, 05:29:52 PM

Previous topic - Next topic

boogiedown

I have some people on one of my boards that keep changing thier birthday to today so the always show up. is there a mod out there or somethin other than banning them to make the birthday a one time enter or lock it for one change?

Thantos

File: Profile.template.php

Find

<td class="smalltext">
                                                                        <input type="text" name="bday3" size="4" maxlength="4" value="', $context['member']['birth_date']['year'], '" /> -
                                                                        <input type="text" name="bday1" size="2" maxlength="2" value="', $context['member']['birth_date']['month'], '" /> -
                                                                        <input type="text" name="bday2" size="2" maxlength="2" value="', $context['member']['birth_date']['day'], '" />
                                                                </td>


Replace with
<td class="smalltext">', $context['member']['birth_date']['year'] == 0 && $context['member']['birth_date']['month'] == 0 && $context['member']['birth_date']['day'] ==0 ? '
                                                                        <input type="text" name="bday3" size="4" maxlength="4" value="'. $context['member']['birth_date']['year']. '" /> -
                                                                        <input type="text" name="bday1" size="2" maxlength="2" value="'. $context['member']['birth_date']['month']. '" /> -
                                                                        <input type="text" name="bday2" size="2" maxlength="2" value="'. $context['member']['birth_date']['day']. '" />' : $context['member']['birth_date']['year'] . '/' . $context['member']['birth_date']['month'] . '/' . $context['member']['birth_date']['day'], '
                                                                </td>

Thantos

Or...
Create a membergroup and in the permissions set "Edit additional profile settings" to DENY.  Give this membergroup as a secondary membergroup

boogiedown

#3
cool, it works. can new members still pick their birthday?

ok, just checked it. new members are allow to add it once and thats it. perfect!

that should be included in the next one under admin prefs


Advertisement: