diff options
Diffstat (limited to 'phpBB/styles')
| -rw-r--r-- | phpBB/styles/prosilver/template/ucp_agreement.html | 16 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/ucp_register.html | 13 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/viewtopic_print.html | 1 | ||||
| -rw-r--r-- | phpBB/styles/subsilver2/template/ucp_agreement.html | 28 | ||||
| -rw-r--r-- | phpBB/styles/subsilver2/template/ucp_register.html | 23 |
5 files changed, 77 insertions, 4 deletions
diff --git a/phpBB/styles/prosilver/template/ucp_agreement.html b/phpBB/styles/prosilver/template/ucp_agreement.html index 99ca73ec2f..05cb281873 100644 --- a/phpBB/styles/prosilver/template/ucp_agreement.html +++ b/phpBB/styles/prosilver/template/ucp_agreement.html @@ -1,5 +1,19 @@ <!-- INCLUDE overall_header.html --> +<script type="text/javascript" defer="defer" > +// <![CDATA[ + function disable(disabl) + { + document.getElementById("agreed").disabled = disabl; + } + + <!-- IF S_TIME --> + onload_functions.push('disable(true)'); + setTimeout("disable(false)", {S_TIME}); + <!-- ENDIF --> +// ]]> +</script> + <!-- IF S_SHOW_COPPA or S_REGISTRATION --> <form method="post" action="{S_UCP_ACTION}" id="agreement"> @@ -19,7 +33,7 @@ <!-- IF S_SHOW_COPPA --> <strong><a href="{U_COPPA_NO}" class="button1">{L_COPPA_NO}</a></strong> <a href="{U_COPPA_YES}" class="button2">{L_COPPA_YES}</a> <!-- ELSE --> - <input type="submit" name="agreed" value="{L_AGREE}" class="button1" /> + <input type="submit" name="agreed" id="agreed" value="{L_AGREE}" class="button1" /> <input type="submit" name="not_agreed" value="{L_NOT_AGREE}" class="button2" /> <!-- ENDIF --> </fieldset> diff --git a/phpBB/styles/prosilver/template/ucp_register.html b/phpBB/styles/prosilver/template/ucp_register.html index dad72c5aa6..de043aa081 100644 --- a/phpBB/styles/prosilver/template/ucp_register.html +++ b/phpBB/styles/prosilver/template/ucp_register.html @@ -10,6 +10,17 @@ document.forms['register'].change_lang.value = lang_iso; document.forms['register'].submit.click(); } + + function disable(disabl) + { + document.getElementById("submit").disabled = disabl; + } + + <!-- IF S_TIME --> + onload_functions.push('disable(true)'); + setTimeout("disable(false)", {S_TIME}); + <!-- ENDIF --> + // ]]> </script> @@ -112,7 +123,7 @@ <fieldset class="submit-buttons"> {S_HIDDEN_FIELDS} <input type="reset" value="{L_RESET}" name="reset" class="button2" /> - <input type="submit" name="submit" value="{L_SUBMIT}" class="button1" /> + <input type="submit" name="submit" id ="submit" value="{L_SUBMIT}" class="button1" /> </fieldset> <span class="corners-bottom"><span></span></span></div> diff --git a/phpBB/styles/prosilver/template/viewtopic_print.html b/phpBB/styles/prosilver/template/viewtopic_print.html index a7d9731ab2..669c58d547 100644 --- a/phpBB/styles/prosilver/template/viewtopic_print.html +++ b/phpBB/styles/prosilver/template/viewtopic_print.html @@ -11,6 +11,7 @@ <meta name="copyright" content="2002-2006 phpBB Group" /> <meta name="keywords" content="" /> <meta name="description" content="" /> +<meta name="robots" CONTENT="noindex" /> {META} <title>{SITENAME} • {PAGE_TITLE}</title> diff --git a/phpBB/styles/subsilver2/template/ucp_agreement.html b/phpBB/styles/subsilver2/template/ucp_agreement.html index f695228d00..04d978c70e 100644 --- a/phpBB/styles/subsilver2/template/ucp_agreement.html +++ b/phpBB/styles/subsilver2/template/ucp_agreement.html @@ -1,5 +1,31 @@ <!-- INCLUDE overall_header.html --> +<script type="text/javascript" defer="defer" > +// <![CDATA[ + + var old_func = window.onload; + + function disable(disabl) + { + document.getElementById("agreed").disabled = disabl; + } + + function disable_and_handle() + { + if (old_func) + { + old_func(); + } + disable(true); + } + + <!-- IF S_TIME --> + window.onload = disable_and_handle; + setTimeout("disable(false)", {S_TIME}); + <!-- ENDIF --> +// ]]> +</script> + <!-- IF S_SHOW_COPPA or S_REGISTRATION --> <form method="post" action="{S_UCP_ACTION}"> @@ -18,7 +44,7 @@ <td> <span class="genmed"><br />{L_TERMS_OF_USE}<br /><br /></span> <div align="center"> - <input class="btnlite" type="submit" name="agreed" value="{L_AGREE}" /><br /><br /> + <input class="btnlite" type="submit" id="agreed" name="agreed" value="{L_AGREE}" /><br /><br /> <input class="btnlite" type="submit" name="not_agreed" value="{L_NOT_AGREE}" /> </div> </td> diff --git a/phpBB/styles/subsilver2/template/ucp_register.html b/phpBB/styles/subsilver2/template/ucp_register.html index cea48f17fa..159c663915 100644 --- a/phpBB/styles/subsilver2/template/ucp_register.html +++ b/phpBB/styles/subsilver2/template/ucp_register.html @@ -10,6 +10,27 @@ document.forms['register'].change_lang.value = lang_iso; document.forms['register'].submit.click(); } + + var old_func = window.onload; + + function disable(disabl) + { + document.getElementById("submit").disabled = disabl; + } + + function disable_and_handle() + { + if (old_func) + { + old_func(); + } + disable(true); + } + + <!-- IF S_TIME --> + window.onload = disable_and_handle; + setTimeout("disable(false)", {S_TIME}); + <!-- ENDIF --> // ]]> </script> @@ -102,7 +123,7 @@ <!-- ENDIF --> <tr> - <td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" type="submit" name="submit" value="{L_SUBMIT}" /> <input class="btnlite" type="reset" value="{L_RESET}" name="reset" /></td> + <td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" type="submit" name="submit" id="submit" value="{L_SUBMIT}" /> <input class="btnlite" type="reset" value="{L_RESET}" name="reset" /></td> </tr> </table> {S_FORM_TOKEN} |
