Auto profile welcome message + add buddy

Started by runebergen, August 04, 2008, 05:31:50 PM

Previous topic - Next topic

[SiNaN]

Register.template.php

Find:

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


Replace:

                           <input type="text" name="bday2" size="2" maxlength="2" tabindex="', $context['tabindex']++, '" /> -
                           <input type="text" name="bday1" size="2" maxlength="2" tabindex="', $context['tabindex']++, '" /> -
                           <input type="text" name="bday3" size="4" maxlength="4" tabindex="', $context['tabindex']++, '" />


The last codes runebergen have given should be working, have you tried them?
Former SMF Core Developer | My Mods | SimplePortal

Adish - (F.L.A.M.E.R)

Just a small favour with this, Can you make this as a drop down to select the date in the "Birthday Form" ? As this is a bit crazy thing which will confuse some users causing irritation in the minds of the users.. rather drop down would be better.. Please...?

[SiNaN]

This is what I've came across in Turkish Language Support board:

<tr>
                  <td width="40%">
                     <b>Birthday:</b>
                     <div class="smalltext">Day-Month-Year</div>
                  </td>
                  <td>
<select name="bday2" tabindex="', $context['tabindex']++, '" />
<option>Day</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>-
<select name="bday1" tabindex="', $context['tabindex']++, '" />
<option>Month</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select> -
<select name="bday3" tabindex="', $context['tabindex']++, '" />
<option>Year</option>
<option>1950</option>
<option>1951</option>
<option>1952</option>
<option>1953</option>
<option>1954</option>
<option>1955</option>
<option>1956</option>
<option>1957</option>
<option>1958</option>
<option>1959</option>
<option>1960</option>
<option>1961</option>
<option>1962</option>
<option>1963</option>
<option>1964</option>
<option>1965</option>
<option>1966</option>
<option>1967</option>
<option>1968</option>
<option>1969</option>
<option>1970</option>
<option>1971</option>
<option>1972</option>
<option>1973</option>
<option>1974</option>
<option>1975</option>
<option>1976</option>
<option>1977</option>
<option>1978</option>
<option>1979</option>
<option>1980</option>
<option>1981</option>
<option>1982</option>
<option>1983</option>
<option>1984</option>
<option>1985</option>
<option>1986</option>
<option>1987</option>
<option>1988</option>
<option>1989</option>
<option>1990</option>
<option>1991</option>
<option>1992</option>
<option>1993</option>
<option>1994</option>
<option>1995</option>
<option>1996</option>
<option>1997</option>
<option>1992</option>
<option>1999</option>
<option>2000</option>
</select>
                  </td>
               </tr>



* [SiNaN] has a feeling this question is not really related to this topic.
Former SMF Core Developer | My Mods | SimplePortal

Sabre™

Thanks for that fix runebergen :)

I was gonna leave it so I didnt have the user asking to be a buddy, with HEAPS of buddies in his list! lol
But figured someone might get too sensitive not seeing their name there lol

Quote from: [SiNaN] on August 23, 2008, 05:52:11 PM
* [SiNaN] has a feeling this question is not really related to this topic.

*Sabre's thinking {SiNaN} maybe right!

lol
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Adish - (F.L.A.M.E.R)

#44
Thank you, Lets see if i get everything right with all the queries.. I will be back with some more problems.

Edit:-
You forgot to close the code.. a '; is missing at the end..it gave me template parse error

Quote from: [SiNaN] on August 23, 2008, 05:52:11 PM
* [SiNaN] has a feeling this question is not really related to this topic.

* F.L.A.M.E.R supports this feeling but doesnt want to wait much for some good helpers to help out later on

[SiNaN]

Well, it depends the place you pasted those codes. It doesn't have an openning, so doesn't need a closing too. :P
Former SMF Core Developer | My Mods | SimplePortal

Adish - (F.L.A.M.E.R)

well i dont know what was wrong lolz.. just added those things and it started working... i pasted over the older code which was there in the register.template.php before for the normal forms..

Advertisement: