|
Post by Streamstrider on Oct 18, 2011 16:57:21 GMT -8
Possible? For those who have the power to lock a thread in that board normally, to see a checkbox option to lock the thread in Quick Reply?
|
|
|
Post by Wormopolis on Oct 18, 2011 19:33:51 GMT -8
testing in firefox
|
|
|
Post by Wormopolis on Oct 18, 2011 19:34:55 GMT -8
testing in chrome
|
|
|
Post by Wormopolis on Oct 18, 2011 19:36:05 GMT -8
testing in IE
|
|
|
Post by Wormopolis on Oct 18, 2011 19:45:16 GMT -8
IE test again
|
|
|
Post by Wormopolis on Oct 18, 2011 19:46:05 GMT -8
firefox test again
|
|
|
Post by Wormopolis on Oct 18, 2011 19:46:37 GMT -8
chrome test again
|
|
|
Post by Silly Test Account on Oct 18, 2011 20:07:13 GMT -8
curious what someone without the power to lock thread will experience...
|
|
|
Post by Silly Test Account on Oct 18, 2011 20:08:23 GMT -8
apparently nothing... but now I have to make it not show for those who cant normally see the lock button
|
|
|
Post by Wormopolis on Oct 18, 2011 20:16:04 GMT -8
and here we go...
<script type="text/javascript"> <!-- // quick reply lockbox // request by streamstrider // code by Wormopolis // www.wormocodes.com
inp=document.getElementsByTagName('input'); if (!document.postForm) { var lockCheck=false; for (lnk=document.getElementsByTagName('a'), ll=lnk.length-1; ll>0; ll--) { if (lnk[ll].href.match(/action=lockthread/)) lockCheck=true; if (lnk[ll].href.match(/action=post/)) break; } if (lockCheck) { for (ii=0; ii<inp.length; ii++) { if (inp[ii].type=='hidden' && inp[ii].name=='subject') { nwinp=document.createElement('span'); nwinp.innerHTML='<input type="checkbox" name="lock" value="1" title="lock thread upon submit">'; inp[ii].parentNode.insertBefore(nwinp,inp[ii].nextSibling); break; } } } } //--> </script>
|
|
|
Post by Streamstrider on Oct 19, 2011 17:09:57 GMT -8
Would it be possible to move the checkbox to where the red box is in the following screenshot? With the words "Lock Thread" to the right of the checkbox?
|
|
|
Post by Wormopolis on Oct 19, 2011 19:02:03 GMT -8
bah.. I knew you were going to ask that.. I was trying to make it subtle.
|
|
|
Post by Wormopolis on Oct 19, 2011 19:04:26 GMT -8
change this
inp[ii].parentNode.insertBefore(nwinp,inp[ii].nextSibling);
to this
inp[ii].parentNode.replaceChild(nwinp,inp[ii].parentNode.lastChild);
replace this
nwinp.innerHTML='<input type="checkbox" name="lock" value="1" title="lock thread upon submit">';
with
nwinp.innerHTML='<input type="checkbox" name="lock" value="1"> lock thread upon submit';
|
|
|
Post by Streamstrider on Oct 19, 2011 20:47:56 GMT -8
Well, I can't make everything easy for you.
EDIT: And thank you.
|
|