Help : How Can I Make Users When They Register Got Free VIP ?

Status
Not open for further replies.

ButtLord420

Please delete my devbest account.
Dec 11, 2010
463
32
Change the user permissions in the database maybe. if not then go into app/tpl/skins/{skin-name}/register.php (if you are using rev) and change the default registration rank.
 

Cairokee

Member
Jan 30, 2013
39
1
Please post your register.php page and I'll edit it for you.
OK ,


PHP:
<div id="container">
<a href="index.php"><img src="app/tpl/skins/Mango/images/logo.png" id="logo" border="0"/></a>
<span id="stats">{online} Users Online!</span>
<div id="clear"></div>
<hr/> 
<?php if(isset($template->form->error)) { echo '<div id="message">'.$template->form->error.'</div>'; } ?>
Welcome In Legand Hotel Register Page , Start With 10.000 Coins , 50.000 Pixels , New Furniture , Join Us Now .
<form action="register" method="post">
<table width="100%" border="0">
<tr>
<td width="25%">Username :</td>
<td width="75%">
<input type="text" name="reg_username" id="register" value="<?php echo $template->form->reg_username; ?>"/>
 
</tr>
<tr>
<td>Password :</td>
<td><input type="password" name="reg_password" id="register"/></td>
</tr>
<tr>
<td>Confirm Password :</td>
<td><input type="password" name="reg_rep_password" id="register"/></td>
</tr>
<tr>
<td>Email :</td>
<td><input type="text" name="reg_email" id="register" value="<?php echo $template->form->reg_email; ?>"/></td>
</tr>
<tr>
<td valign="top">Security Key :</td>
<td>
<input type="password" name="reg_seckey" id="register"/>
</td>
</tr>
<tr>
<td><input type="submit" name="register" id="button" value="Register"/></td>
</tr>
</table>
</form>
<hr/>
<center>
<center>Powered By <b></b><a href="">Legand Hotel</a></b> Coded By <b>Cairokee</b> | Design By <b>Cairokee</b> | Copyright Legand Hotel .</center>
</center>
</div>
 

Cairokee

Member
Jan 30, 2013
39
1
Sorry ,

PHP:
<div id="container">
<a href="index.php"><img src="app/tpl/skins/Mango/images/logo.png" id="logo" border="0"/></a>
<span id="stats">{online} Users Online!</span>
<div id="clear"></div>
<hr/> 
<?php if(isset($template->form->error)) { echo '<div id="message">'.$template->form->error.'</div>'; } ?>
Welcome In Legand Hotel Register Page , Start With 10.000 Coins , 50.000 Pixels , New Furniture , Join Us Now .
<form action="register" method="post">
<table width="100%" border="0">
<tr>
<td width="25%">Username :</td>
<td width="75%">
<input type="text" name="reg_username" id="register" value="<?php echo $template->form->reg_username; ?>"/>
 
</tr>
<tr>
<td>Password :</td>
<td><input type="password" name="reg_password" id="register"/></td>
</tr>
<tr>
<td>Confirm Password :</td>
<td><input type="password" name="reg_rep_password" id="register"/></td>
</tr>
<tr>
<td>Email :</td>
<td><input type="text" name="reg_email" id="register" value="<?php echo $template->form->reg_email; ?>"/></td>
</tr>
<tr>
<td valign="top">Security Key :</td>
<td>
<input type="password" name="reg_seckey" id="register"/>
</td>
</tr>
<tr>
<td><input type="submit" name="register" id="button" value="Register"/></td>
</tr>
</table>
</form>
<hr/>
<center>
Powered by RevCMS coded by Kryptos | Design by dannyy94 | Copyright © Legand Hotel</center>
</div>
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,132
2,457
Go to app -> open class.users.php -> search:
PHP:
$engine->query("INSERT INTO users (username, password, mail, motto, credits, activity_points, rank, look, gender, seckey, ip_last, ip_reg, account_created, last_online, auth_ticket) VALUES('" . $username . "', '" . $password . "', '" . $email . "', '" . $motto . "', '" . $credits . "', '" . $pixels . "', '" . $rank . "', '" . $figure . "', '" . $gender . "', '" . $seckey . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . time() . "', '" . time() . "', '" . $sessionKey . "')");

replace with:
PHP:
$engine->query("INSERT INTO users (username, password, mail, motto, credits, activity_points, rank, look, gender, seckey, ip_last, ip_reg, account_created, last_online, auth_ticket, vip) VALUES('" . $username . "', '" . $password . "', '" . $email . "', '" . $motto . "', '" . $credits . "', '" . $pixels . "', '" . $rank . "', '" . $figure . "', '" . $gender . "', '" . $seckey . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . time() . "', '" . time() . "', '" . $sessionKey . "', '1')");

And I hope you don't take credit for a CMS you didn't code/designed yourself again. It's unrespectfull against the creators of RevCMS and childish.
 
Status
Not open for further replies.

Users who are viewing this thread

Top