Peter
New Member
God
Posts: 6
|
Post by Peter on Oct 31, 2004 15:49:15 GMT
Created by Uchiha Sasuke
alright, this code will ask for a users board url when making a thread...
the URL, has to be a valid PB URL, that's the plus side, just add this to the board footer
<script> /* Board URL aquired when making a thread Coded by NCGI (Uchiha Sasuke) This post may not be reposted or edited with out express permission from it's creator */ iTD = document.getElementsByTagName('td') function getURL() { if (document.postmodify.url.value.match(/http:\/\/\w+.proboards\d{1,2}.com/gi)) {document.postmodify.message.value='Board URL: '+document.postmodify.url.value+'\n\n'+document.postmodify.message.value document.postmodify.submit(true)} else {if (document.postmodify.url.value=="") {alert('Please enter your board URL')} else {alert('That is not a valid Proboard address')}}}
for (t=0;t<iTD.length;t++) { if (iTD[t].width=="23%" && iTD[t].innerHTML.match(/<b>Message icon:<\/b>/gi) && document.postmodify.subject.value=="") { URLRow = iTD[t].parentNode.parentNode.insertRow() URLRow.insertCell().innerHTML='<font size="2"><b>Board URL:</b></font>' URLRow.insertCell().innerHTML='<input type="text" name="url" size="40">' document.postmodify.post[0].onmouseup = getURL;}} </script>
|
|