Post by iAlex on Dec 19, 2007 19:55:24 GMT -5
This code will allow each user to select whether others will be able to quote their individual post.
It will add this UBBC image with the others:
You may continue using it, or change it via the URL at the top of the code.
When clicked, it will add a [noquote] UBBC tag to the message area. If you use this tag, then the quote button will be removed from that post, so others will be unable to quote your post.
Staff will be able to quote no matter what.
Global Footer.
Cross Browser.
Open Source.
<script type="text/javascript">
<!--
/*Stop Posts Being Quoted UBBC - By iAlex - Open Source*/
var iNoQuoteUBBC="http://img509.imageshack.us/img509/4647/inonononoquotequ5.png"; //UBBC image URL
if(document.postForm && document.postForm.color){
var iNoSpan=document.createElement('span');
iNoSpan.innerHTML='<a href="javascript:add(\'[noquote]\')"><img src="'+iNoQuoteUBBC+'" title="No Quote" alt="No Quote" border="0"></a>';
var iNoColour=document.postForm.color;
iNoColour.parentNode.appendChild(iNoSpan);
iNoColour.style.position='relative';
iNoColour.style.bottom='8px';
}
if(location.href.match(/action=(display|(user)?recent|calendarview|search2|pmview)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
var iTd=document.getElementsByTagName('td');
var i=iTd.length;
while(--i){
if(iTd.item(i).width=="80%" && iTd.item(i).className.match(/windowbg(2)?/) && iTd.item(i).height=="100%" && iTd.item(i).align=="left" && iTd.item(i).vAlign=="top" && iTd.item(i).innerHTML.match(/\[noquote\]/i)){
if(!iTd.item(5).innerHTML.match(/\[Admin\]/)){
var iPic=iTd.item(i).getElementsByTagName('img');
var a=iPic.length;
while(--a){
if(iPic.item(a).alt.match(/\[Quote\]/)){
iPic.item(a).parentNode.style.display='none';
break;
}
}
}
iTd.item(i).innerHTML=iTd.item(i).innerHTML.replace(/\[noquote\]/ig, '');
}
}
}
//-->
</script>
It will add this UBBC image with the others:
You may continue using it, or change it via the URL at the top of the code.
When clicked, it will add a [noquote] UBBC tag to the message area. If you use this tag, then the quote button will be removed from that post, so others will be unable to quote your post.
Staff will be able to quote no matter what.
Global Footer.
Cross Browser.
Open Source.
<script type="text/javascript">
<!--
/*Stop Posts Being Quoted UBBC - By iAlex - Open Source*/
var iNoQuoteUBBC="http://img509.imageshack.us/img509/4647/inonononoquotequ5.png"; //UBBC image URL
if(document.postForm && document.postForm.color){
var iNoSpan=document.createElement('span');
iNoSpan.innerHTML='<a href="javascript:add(\'[noquote]\')"><img src="'+iNoQuoteUBBC+'" title="No Quote" alt="No Quote" border="0"></a>';
var iNoColour=document.postForm.color;
iNoColour.parentNode.appendChild(iNoSpan);
iNoColour.style.position='relative';
iNoColour.style.bottom='8px';
}
if(location.href.match(/action=(display|(user)?recent|calendarview|search2|pmview)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
var iTd=document.getElementsByTagName('td');
var i=iTd.length;
while(--i){
if(iTd.item(i).width=="80%" && iTd.item(i).className.match(/windowbg(2)?/) && iTd.item(i).height=="100%" && iTd.item(i).align=="left" && iTd.item(i).vAlign=="top" && iTd.item(i).innerHTML.match(/\[noquote\]/i)){
if(!iTd.item(5).innerHTML.match(/\[Admin\]/)){
var iPic=iTd.item(i).getElementsByTagName('img');
var a=iPic.length;
while(--a){
if(iPic.item(a).alt.match(/\[Quote\]/)){
iPic.item(a).parentNode.style.display='none';
break;
}
}
}
iTd.item(i).innerHTML=iTd.item(i).innerHTML.replace(/\[noquote\]/ig, '');
}
}
}
//-->
</script>