MyBB Community Forums

Full Version: make b-day require field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
LeX- Wrote:
kd4fbi Wrote:I tried to use this in my board, but now I keep getting errors.
I did the editing in notepad. What am I doing wrong??

Thanks.

The "editing in notepad"; =P What's the error you're getting ? "Cannot send header information ..." ?

I must have been holding my mouth wrong Smile
Is there any way to make it show the birthday as Month, Day, Year instead of Day, Month, Year?
Also, if the birthday isn't entered, it "errors" with "The birthday you entered is invalid. Please enter a valid birthday or leave the field empty." How can I change that text to just "Please enter a valid birthday (This field required)"?
Thanks for your help.
kd4fbi Wrote:Is there any way to make it show the birthday as Month, Day, Year instead of Day, Month, Year?
Also, if the birthday isn't entered, it "errors" with "The birthday you entered is invalid. Please enter a valid birthday or leave the field empty." How can I change that text to just "Please enter a valid birthday (This field required)"?
Thanks for your help.
sorry for my late reply
for make birthday show as Month, Day, Year
go to you acp>>genral configration>> press change..
press Date and Time Formats and chenge Date Format to be Y-d-m

for the second question.. go to acp>>langauge>>manage>> edit your english pack
open datahandler_user.lang.php and find this phras
The birthday you entered is invalid. Please enter a valid birthday or leave the field empty. and change it to what ever you want..

regards..
now, can i ask, I need the same, to the Localization and the coutry.
Its possible?
sure it's possible, just add another field from your admin cp!
pepotiger Wrote:sure it's possible, just add another field from your admin cp!

ok, another field?
with code?.

one more question.
Now I have one proble to.
people o regist o my forum before the changes, and the date is blanc, wen i try to edit the profil, he canot change, because the date is blanc.
any sugestion?
thanks in advance
begincaos Wrote:ok, another field?
with code?.
no just make a new field via your acp with the info you need and make it require if you want
begincaos Wrote:one more question.
Now I have one proble to.
people o regist o my forum before the changes, and the date is blanc, wen i try to edit the profil, he canot change, because the date is blanc.
any sugestion?
thanks in advance
I just registered today in your forum and every thing working as well
and thats my profile page
http://portugal-forum.alojamentogratis.c...ile&uid=33

and I also can see my b-day it's showed in my edit profile page as I set it whene I registred
try to edit my profile and you will see
pepotiger Wrote:
begincaos Wrote:ok, another field?
with code?.
no just make a new field via your acp with the info you need and make it require if you want
begincaos Wrote:one more question.
Now I have one proble to.
people o regist o my forum before the changes, and the date is blanc, wen i try to edit the profil, he canot change, because the date is blanc.
any sugestion?
thanks in advance
I just registered today in your forum and every thing working as well
and thats my profile page
http://portugal-forum.alojamentogratis.c...ile&uid=33

and I also can see my b-day it's showed in my edit profile page as I set it whene I registred
try to edit my profile and you will see

the problem of the date is the people o have registed before, and dont have date b-day wen hi try to edit the profil in the Admin painel, he give me a error because the date is blanc, to some users o dont have b-day
Open ./inc/datahandlers/user.php

Find
if(!$birthday['day'] || !$birthday['month'] || !$birthday['year'])
            {
                $this->set_error("invalid_birthday");
                return false;
            } 

Change by
if(strpos($_SERVER['REQUEST_URI'], 'member.php'))
{
	if(!$birthday['day'] || !$birthday['month'] || !$birthday['year'])
	{
		$this->set_error("invalid_birthday");
		return false;
	} 
}
thanks LeX- for providing the support whene am late.
dear begincaos if the problem still exist just send me a P-m with any useid and pass that was registred before that modify
The problem are solved
it works fine. thans to all, my friends
Pages: 1 2 3