Kayıtta 60 sn bekletme süre görüntülü

Başlatan snrj, 07 Mar 2016 19:30

« önceki - sonraki »

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

*

  1. 3,078

  2. 584

  3. 964
07 Mar 2016 19:30 Son düzenlenme: 08 Mar 2016 16:41 snrj

bu konu daki istek üzerine araştırılıp yapılmıştır

kayıt olurken sözleşme kısmındaki kabul et butonunda 60 sn geri saydıktan sonra butonu tıklanır yapar
örnek resim


yapımı
Register.template.php
bul
// Before showing users a registration form, show them the registration agreement.
function template_registration_agreement()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<form action="', $scripturl, '?action=register" method="post" accept-charset="', $context['character_set'], '" id="registration">
<div class="cat_bar">
<h3 class="catbg">', $txt['registration_agreement'], '</h3>
</div>
<span class="upperframe"><span></span></span>
<div class="roundframe">
<p>', $context['agreement'], '</p>
</div>
<span class="lowerframe"><span></span></span>
<div id="confirm_buttons">';

// Age restriction in effect?
if ($context['show_coppa'])
echo '
<input type="submit" name="accept_agreement" value="', $context['coppa_agree_above'], '" class="button_submit" /><br /><br />
<input type="submit" name="accept_agreement_coppa" value="', $context['coppa_agree_below'], '" class="button_submit" />';
else
echo '
<input type="submit" name="accept_agreement" value="', $txt['agreement_agree'], '" class="button_submit" />';

echo '
</div>
<input type="hidden" name="step" value="1" />
</form>';

}
değiştir
// Before showing users a registration form, show them the registration agreement.
function template_registration_agreement()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<form action="', $scripturl, '?action=register" method="post" name="registration" accept-charset="', $context['character_set'], '" id="registration">
<div class="cat_bar">
<h3 class="catbg">', $txt['registration_agreement'], '</h3>
</div>
<span class="upperframe"><span></span></span>
<div class="roundframe">
<p>', $context['agreement'], '</p>
</div>
<span class="lowerframe"><span></span></span>
<div id="confirm_buttons">';

// Age restriction in effect?
if ($context['show_coppa'])
echo '
<input type="submit" name="accept_agreement" value="', $context['coppa_agree_above'], '" class="button_submit" /><br /><br />
<input type="submit" name="accept_agreement_coppa" value="', $context['coppa_agree_below'], '" class="button_submit" />';
else
echo '
<input type="submit" name="accept_agreement" value="', $txt['agreement_agree'], '" class="button_submit" />';

echo '
</div>
<input type="hidden" name="step" value="1" />
</form><script type="text/javascript"><!-- // --><![CDATA[
var secs = 60;
var wait = secs * 1000;
document.registration.accept_agreement.disabled=true;
for(i=1;i<=secs;i++) {
window.setTimeout("update(" + i + ")", i * 1000);
}
window.setTimeout("timer()", wait);
function update(num) {
if(num == (wait/1000)) {
  document.registration.accept_agreement.value = "', $txt['agreement_agree'], '";
}
else {
  printnr = (wait/1000)-num;
  document.registration.accept_agreement.value = "',$txt['welmsg_please'],' (" + printnr + ") saniye bekleyin !";
}
}
function timer() {
document.registration.accept_agreement.disabled=false;
}
// ]]></script>';

}

süresini değiştirmek isteyen arkadaşlar
ekledikleri koddaki
var secs = 60;
bulup kaç sn olmasını istiyorlarsa onu yazabilirler




  1. 632

  2. 251


MENU ×