[SMF 2.0] Kayıt olurken doğum tarihini gösterme.

Started by Yağız..., November 09, 2009, 01:52:34 PM

Previous topic - Next topic

Yağız...

./Sources/ManageSettings.php dosyasında bulun(2 tane var):
$standard_fields = array('icq', 'msn', 'aim', 'yim', 'location', 'gender', 'website', 'posts', 'warning_status');
Değiştirin(ikisinide değiştirin):
$standard_fields = array('icq', 'msn', 'aim', 'yim', 'location', 'gender', 'website', 'posts', 'warning_status', 'bday1');
./Themes/default/languages/Modifications.turkish.php dosyasında bulun:
?>
Öncesine ekleyin:
$txt['bday1'] = 'Doğum Tarihi';


Değişikliği yaptıktan sonra Yönetim > Çekirdek Ayarlar > Gelişmiş Profil Alanları'nı aktif edin ve en aşağıda bulunan Kaydet butonuna tıklayın. Bunu yaptıktan Gelişmiş Profil Alanları yazısı bir link olacaktır. Ona tıklayın. Gelen sayfada Doğum Tarihi yazsının karşısında bulunan iki seçeneği işaretleyin ve Kaydet butonuna basın.

argenli



Antes

Profil Alanlarından yapsanız aynı şey olmaz mı ?

grafitus

#4
Quote from: Antes on November 09, 2009, 03:57:43 PM
Profil Alanlarından yapsanız aynı şey olmaz mı ?

Zaten profil alanı var. Ama kayıtta gösterme seçeneği yok. Yağız onuda eklemiş oldu. ;)

Antes

Quote from: ▌grafitus▐ on November 09, 2009, 04:02:27 PM
Quote from: Antes on November 09, 2009, 03:57:43 PM
Profil Alanlarından yapsanız aynı şey olmaz mı ?

Zaten profil alanı var. Ama kayıtta gösterme seçeneği yok. Yağız gardaşım sağolsun onuda ekledi.

Hayır , var ... 2 'nin orjinalinde kayıt esnasında gösterilsin seçeneği var :)

grafitus

#6
Antes zaten profilde doğum tarihi diye bir şey varken onun verine ayrı bir alan oluşturmak saçmalık olabilir. + Onu konularda falan gösteremezsin. Yani zor olur : )...

Antes

anladım anladım , profildeki bölmeyi kayıt esnasındaki alana eklemiş :)

argenli

<?php
// Version: 2.0 RC1.2; Register

