lebanon's contact inviter, redesigned!
This modification is in the archives.
Find the template: invitecode and replace with the code at the bottom of this post!
Demo provided at http://www.alchemist-team.net/vb/inviter.php Or you can checkout the screenie attached! Needs this mod: Contact Invited by Lebanon! If you want updates, mark installed.. if not, your choice v2.00 Completly redone, looks nothing like the original, instead it looks like it is a block in your forum! Some HTML fixed to remove some errors, see screen shot for preview of how.. "sexy" it is v1.00 Original release HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head><title>$vboptions[bbtitle] - Inviting!</title> $headinclude <script type='text/javascript'> function emailCheck (emailStr) { var emailPat=/^(.+)@(.+)$/ var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]" var validChars="\[^\\s" + specialChars + "\]" var quotedUser="(\"[^\"]*\")" var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/ var atom=validChars + '+' var word="(" + atom + "|" + quotedUser + ")" var userPat=new RegExp("^" + word + "(\\." + word + ")*$") var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$") var matchArray=emailStr.match(emailPat) if (matchArray==null) { alert("Email address seems incorrect - Please type a valid email address") return false } var user=matchArray[1] var domain=matchArray[2] if (user.match(userPat)==null) { alert("The username doesn't seem to be valid.") return false } var IPArray=domain.match(ipDomainPat) if (IPArray!=null) { for (var i=1;i<=4;i++) { if (IPArray[i]>255) { alert("Destination IP address is invalid!") return false } } return true } var domainArray=domain.match(domainPat) if (domainArray==null) { alert("The domain name doesn't seem to be valid.") return false } var atomPat=new RegExp(atom,"g") var domArr=domain.match(atomPat) var len=domArr.length if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3) { alert("The address must end in a three-letter domain, or two letter country.") return false } if (len<2) { var errStr="This address is missing a hostname!" alert(errStr) return false } return true; document.emailform.reset(); } </script> </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <tr><td class="tcat" width="100%"><span class="normal">Welcome $bbuserinfo[username]</span></td></tr> <tr align="center"><td class="thead">Your Permanent Affiliate Link is: <a href="$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]</a></td> </tr> <tr><td align="center" class="alt1"><font size="2"> <a href="inviter.php?domain=myhotmail"> MSN</a> | <a href="inviter.php?domain=myhotmail"> Hotmail</a> | <a href="inviter.php?domain=myaol"> AOL</a> | <a href="inviter.php?domain=mygmail"> GMail</a> | <a href="inviter.php?domain=myindiatimes"> Indiatimes</a> | <a href="inviter.php?domain=mylycos"> Lycos</a> | <a href="inviter.php?domain=mymail"> email</a> | <a href="inviter.php?domain=myrediffmail"> Myrediffmail</a> | <a href="inviter.php?domain=myyahoo">Yahoo!</a> </font></td></tr></table> <table><tr> <td height="59" bgcolor="#FFFFFF"> <tr><td class="alt1" align="left"><form name="emailform" action="inviter.php?domain=$get" method=post onSubmit="return emailCheck(this.username.value);"> <input type=hidden name=domain value=$get></td><tr /> </td> </td></table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center" style="border-bottom-width:0px"><tr align="center"><td class="thead">Login!</td></tr> <tr><td class=alt2 height="59"><center><IMG src="images/tinviter/$img"></center></td></tr> <tr><td class="alt1" align="left">Username<br /><input type="text" name="username" size="34" value="EMail"><br /> Password<br /><input type="password" name="password" size="34" value="Password"><br /><br /><center><input type="submit" value="Import My Contacts!"></form></center></td><tr /> </table> $invitecode <div align="center"> <table border="0" width="100%" id="table1"> <tr> <td> <p align="center"><font size="1"><a href="http://www.tchatting.com/forum">TChatting</a> & <a href="http://www.alchemist-team.net/">Alchemist-Team</a></font></p></td> </tr> </table> </div> $footer </body> </html> Download No files for download. Screenshots |