Brad
Well-Known Member
Hey People im releasing An little plugin for UberCMS called referral system, all this is if users invite there friends they will put the username who invited them then you can reward them manually.
I think This Works With RevCMS but im not 100% Sure.
Database Sql
Tpl File (place in /includes/tpl/ Name As referrals
Screenshot:
Credits:
Buzz Hotel & Fizz Hotel
I think This Works With RevCMS but im not 100% Sure.
Database Sql
Code:
DROP TABLE IF EXISTS `referalls`;
CREATE TABLE `referalls` (
`Username` varchar(60) CHARACTER SET latin1 NOT NULL,
`By` varchar(60) CHARACTER SET latin1 NOT NULL,
`Valid` smallint(1) NOT NULL DEFAULT '1',
`Done` smallint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Tpl File (place in /includes/tpl/ Name As referrals
Code:
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">Referrals</h2>
<div class="box-content">
Have you been invited by someone?<br>
<form method="post">
<input type="hidden" name="username" maxlength="30"/ value="%habboname%"> <br /> <br />
<b>I was invited by: </b><br /><input type="text" name="d1" maxlength="60"/ value=""> <br />
<?php
if(isset($_POST["BUY"]))
{
dbquery("INSERT INTO `referalls` (`Username`, `By`) VALUES ('" . $_POST["username"] . "', '" . $_POST["d1"] . "')");
}
?>
<input type="submit" value="Submit" name="BUY" /></form>
<br><i>All accounts will be ip-checked before a reward is given.</i>
</div></div></div>
<script type="text/javascript">
HabboView.run();
</script>
Screenshot:
You must be registered for see links
Credits:
Buzz Hotel & Fizz Hotel