|
Post by Wormopolis on Jun 19, 2009 2:38:00 GMT -8
Browser Tested: IE and FF placement: Global Footer
hide Quick Reply (or insert message) on all pages of the thread except the last page of the thread to prevent ppl from using quick reply to accidentally reply to the wrong last poster.
code:
<script type="text/javascript"> <!-- // Quick Reply on last page only // v1.5 // By Wormopolis - WormoCodes.proboards.com // Keep header intact
var hideQuickReply=true; //set true or false - false will put message var quickReplyMessage='This is not the last page of posts!';
for (lnks=document.getElementsByTagName('a'), a=0; a<lnks.length; a++) { if (lnks[a].href.match(/page=/) && lnks[a].innerHTML.match('»')) { for (txt=document.getElementsByTagName('textarea'), t=txt.length-1; t>=0; t--) { if (txt[t].name && txt[t].name.match(/message/)) { var qr=txt[t].parentNode.parentNode.parentNode.parentNode; qr=qr.parentNode.parentNode.parentNode; if (hideQuickReply) { qr.style.display="none"; } else { txt[t].value=quickReplyMessage; } } break; } break; } } //--> </script>
Preview: none needed. it hides quick reply. or puts in a message.
|
|
JJ
Not New Member
Posts: 5
JJ said 0 great things
|
Post by JJ on Jul 6, 2009 14:04:33 GMT -8
Thank you, this will be very handy in my ABC games. People often miss the additional pages and repy messing up the flow.
|
|
|
Post by Streamstrider on Oct 5, 2011 2:34:34 GMT -8
*pokes* Got an update yet?
|
|
|
Post by Wormopolis on Oct 5, 2011 23:56:04 GMT -8
nothing yet. got a bunch of other stuff ahead of it.
|
|
|
Post by Streamstrider on Oct 6, 2011 0:16:14 GMT -8
Okies. Just checkin'. Thank you!
|
|
|
Post by Wormopolis on Oct 6, 2011 23:26:54 GMT -8
version upgrade 1.5: optional message instead of hide
|
|
|
Post by Streamstrider on Oct 7, 2011 16:03:27 GMT -8
*does a jig* Time for testing!
|
|
|
Post by Streamstrider on Oct 7, 2011 16:07:01 GMT -8
Do you think the multiple template code would interfere with this code, since it adds something to the Quick Reply box as well?
|
|
|
Post by Wormopolis on Oct 8, 2011 0:15:37 GMT -8
does it add something INTO the textarea?
|
|
|
Post by Streamstrider on Oct 9, 2011 0:53:24 GMT -8
No, it does not. It just adds a drop down above the textarea.
|
|
|
Post by Wormopolis on Oct 9, 2011 10:16:34 GMT -8
ok. well this code just puts some default text into the textarea, but doesnt disable it. they willbe able to use other quick reply stuff on whatever they type into it.
|
|
|
Post by Streamstrider on Oct 11, 2011 0:48:12 GMT -8
Alright. It's showing up now. Must've been doing something silly. XD Thanks, Wormo!
|
|