12-17-2007
|
#1 |
| Junior Geek Join Date: Feb 2007 Posts: 65 | [invisionfree] limit signature links this code allows you to choose a maximum number of images in the signature,
i noticed VB has this feature so i thought IPB1.3 should have it
Preview: None
Quote:
<script>
/*Limit images in the signature
by Godkillah
phantom-designs.net*/
var limit=3 //how many images are allowed in the signature
if(location.href.match(/act=UserCP&CODE=22/i)){
document.forms['REPLIER'].onsubmit=function(){
sig=document.forms['REPLIER'].Post.value.toLowerCase()
if(sig.split('\[img\]').length>limit){
alert("You have got to many images in your signature, you're only allowed to have "+limit+" images")
return false
}}}
</script> should be pretty self explaining,
add to footer,
enjoy |
|
| |