|
Post by CrAzY_J on Sept 5, 2005 21:30:44 GMT -8
Description: When a guest posts/creates a message, they will need to fill in their email adress or they will be denied to post code placement: Global footers code creator: CrAzY_J code software: Proboards version 4 only <script type='text/javascript'> /*Guest need email when posting created by CrAzY_J (http://hatakeforum.proboards30.com) do not redistribute this code without the creator's permission*/
var naruto=document.body.getElementsByTagName("table"); if(naruto[1].innerHTML.match(/Welcome/)){ if(location.href.match(/post/)){ for(kunai=0;kunai<naruto.length;kunai++){ if( naruto[kunai].cellPadding=="4" && naruto[kunai].rows[0].cells[0].innerHTML.match(/Post\s(Message|Reply)/)){ var ino=naruto[kunai].insertRow(2); var sakura=ino.insertCell(0);var kakashi=ino.insertCell(1); sakura.className="windowbg";kakashi.className="windowbg"; sakura.innerHTML = "<font size='2'>Email:</font>";kakashi.innerHTML="<input id='hatake' size='40'>"; document.postForm.onsubmit = function(){ if(! document.getElementById('hatake').value.match(/.+?@.+?/)){ alert('Invalid Email'); return false; } document.postForm.message.value = document.getElementById('hatake').value+"\n\n"+document.postForm.message.value; } } } } }
</script>
Last Edit: Sept 6, 2005 19:26:47 GMT -8 by CrAzY_J
|
|