GeekPoint Forum Subscribe to Forum RSS WhoIsHostingThis.com
Please register or login on GeekPoint Forum.
It takes only a minute to register, & moreover,
majority of the ads shown will be removed!
Login OR Register
Register a Free Account
Reply
 
LinkBack Thread Tools
Old 12-17-2007   #1
godkillah godkillah is offline
Junior Geek
Join Date: Feb 2007 Posts: 65
Default [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
  Reply With Quote
Reply
Thread Tools