4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: soyola on January 27, 2006, 09:12:14 PM

Title: Date of Birth MOD in English
Post by: soyola on January 27, 2006, 09:12:14 PM
I am trying to find a mod or codes for user Date of Birth. I want to collect our user's DOB information and show it on their profile page. I couldn't find anything in English by searching this forum. It can have drop down or just text field like  DD/MM/YEAR. Can anybody please help.

Thank you very much   
Title: Re: Date of Birth MOD in English
Post by: mawenzi on January 27, 2006, 09:20:29 PM
MOD in English : http://www.4homepages.de/forum/index.php?topic=8546.msg52632#msg52632
Downlod : http://www.4homepages.de/forum/index.php?topic=8546.msg41183#msg41183
Title: Re: Date of Birth MOD in English
Post by: soyola on January 27, 2006, 09:39:44 PM
Thank you for your reply but it appears that download link isn't working anymore
Title: Re: Date of Birth MOD in English
Post by: mawenzi on January 27, 2006, 10:04:23 PM
... then try this ...  :wink:
Title: Re: Date of Birth MOD in English
Post by: Stoleti on January 27, 2006, 11:06:09 PM
doesn't exist way to track "who have born today" on home ? 
Title: Re: Date of Birth MOD in English
Post by: soyola on January 28, 2006, 09:43:12 PM
How do you install this file ? Do you just upload install.php file to your root directory and run it?  What do I do with css file?
Title: Re: Date of Birth MOD in English
Post by: mawenzi on January 28, 2006, 09:53:10 PM
... in the zip-file is a readme.html with full installations instructions ...  :!:
Title: Re: Date of Birth MOD in English
Post by: soyola on January 29, 2006, 05:25:48 AM
Two problems so far with this Mod

1) How do get it show up in User Registration Form. I added the following to my template/custom/register_forum.php but it's not helping

Quote
<tr>
           <td class="row2"><b>{lang_user_birthday}</b></td>
           <td class="row2">
           <select name="birthday_day" style="width:50px;">
           {dropdown_day}
           </select>
           <select name="birthday_month" style="width:90px;">
           {dropdown_month}
           </select>
           <select name="birthday_year" style="width:60px;">
           {dropdown_year}
           </select>
           </td>
           </tr>

2.  Also in my adminstration panel. There is no label for DOB column. Any ideas ?  Yes I have read Read Me file and searched this forum before posting these questions
Title: Re: Date of Birth MOD in English
Post by: TheOracle on January 29, 2006, 05:35:34 AM
Quote

There is no label for DOB column.


The reason why the dropdown menu is not showing is because you did not added the SELECT list into an HTML Form (as shown from your quote above). ;)
Title: Re: Date of Birth MOD in English
Post by: soyola on January 29, 2006, 05:49:08 AM
Can you please explain this? There is no label for DOB column in Adminstration Panel ?  This picture should demonstrate it better

(http://www.hipjongo.com/nolabel.gif)
Title: Re: Date of Birth MOD in English
Post by: soyola on January 29, 2006, 06:54:44 AM
Ok the above mentioned problem has been fixed by adding

Quote
$lang['user_age_birthday'] = "Birthday:";

to my lang/english/main.php file.  There are some serious bugs with this Mod and I wonder how many people are using this particular MOD.  Anyway, here is my question. I would like to collect user's DOB when they register and I added the following to my register_form file. This is a exact same code that has been added to member_editprofile file and works fine but doesn't on Register Form. Can somebody explain this please?

Quote
<tr>
           <td class="row2"><b>{lang_user_birthday}</b></td>
           <td class="row2">
           <select name="birthday_day" style="width:50px;">
           {dropdown_day}
           </select>
           <select name="birthday_month" style="width:95px;">
           {dropdown_month}
           </select>
           <select name="birthday_year" style="width:60px;">
           {dropdown_year}
           </select>
           </td>
          </tr>
Title: Re: Date of Birth MOD in English
Post by: TheOracle on January 29, 2006, 02:22:41 PM
Quote

Can somebody explain this please?


Sure. If it actually works from the MOD itself within the member page but not from the registration page, it means the functions has not been into the registering actions (register.php file - or perhaps it was but in the wrong place within the file). ;)
Title: Re: Date of Birth MOD in English
Post by: soyola on January 29, 2006, 06:45:48 PM
I understand it. That's why I was hoping somebody would help me to get it show up on register.php file.  Anybody?
Title: Re: Date of Birth MOD in English
Post by: klechoo on February 01, 2006, 08:43:37 PM
Parse error: syntax error, unexpected T_DOUBLE_ARROW in member.php on line 958  :?:
Title: Re: Date of Birth MOD in English
Post by: mawenzi on February 01, 2006, 08:59:56 PM
@ klechoo

... search for a unexpected T_DOUBLE_ARROW in member.php on line 958  ...
... and replace it by the right code ...
... or take you backup-file and try it again ...
Title: Re: Date of Birth MOD in English
Post by: Fastian on March 08, 2006, 07:14:37 PM
1) How do get it show up in User Registration Form. I added the following to my template/custom/register_forum.php but it's not helping

Quote
<tr>
           <td class="row2"><b>{lang_user_birthday}</b></td>
           <td class="row2">
           <select name="birthday_day" style="width:50px;">
           {dropdown_day}
           </select>
           <select name="birthday_month" style="width:90px;">
           {dropdown_month}
           </select>
           <select name="birthday_year" style="width:60px;">
           {dropdown_year}
           </select>
           </td>
           </tr>


I have the same issue with this Mod.

Can somone help me here. I know something need to be added in register.php but what eaxtly it is ?
Title: Re: Date of Birth MOD in English
Post by: __G__ on November 08, 2006, 07:39:21 AM
hi i get this error syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ') public_html/member.php on line 962
Title: Re: Date of Birth MOD in English
Post by: Entropyx on November 19, 2006, 01:07:27 AM
how would i remove the brackets from the age? ( the [ ] )