// Before registering - get their information.
function template_before()
{
global $context$settings$options$scripturl$txt$modSettings;

// Make sure they've agreed to the terms and conditions.
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/register.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function verifyAgree()
{
if (currentAuthMethod == \'passwd\' && document.forms.creator.smf_autov_pwmain.value != document.forms.creator.smf_autov_pwverify.value)
{
alert("'
$txt['register_passwords_differ_js'], '");
return false;
}'
;

// If they haven't checked the "I agree" box, tell them and don't submit.
if ($context['require_agreement'])
echo '

if (!document.forms.creator.regagree.checked)
{
alert("'
$txt['register_agree'], '");
return false;
}'
;

// Otherwise, let it through.
echo '

return true;
}

var currentAuthMethod = \'passwd\';
function updateAuthMethod()
{
// What authentication method is being used?
if (!document.getElementById(\'auth_openid\') || !document.getElementById(\'auth_openid\').checked)
currentAuthMethod = \'passwd\';
else
currentAuthMethod = \'openid\';

// No openID?
if (!document.getElementById(\'auth_openid\'))
return true;

document.forms.creator.openid_url.disabled = currentAuthMethod == \'openid\' ? false : true;
document.forms.creator.smf_autov_pwmain.disabled = currentAuthMethod == \'passwd\' ? false : true;
document.forms.creator.smf_autov_pwverify.disabled = currentAuthMethod == \'passwd\' ? false : true;
document.getElementById(\'smf_autov_pwmain_div\').style.display = currentAuthMethod == \'passwd\' ? \'\' : \'none\';
document.getElementById(\'smf_autov_pwverify_div\').style.display = currentAuthMethod == \'passwd\' ? \'\' : \'none\';

if (currentAuthMethod == \'passwd\')
{
verificationHandle.refreshMainPassword();
verificationHandle.refreshVerifyPassword();
document.forms.creator.openid_url.style.backgroundColor = \'\';
}
else
{
document.forms.creator.smf_autov_pwmain.style.backgroundColor = \'\';
document.forms.creator.smf_autov_pwverify.style.backgroundColor = \'\';
document.forms.creator.openid_url.style.backgroundColor = \'#FCE184\';
}

return true;
}'
;

if ($context['require_agreement'])
echo '
function checkAgree()
{
document.forms.creator.regSubmit.disabled =  (currentAuthMethod == "passwd" && (isEmptyText(document.forms.creator.smf_autov_pwmain) || isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email))) || isEmptyText(document.forms.creator.bday3) || (currentAuthMethod == "openid" && isEmptyText(document.forms.creator.openid_url)) || !document.forms.creator.regagree.checked;
setTimeout("checkAgree();", 1000);
}
setTimeout("checkAgree();", 1000);'
;

echo '
// ]]></script>'
;

// Any errors?
if (!empty($context['registration_errors']))
{
echo '
<div class="windowbg error" style="margin: 1ex; padding: 1ex 2ex; border: 1px dashed red;">
<span style="text-decoration: underline;">'
$txt['registration_errors_occurred'], '</span>
<ul>'
;

// Cycle through each error and display an error message.
foreach ($context['registration_errors'] as $error)
echo '
<li>'
$error'</li>';

echo '
</ul>
</div>'
;
}

echo '
<form action="'
$scripturl'?action=register2" method="post" accept-charset="'$context['character_set'], '" name="creator" id="creator" onsubmit="return verifyAgree();">
<table border="0" width="100%" cellpadding="3" cellspacing="0" class="tborder">
<tr class="titlebg">
<td>'
$txt['register'], ' - '$txt['required_info'], '</td>
</tr><tr class="windowbg">
<td width="100%">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td width="40%">
<b>'
$txt['choose_username'], ':</b>
<div class="smalltext">'
$txt['identification_by_smf'], '</div>
</td>
<td>
<input type="text" name="user" id="smf_autov_username" size="30" tabindex="'
$context['tabindex']++, '" maxlength="25" value="', isset($context['username']) ? $context['username'] : '''" />
<span id="smf_autov_username_div" style="display: none;">
<a id="smf_autov_username_link" href="#">
<img id="smf_autov_username_img" src="'
$settings['images_url'], '/icons/field_check.gif" alt="*" />
</a>
</span>
</td>
</tr><tr>
<td width="40%">
<b>'
$txt['email'], ':</b>
<div class="smalltext">'
$txt['valid_email'], '</div>
</td>
<td>
<input type="text" name="email" id="smf_autov_reserve1" size="30" tabindex="'
$context['tabindex']++, '" value="', isset($context['email']) ? $context['email'] : '''" />
<label for="allow_email"><input type="checkbox" name="allow_email" id="allow_email" tabindex="'
$context['tabindex']++, '" class="check" /> '$txt['allow_user_email'], '</label>
</td>
</tr>'
;

// With openID disabled we put the password here.
if (empty($modSettings['enableOpenID']))
echo '
<tr>
<td width="40%">
<b>'
$txt['choose_pass'], ':</b>
</td>
<td>
<input type="password" name="passwrd1" id="smf_autov_pwmain" size="30" tabindex="'
$context['tabindex']++, '" />
<span id="smf_autov_pwmain_div" style="display: none;">
<img id="smf_autov_pwmain_img" src="'
$settings['images_url'], '/icons/field_invalid.gif" alt="*" />
</span>
</td>
</tr><tr>
<td width="40%">
<b>'
$txt['verify_pass'], ':</b>
</td>
<td>
<input type="password" name="passwrd2" id="smf_autov_pwverify" size="30" tabindex="'
$context['tabindex']++, '" />
<span id="smf_autov_pwverify_div" style="display: none;">
<img id="smf_autov_pwverify_img" src="'
$settings['images_url'], '/icons/field_valid.gif" alt="*" />
</span>
</td>
</tr>'
;

if ($context['visual_verification'])
{
echo '
<tr valign="top">
<td width="40%" valign="top">
<b>'
$txt['verification'], ':</b>
</td>
<td>'
template_control_verification($context['visual_verification_id'], 'all'), '</td>
</tr><tr>
                  <td width="40%">
                     <b>Doğum Tarihi:</b>
                     <div class="smalltext">Gün-Ay-Yıl</div>
                  </td>
                  <td>
<select name="bday2" tabindex="'
$context['tabindex']++, '" />
<option>GUN</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>AY</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>YIL</option>
<option>1938</option>
<option>1939</option>
<option>1940</option>
<option>1941</option>
<option>1942</option>
<option>1943</option>
<option>1944</option>
<option>1945</option>
<option>1946</option>
<option>1947</option>
<option>1948</option>
<option>1949</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>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
</select>
                  </td>
               </tr> '
;
}

// Are there age restrictions in place?
if (!empty($modSettings['coppaAge']))
echo '
<tr>
<td colspan="2" align="center" style="padding-top: 1ex;">
<label for="skip_coppa"><input type="checkbox" name="skip_coppa" id="skip_coppa" tabindex="'
$context['tabindex']++, '" ', !empty($context['skip_coppa']) ? 'checked="checked"' ''' class="check" /> <b>'$context['coppa_desc'], '.</b></label>
</td>
</tr>'
;

echo '
</table>
</td>
</tr>'
;

// If openID is enabled offer them the choice.
if (!empty($modSettings['enableOpenID']))
echo '
<tr class="windowbg">
<td colspan="2">
<hr />
</td>
</tr>
<tr class="windowbg" style="padding-left: 3px;">
<td>
<b>'
$txt['authenticate_label'], ':</b>
</td>
</tr>
<tr class="windowbg">
<td width="100%">
<table cellpadding="3" cellspacing="2" border="0" width="100%">
<tr>
<td width="2%" align="center" class="windowbg2" rowspan="3">
<input type="radio" name="authenticate" value="passwd" id="auth_pass" '
, empty($context['openid']) ? 'checked="checked" ' ''' onclick="updateAuthMethod();" />
</td>
<td colspan="2">
<label for="auth_pass"><b>'
$txt['authenticate_password'], ':</b></label>
</td>
</tr>
<tr>
<td>
<i>'
$txt['choose_pass'], ':</i>
</td>
<td width="60%">
<input type="password" name="passwrd1" id="smf_autov_pwmain" size="30" tabindex="'
$context['tabindex']++, '" />
<span id="smf_autov_pwmain_div" style="display: none;">
<img id="smf_autov_pwmain_img" src="'
$settings['images_url'], '/icons/field_invalid.gif" alt="*" />
</span>
</td>
</tr><tr>
<td>
<i>'
$txt['verify_pass'], ':</i>
</td>
<td width="60%">
<input type="password" name="passwrd2" id="smf_autov_pwverify" size="30" tabindex="'
$context['tabindex']++, '" />
<span id="smf_autov_pwverify_div" style="display: none;">
<img id="smf_autov_pwverify_img" src="'
$settings['images_url'], '/icons/field_valid.gif" alt="*" />
</span>
</td>
</tr>
<tr>
<td width="2%" align="center" class="windowbg2" rowspan="2">
<input type="radio" name="authenticate" value="openid" id="auth_openid" '
, !empty($context['openid']) ? 'checked="checked" ' ''' onclick="updateAuthMethod();" />
</td>
<td colspan="2">
<label for="auth_openid"><b>'
$txt['authenticate_openid'], ':</b></label>&nbsp;<i><a href="'$scripturl'?action=helpadmin;help=register_openid" onclick="return reqWin(this.href);" class="help">(?)</a></i>
</td>
</tr>
<tr>
<td>
<i>'
$txt['authenticate_openid_url'], ':</i>
</td>
<td width="60%">
<input type="text" name="openid_url" id="openid_url" size="30" tabindex="'
$context['tabindex']++, '" value="', isset($context['openid']) ? $context['openid'] : '''" />
<span><img src="'
$settings['images_url'], '/openid.gif" alt="'$txt['openid'], '" /></span>
</td>
</tr>
</table>
</td>
</tr>'
;

// If we have some optional fields show them too!
if (!empty($context['profile_fields']) || !empty($context['custom_fields']))
echo '
<tr class="windowbg">
<td><hr /></td>
</tr>
<tr class="windowbg">
<td width="100%">
<table cellpadding="3" cellspacing="0" border="0" width="100%">'
;

if (!empty($context['profile_fields']))
{
// Any fields we particularly want?
foreach ($context['profile_fields'] as $key => $field)
{
if ($field['type'] == 'callback')
{
if (isset($field['callback_func']) && function_exists('template_profile_' $field['callback_func']))
{
$callback_func 'template_profile_' $field['callback_func'];
$callback_func();
}
}
else
{
echo '
<tr valign="top">
<td width="40%">
<b'
, !empty($field['is_error']) ? ' class="error"' '''>'$field['label'], '</b>';

// Does it have any subtext to show?
if (!empty($field['subtext']))
echo '
<div class="smalltext">'
$field['subtext'], '</div>';

echo '
</td>
<td>'
;

// Want to put something infront of the box?
if (!empty($field['preinput']))
echo '
'
$field['preinput'];

// What type of data are we showing?
if ($field['type'] == 'label')
echo '
'
$field['value'];

// Maybe it's a text box - very likely!
elseif (in_array($field['type'], array('int''float''text''password')))
echo '
<input type="'
$field['type'] == 'password' 'password' 'text''" name="'$key'" id="'$key'" tabindex="'$context['tabindex']++, '" size="', empty($field['size']) ? 30 $field['size'], '" value="'$field['value'], '" '$field['input_attr'], ' />';

// You "checking" me out? ;)
elseif ($field['type'] == 'check')
echo '
<input type="hidden" name="'
$key'" value="0" /><input type="checkbox" name="'$key'" id="'$key'" tabindex="'$context['tabindex']++, '" ', !empty($field['value']) ? ' checked="checked"' ''' value="1" class="check" '$field['input_attr'], ' />';

// Always fun - select boxes!
elseif ($field['type'] == 'select')
{
echo '
<select name="'
$key'" id="'$key'" tabindex="'$context['tabindex']++, '">';

if (isset($field['options']))
{
// Is this some code to generate the options?
if (!is_array($field['options']))
$field['options'] = eval($field['options']);
// Assuming we now have some!
if (is_array($field['options']))
foreach ($field['options'] as $value => $name)
echo '
<option value="'
$value'" '$value == $field['value'] ? 'selected="selected"' '''>'$name'</option>';
}

echo '
</select>'
;
}

// Something to end with?
if (!empty($field['postinput']))
echo '
'
$field['postinput'];

echo '
</td>
</tr>'
;
}
}
}

// Are there any custom fields?
if (!empty($context['custom_fields']))
{
foreach ($context['custom_fields'] as $field)
{
echo '
<tr valign="top">
<td width="40%"><b>'
$field['name'], ': </b><div class="smalltext">'$field['desc'], '</div></td>
<td>'
$field['input_html'], '</td>
</tr>'
;
}
}

if (!empty($context['profile_fields']) || !empty($context['custom_fields']))
echo '
</table>
</td>
</tr>'
;

echo '
</table>'
;

// Require them to agree here?
if ($context['require_agreement'])
echo '
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="5" class="tborder" style="border-top: 0;">
<tr>
<td class="windowbg2" style="padding-top: 8px; padding-bottom: 8px;">
'
$context['agreement'], '
</td>
</tr><tr>
<td align="center" class="windowbg2">
<label for="regagree"><input type="checkbox" name="regagree" onclick="checkAgree();" id="regagree" tabindex="'
$context['tabindex']++, '" class="check" ', !empty($context['regagree']) ? 'checked="checked"' ''' /> <b>'$txt['agree'], '</b></label>
</td>
</tr>
</table>'
;

echo '
<br />
<div align="center">
<input type="submit" name="regSubmit" value="'
$txt['register'], '" tabindex="'$context['tabindex']++, '" />
</div>
</form>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Uncheck the agreement thing....
if ($context['require_agreement'] && empty($context['regagree']))
echo '
document.forms.creator.regagree.checked = false;
document.forms.creator.regSubmit.disabled = !document.forms.creator.regagree.checked;'
;

// Clever registration stuff...
echo '
var regTextStrings = {
"username_valid": "'
$txt['registration_username_available'], '",
"username_invalid": "'
$txt['registration_username_unavailable'], '",
"username_check": "'
$txt['registration_username_check'], '",
"password_short": "'
$txt['registration_password_short'], '",
"password_reserved": "'
$txt['registration_password_reserved'], '",
"password_numbercase": "'
$txt['registration_password_numbercase'], '",
"password_no_match": "'
$txt['registration_password_no_match'], '",
"password_valid": "'
$txt['registration_password_valid'], '"
};
var verificationHandle = new smfRegister("creator", '
, empty($modSettings['password_strength']) ? $modSettings['password_strength'], ', regTextStrings);
// Update the authentication status.
updateAuthMethod();'
;

echo 
'
// ]]></script>'
;
}

// After registration... all done ;).
function template_after()
{
global $context$settings$options$txt$scripturl;

// Not much to see here, just a quick... "you're now registered!" or what have you.
echo '
<br />
<table border="0" width="80%" cellpadding="3" cellspacing="0" class="tborder" align="center">
<tr class="titlebg">
<td>'
$context['page_title'], '</td>
</tr><tr class="windowbg">
<td align="left">'
$context['description'], '<br /><br /></td>
</tr>
</table>
<br />'
;
}

// Template for giving instructions about COPPA activation.
function template_coppa()
{
global $context$settings$options$txt$scripturl;

// Formulate a nice complicated message!
echo '
<br />
<table width="60%" cellpadding="4" cellspacing="0" border="0" class="tborder" align="center">
<tr class="titlebg">
<td>'
$context['page_title'], '</td>
</tr><tr class="windowbg">
<td align="left">'
$context['coppa']['body'], '<br /></td>
</tr><tr class="windowbg">
<td align="center">
<a href="'
$scripturl'?action=coppa;form;member='$context['coppa']['id'], '" target="_blank" class="new_win">'$txt['coppa_form_link_popup'], '</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="'$scripturl'?action=coppa;form;dl;member='$context['coppa']['id'], '">'$txt['coppa_form_link_download'], '</a><br /><br />
</td>
</tr><tr class="windowbg">
<td align="left">'
$context['coppa']['many_options'] ? $txt['coppa_send_to_two_options'] : $txt['coppa_send_to_one_option'], '</td>
</tr>'
;

// Can they send by post?
if (!empty($context['coppa']['post']))
{
echo '
<tr class="windowbg">
<td align="left"><b>1) '
$txt['coppa_send_by_post'], '</b></td>
</tr><tr class="windowbg">
<td align="left" style="padding-bottom: 1ex;">
<div style="padding: 4px; width: 32ex; background-color: white; color: black; margin-left: 5ex; border: 1px solid black;">
'
$context['coppa']['post'], '
</div>
</td>
</tr>'
;
}

// Can they send by fax??
if (!empty($context['coppa']['fax']))
{
echo '
<tr class="windowbg">
<td align="left"><b>'
, !empty($context['coppa']['post']) ? '2' '1'') '$txt['coppa_send_by_fax'], '</b></td>
</tr><tr class="windowbg">
<td align="left" style="padding-bottom: 1ex;">
<div style="padding: 4px; width: 32ex; background-color: white; color: black; margin-left: 5ex; border: 1px solid black;">
'
$context['coppa']['fax'], '
</div>
</td>
</tr>'
;
}

// Offer an alternative Phone Number?
if ($context['coppa']['phone'])
{
echo '
<tr class="windowbg" style="padding-bottom: 1ex;">
<td align="left">'
$context['coppa']['phone'], '</td>
</tr>'
;
}
echo '
</table>
<br />'
;
}

// An easily printable form for giving permission to access the forum for a minor.
function template_coppa_form()
{
global $context$settings$options$txt$scripturl;

// Show the form (As best we can)
echo '
<table border="0" width="100%" cellpadding="3" cellspacing="0" class="tborder" align="center">
<tr>
<td align="left">'
$context['forum_contacts'], '</td>
</tr><tr>
<td align="right">
<i>'
$txt['coppa_form_address'], '</i>: '$context['ul'], '<br />
'
$context['ul'], '<br />
'
$context['ul'], '<br />
'
$context['ul'], '
</td>
</tr><tr>
<td align="right">
<i>'
$txt['coppa_form_date'], '</i>: '$context['ul'], '
<br /><br />
</td>
</tr><tr>
<td align="left">
'
$context['coppa_body'], '
</td>
</tr>
</table>
<br />'
;
}

// Show a window containing the spoken verification code.
function template_verification_sound()
{
global $context$settings$options$txt$scripturl;

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''>
<head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<title>'
$context['page_title'], '</title>
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css" />
<style type="text/css">'
;

// Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are bigger...)
if ($context['browser']['needs_size_fix'])
echo '
@import('
$settings['default_theme_url'], '/css/fonts-compat.css);';

// Just show the help text and a "close window" link.
echo '
</style>
</head>
<body style="margin: 1ex;">
<div class="popuptext" style="text-align: center;">'
;
if ($context['browser']['is_ie'])
echo '
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="audio/x-wav">
<param name="AutoStart" value="1" />
<param name="FileName" value="'
$context['verification_sound_href'], '" />
</object>'
;
else
echo '
<object type="audio/x-wav" data="'
$context['verification_sound_href'], '">
<a href="'
$context['verification_sound_href'], '" rel="nofollow">'$context['verification_sound_href'], '</a>
</object>'
;
echo '
<br />
<a href="'
$context['verification_sound_href'], ';sound" rel="nofollow">'$txt['visual_verification_sound_again'], '</a><br />
<a href="javascript:self.close();">'
$txt['visual_verification_sound_close'], '</a><br />
<a href="'
$context['verification_sound_href'], '" rel="nofollow">'$txt['visual_verification_sound_direct'], '</a>
</div>
</body>
</html>'
;
}

function 
template_admin_register()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
<form action="'
$scripturl'?action=admin;area=regcenter" method="post" accept-charset="'$context['character_set'], '" name="postForm" id="postForm">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function onCheckChange()
{
if (document.forms.postForm.emailActivate.checked || document.forms.postForm.password.value == \'\')
{
document.forms.postForm.emailPassword.disabled = true;
document.forms.postForm.emailPassword.checked = true;
}
else
document.forms.postForm.emailPassword.disabled = false;
}
// ]]></script>
<table border="0" cellspacing="0" cellpadding="4" align="center" width="70%" class="tborder">
<tr class="titlebg">
<td colspan="2" align="center">'
$txt['admin_browse_register_new'], '</td>
</tr>'
;
if (!empty($context['registration_done']))
echo '
<tr class="windowbg2">
<td colspan="2" align="center"><br />
'
$context['registration_done'], '
</td>
</tr><tr class="windowbg2">
<td colspan="2" align="center"><hr /></td>
</tr>'
;
echo '
<tr class="windowbg2">
<th width="50%" align="right">
<label for="user_input">'
$txt['admin_register_username'], ':</label>
<div class="smalltext" style="font-weight: normal;">'
$txt['admin_register_username_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="text" name="user" id="user_input" size="30" maxlength="25" tabindex="'
$context['tabindex']++, '" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="email_input">'
$txt['admin_register_email'], ':</label>
<div class="smalltext" style="font-weight: normal;">'
$txt['admin_register_email_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="text" name="email" id="email_input" size="30" tabindex="'
$context['tabindex']++, '" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="password_input">'
$txt['admin_register_password'], ':</label>
<div class="smalltext" style="font-weight: normal;">'
$txt['admin_register_password_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="password" name="password" id="password_input" tabindex="'
$context['tabindex']++, '" size="30" onchange="onCheckChange();" /><br />
</td>
</tr>'
;

if (!empty($context['member_groups']))
{
echo '
<tr class="windowbg2">
<th width="50%" align="right">
<label for="group_select">'
$txt['admin_register_group'], ':</label>
<div class="smalltext" style="font-weight: normal;">'
$txt['admin_register_group_desc'], '</div>
</th>
<td width="50%" align="left">
<select name="group" id="group_select" tabindex="'
$context['tabindex']++, '">';

foreach ($context['member_groups'] as $id => $name)
echo '
<option value="'
$id'">'$name'</option>';
echo '
</select><br />
</td>
</tr>'
;
}

echo '
<tr class="windowbg2">
<th width="50%" align="right">
<label for="emailPassword_check">'
$txt['admin_register_email_detail'], ':</label>
<div class="smalltext" style="font-weight: normal;">'
$txt['admin_register_email_detail_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="checkbox" name="emailPassword" id="emailPassword_check" tabindex="'
$context['tabindex']++, '" checked="checked" disabled="disabled" class="check" /><br />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="emailActivate_check">'
$txt['admin_register_email_activate'], ':</label>
</th>
<td width="50%" align="left">
<input type="checkbox" name="emailActivate" id="emailActivate_check" tabindex="'
$context['tabindex']++, '"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] == ' checked="checked"' ''' onclick="onCheckChange();" class="check" /><br />
</td>
</tr><tr class="windowbg2">
<td width="100%" colspan="2" align="right">
<input type="submit" name="regSubmit" value="'
$txt['register'], '" tabindex="'$context['tabindex']++, '" />
<input type="hidden" name="sa" value="register" />
</td>
</tr>
</table>
<input type="hidden" name="'
$context['session_var'], '" value="'$context['session_id'], '" />
</form>'
;
}

// Form for editing the agreement shown for people registering to the forum.
function template_edit_agreement()
{
global $context$settings$options$scripturl$txt;

// Just a big box to edit the text file ;).
echo '
<table border="0" cellspacing="0" cellpadding="4" align="center" width="80%" class="tborder">
<tr class="titlebg">
<td align="center">'
$txt['registration_agreement'], '</td>
</tr>'
;

// Warning for if the file isn't writable.
if (!empty($context['warning']))
echo '
<tr class="windowbg2">
<td class="alert" style="font-weight: bold;" align="center">
'
$context['warning'], '
</td>
</tr>'
;

// Is there more than one language to choose from?
if (count($context['editable_agreements']) > 1)
{
echo '
<tr class="windowbg2">
<td align="center">
<div align="left" style="width: 94%">
<form action="'
$scripturl'?action=admin;area=regcenter;sa=agreement" id="change_reg" method="post" accept-charset="'$context['character_set'], '">
<b>'
$txt['admin_agreement_select_language'], ':</b>&nbsp;
<select name="agree_lang" onchange="document.getElementById(\'change_reg\').submit();" tabindex="'
$context['tabindex']++, '">';

foreach ($context['editable_agreements'] as $file => $name)
echo '
<option value="'
$file'"'$context['current_agreement'] == $file ' selected="selected"' '''>'$name'</option>';

echo '
</select>
<input type="hidden" name="'
$context['session_var'], '" value="'$context['session_id'], '" />
<input type="submit" name="change" value="'
$txt['admin_agreement_select_language_change'], '" tabindex="'$context['tabindex']++, '" />
</form>
</div>
</td>
</tr>'
;
}

echo '
<tr class="windowbg2">
<td align="center" style="padding-bottom: 1ex; padding-top: 2ex;">
<form action="'
$scripturl'?action=admin;area=regcenter;sa=agreement" method="post" accept-charset="'$context['character_set'], '">';

// Show the actual agreement in an oversized text box.
echo '
<textarea cols="70" rows="20" name="agreement" style="width: 94%; margin-bottom: 1ex;">'
$context['agreement'], '</textarea><br />
<label for="requireAgreement"><input type="checkbox" name="requireAgreement" id="requireAgreement" tabindex="'
$context['tabindex']++, '"'$context['require_agreement'] ? ' checked="checked"' ''' value="1" /> '$txt['admin_agreement'], '.</label><br />
<br />
<input type="submit" value="'
$txt['save'], '" tabindex="'$context['tabindex']++, '" />
<input type="hidden" name="agree_lang" value="'
$context['current_agreement'], '" />
<input type="hidden" name="'
$context['session_var'], '" value="'$context['session_id'], '" />
</form>
</td>
</tr>
</table>'
;
}

function 
template_edit_reserved_words()
{
global $context$settings$options$scripturl$txt;

echo '
<form action="'
$scripturl'?action=admin;area=regcenter" method="post" accept-charset="'$context['character_set'], '">
<table border="0" cellspacing="1" class="bordercolor" align="center" cellpadding="4" width="80%">
<tr class="titlebg">
<td align="center">
'
$txt['admin_reserved_set'], '
</td>
</tr><tr>
<td class="windowbg2" align="center">
<div style="width: 80%;">
<div style="margin-bottom: 2ex;">'
$txt['admin_reserved_line'], '</div>
<textarea cols="30" rows="6" name="reserved" style="width: 98%;">'
implode("\n"$context['reserved_words']), '</textarea><br />

<div align="left" style="margin-top: 2ex;">
<label for="matchword"><input type="checkbox" name="matchword" id="matchword" tabindex="'
$context['tabindex']++, '" '$context['reserved_word_options']['match_word'] ? 'checked="checked"' ''' class="check" /> '$txt['admin_match_whole'], '</label><br />
<label for="matchcase"><input type="checkbox" name="matchcase" id="matchcase" tabindex="'
$context['tabindex']++, '" '$context['reserved_word_options']['match_case'] ? 'checked="checked"' ''' class="check" /> '$txt['admin_match_case'], '</label><br />
<label for="matchuser"><input type="checkbox" name="matchuser" id="matchuser" tabindex="'
$context['tabindex']++, '" '$context['reserved_word_options']['match_user'] ? 'checked="checked"' ''' class="check" /> '$txt['admin_check_user'], '</label><br />
<label for="matchname"><input type="checkbox" name="matchname" id="matchname" tabindex="'
$context['tabindex']++, '" '$context['reserved_word_options']['match_name'] ? 'checked="checked"' ''' class="check" /> '$txt['admin_check_display'], '</label><br />
</div>

<input type="submit" value="'
$txt['save'], '" name="save_reserved_names" tabindex="'$context['tabindex']++, '" style="margin: 1ex;" />
</div>
</td>
</tr>
</table>
<input type="hidden" name="sa" value="reservednames" />
<input type="hidden" name="'
$context['session_var'], '" value="'$context['session_id'], '" />
</form>'
;
}

?>



register.template.php

sonunda yaptım cuk oturdu gayet güzel oldu.
dizine bunu atın gün ay yıl olarak yaşını da sorsun

Yağız...

Uğraşmanıza gerek yoktu, benim verdiğim değişikliği yapınca oluyor zaten ...

argenli

olmuyor. ben denedim çıkmadı. o yüzden uğraşıp onu yaptım. belkide benim forumdan kaynaklanıyordur.

Yağız...

Değişikliği yaptıktan sonra Yönetim > Çekirdek Ayarlar > Gelişmiş Profil Alanları'nı aktif edin ve en aşağıda bulunan Kaydet butonuna tıklayın. Bunu yaptıktan Gelişmiş Profil Alanları yazısı bir link olacaktır. Ona tıklayın. Gelen sayfada Doğum Tarihi yazsının karşısında bulunan iki seçeneği işaretleyin ve Kaydet butonuna basın.

okayok

Quote from: ▌grafitus▐ on November 09, 2009, 02:02:19 PM
Aynısını bende yapmıştım. Bende olmamıştı. :/ Neyse eline sağlık dostum.
bende yaptim olmadi  ::)

Yağız...


lostr


okayok

Quote from: Yağız... on November 13, 2009, 02:03:53 PM
Son yazılanı yaptınız mı?
Yagiz orayi dikat etmemistim  ;D ;D simdi oldu Allah razi olsun can dost tskler

smldmr

Acaba Dogum gününü vs. Zorunlu bilgi olarak isteme imkanimiz var mi?

PureLove™

Quote from: smldmr on November 14, 2009, 07:03:04 PM
Acaba Dogum gününü vs. Zorunlu bilgi olarak isteme imkanimiz var mi?
kayıt esnasında zorunlu kıl diye bir seçenek var diye biliyorum (kurmadım ama.)
- -

Herkesi İnsan Hakları Konusunda Düşünmeye Çağırıyoruz...
Hayat, İclal Aydın ile güzeldir.
www.iclalaydinfan.com

Gurbet_42



Advertisement: