#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 1, 2007 6:33:46 GMT -8
This will remove the 'Quote' button from selected posts..
Put it in your Global Footer (or the footer of the board you want it to effect).
<script type="text/javascript"> <!-- // Protect posts from being quoted..
var mod=/^(admin|mod1|mod2)$/i; // List of moderator's USERNAMES
if(location.href.match('action=display') && !pb_username.match(mod)) { var quote = document.links; for(q=0; q<quote.length; q++) { if(quote[q].href.match('"e=')) { if(quote[q].parentNode.parentNode.previousSibling.innerHTML.match(/ \[\*\]/)) { quote[q].style.display = 'none'; }}}}
if(document.postForm) { document.postForm.subject.value = document.postForm.subject.value.split(' [/li][li]')[0]; document.postForm.maxLength = '46'; var prt = document.createElement('FONT'); prt.id = 'protect'; prt.style.cursor = 'pointer'; prt.innerHTML = ' Click here to protect this post.'; document.postForm.subject.parentNode.appendChild(prt); document.getElementById('protect').onclick = function(){ this.previousSibling.maxLength = '50'; this.previousSibling.value += ' [/li][li]';} } // --> </script>
On the post page you should now see an option to protect the post beside the Subject, clicking it will add [/li][li] to the post title, marking it as protected..
|
|