Various modifications for phpBB3Registering Countdown

Snippets for phpBB3
Previous topicNext topic
User avatar

Topic Author
dmzx
Founder
Founder
Magic user status: Offline
Posts: 5971
Joined: Jan 13th, '14, 20:45
    unknown unknown

Registering Countdown

Post by dmzx »

Registering Countdown

open styles/prosilver/template/ucp_agreement.html
Find This may be a partial find and not the whole line

Code: Select all

<input type="submit" name="agreed" id="agreed" value="{L_AGREE}" class="button1" />&nbsp;
			<input type="submit" name="not_agreed" value="{L_NOT_AGREE}" class="button2" />
Replace with Replace the preceding lines with the following

Code: Select all

<!--input type="submit" name="agreed" value="{L_AGREE}" class="button1" /-->&nbsp;
             <!--input type="submit" name="not_agreed" value="{L_NOT_AGREE}" class="button2" /-->

              <div align="center">

                <form method="post" action="{L_AGREE}"><input type="hidden" name="agreed" value="true"><input type="submit" id="Send" class="button1" style="width:180px; border:1px solid#CCCCCC" value="I accept the condition"></form>
               
                <script type="text/javascript">
                <!--
                var Sekunden = 10;
                var Buttonbeschriftung = "I accept the condition";
               
                document.getElementById('Send').disabled = true;
               
                for(i=1; i<=Sekunden; i++)
                {
                   window.setTimeout("ButtonAktualisieren(" + i + ")", i*1000);
                }
               
                window.setTimeout("ButtonFreigeben()", Sekunden*1000);
               
                function ButtonAktualisieren(VergangeneSekunden)
                {
                   if(VergangeneSekunden==Sekunden)
                   {
                      document.getElementById('Send').value = Buttonbeschriftung;
                   }
                   else
                   {
                      Restsekunden = Sekunden-VergangeneSekunden;
                      document.getElementById('Send').value = Buttonbeschriftung + " (" + Restsekunden + ") ";
                   }
                }
               
                function ButtonFreigeben()
                {
                   document.getElementById('Send').disabled = false;
                }
                //-->
                </script>

                </div>


Note the find maybe a little different just over write it i have it installed here and working.
binance.com ;) try it!
Previous topicNext topic