Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] Account Settings [RevCMS]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Clit" data-source="post: 130882" data-attributes="member: 13412"><p>I wanted my hotel to be a little more unique so I went ahead to configure these settings.</p><p> </p><p>Screenshot:</p><p><img src="http://www.vinnietalotta.com/screensnapr/UnpHEOyT.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>Let us begin,</p><p> </p><p>First, go to,</p><p><em>app\tpl\skins\(your skin)\account.php (or whatever the account settings file is)</em></p><p> </p><p>Find this similar code, and replace with the code below. From <form method="post" id="profileForm"> TO </form></p><p>[PHP]<form method="post" id="profileForm"></p><p> <h3>Your motto</h3></p><p> <p>Your motto is what other users will see on your {hotelName} Home page and when clicking your user in the Hotel.</p></p><p> <p><label>Motto:<input type="text" name="acc_motto" size="32" maxlength="32" value="{motto}" id="avatarmotto"></label></p></p><p> </p><p><h3>Block Trading</h3></p><p> <p>Setting to "0" will not allow any user to trade you. Setting to "1" will allow any user to trade you.</p></p><p> <p><label>Setting:<input type="text" name="acc_trade" size="32" maxlength="32" value="{acc_trade}" id="avatarmotto"></label></p></p><p> </p><p><h3>Block New Friends</h3></p><p> <p>Setting to "1" will not allow any user to add you. Setting to "0" will allow any user to add you.</p></p><p> <p><label>Setting:<input type="text" name="acc_frndreq" size="32" maxlength="32" value="{acc_frndreq}" id="avatarmotto"></label></p></p><p> </p><p> <h3>Online Visibility</h3></p><p> <p>Setting to "1" will not allow other users to notice your online status. Setting to "0" will allow other users to notice your online status. <br/> 0 = ON | 1 = OFF</p></p><p> <p><label>Setting:<input type="text" name="acc_online" size="32" maxlength="32" value="{acc_online}" id="avatarmotto"></label></p></p><p> </p><p> <h3>Follow Ability</h3></p><p> <p>Setting to "1" will not allow your friends to Follow you. Setting to "0" will allow your friends to follow you.<br/> 0 = ON | 1 = OFF</p></p><p> <p><label>Setting:<input type="text" name="acc_follow" size="32" maxlength="32" value="{acc_follow}" id="avatarmotto"></label></p></p><p> </p><p> <h3>Your email address</h3></p><p> <p>Your email address is what you may need to reset your password incase you forget it.</p></p><p> <p><label>Email:<input type="text" name="acc_email" size="32" value="{email}" id="avatarmotto"></p></p><p> <h3>Current Password</h3></p><p> <p>Your current password is the password you use to login to the main website. Only fill this in if you wish to change your login password.</p></p><p> <p><label>Password:<input type="password" name="acc_old_password" value="" id="avatarmotto"></p></p><p> <h3>New Password</h3></p><p> <p>Please only change this field if you wish to change your login password.</p></p><p> <p><label>New Password:<input type="password" name="acc_new_password" value="" id="avatarmotto"></p> </p><p> </p><p> <div class="settings-buttons"></p><p> <input type="submit" value="Save changes" name="account" class="submit" style="float:right"></p><p> </div></p><p> </form>[/PHP]</p><p> </p><p>Then, CTRL+S (Saves), Then Exit out of that document.</p><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p><p>Next, go to,</p><p><em>app\class.users.php</em></p><p> </p><p>Find Account Settings, and Replace with the code below.</p><p>[PHP]/*-------------------------------Account settings-------------------------------------*/</p><p> </p><p> final public function updateAccount()</p><p> {</p><p> global $template, $_CONFIG, $core, $engine;</p><p> </p><p> if(isset($_POST['account']))</p><p> {</p><p> </p><p> if(isset($_POST['acc_frndreq']) && strlen($_POST['acc_frndreq']) < 2 && $_POST['acc_frndreq'] != $this->getInfo($_SESSION['user']['id'], 'block_newfriends'))</p><p> {</p><p> $this->updateUser($_SESSION['user']['id'], 'block_newfriends', $engine->secure($_POST['acc_frndreq']));</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/account');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Setting is invalid.';</p><p> }</p><p> </p><p> </p><p> </p><p> </p><p> if(isset($_POST['acc_trade']) && strlen($_POST['acc_trade']) < 2 && $_POST['acc_trade'] != $this->getInfo($_SESSION['user']['id'], 'accept_trading'))</p><p> {</p><p> $this->updateUser($_SESSION['user']['id'], 'accept_trading', $engine->secure($_POST['acc_trade']));</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/account');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Setting is invalid.';</p><p> }</p><p> </p><p> </p><p> if(isset($_POST['acc_online']) && strlen($_POST['acc_online']) < 2 && $_POST['acc_online'] != $this->getInfo($_SESSION['user']['id'], 'hide_online'))</p><p> {</p><p> $this->updateUser($_SESSION['user']['id'], 'hide_online', $engine->secure($_POST['acc_online']));</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/account');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Setting is invalid.';</p><p> }</p><p> </p><p> if(isset($_POST['acc_follow']) && strlen($_POST['acc_follow']) < 2 && $_POST['acc_follow'] != $this->getInfo($_SESSION['user']['id'], 'hide_inroom'))</p><p> {</p><p> $this->updateUser($_SESSION['user']['id'], 'hide_inroom', $engine->secure($_POST['acc_follow']));</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/account');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Setting is invalid.';</p><p> </p><p> }</p><p> </p><p> </p><p> </p><p> if(isset($_POST['acc_motto']) && strlen($_POST['acc_motto']) < 30 && $_POST['acc_motto'] != $this->getInfo($_SESSION['user']['id'], 'motto'))</p><p> {</p><p> $this->updateUser($_SESSION['user']['id'], 'motto', $engine->secure($_POST['acc_motto']));</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/account');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Motto is invalid.';</p><p> }</p><p> </p><p> if(isset($_POST['acc_email']) && $_POST['acc_email'] != $this->getInfo($_SESSION['user']['id'], 'mail'))</p><p> {</p><p> if($this->validEmail($_POST['acc_email']))</p><p> {</p><p> $this->updateUser($_SESSION['user']['id'], 'mail', $engine->secure($_POST['acc_email']));</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/account');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Email is not valid';</p><p> return;</p><p> }</p><p> }</p><p> </p><p> if(!empty($_POST['acc_old_password']) && !empty($_POST['acc_new_password']))</p><p> {</p><p> if($this->userValidation($this->getInfo($_SESSION['user']['id'], 'username'), $core->hashed($_POST['acc_old_password'])))</p><p> {</p><p> if(strlen($_POST['acc_new_password']) >= 8)</p><p> {</p><p> $this->updateUser($_SESSION['user']['id'], 'password', $core->hashed($_POST['acc_new_password']));</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/me');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'New password is too short';</p><p> return;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Current password is wrong';</p><p> return;</p><p> }</p><p> }</p><p> }</p><p> }</p><p> </p><p> </p><p> final public function turnOn($k)</p><p> {</p><p> $j = $this->getID($k);</p><p> $this->createSSO($j);</p><p> $_SESSION['user']['id'] = $j;</p><p> $this->cacheUser($j);</p><p> unset($j);</p><p> }[/PHP]</p><p> </p><p>Then, CTRL+S (Saves), Then Exit out of that document.</p><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p><p>Next, go to,</p><p><em>app\class.template.php</em></p><p> </p><p>Find the code below,</p><p>[PHP]if($users->isLogged())</p><p> {</p><p> $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));</p><p> $this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank'));</p><p> $this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto'));</p><p> $this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail'));</p><p> $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));</p><p> $this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points'));</p><p> $this->setParams('shells', $users->getInfo($_SESSION['user']['id'], 'vip_points'));</p><p> $this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look'));</p><p> $this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last'));</p><p> $this->setParams('lastSignedIn', date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'], 'last_online'))); [/PHP]</p><p> </p><p>Add the code below, underneath the existing code,</p><p> </p><p>[PHP]$this->setParams('acc_frndreq', $users->getInfo($_SESSION['user']['id'], 'block_newfriends'));</p><p> $this->setParams('acc_trade', $users->getInfo($_SESSION['user']['id'], 'accept_trading'));</p><p> $this->setParams('acc_online', $users->getInfo($_SESSION['user']['id'], 'hide_online'));</p><p> $this->setParams('acc_follow', $users->getInfo($_SESSION['user']['id'], 'hide_inroom'));[/PHP]</p><p> </p><p> </p><p>Now fucking enjoy. <img src="/styles/default/xenforo/smilies/stasmoking.gif" class="smilie" loading="lazy" alt=":rasta:" title="Rasta :rasta:" data-shortname=":rasta:" /></p><p> </p><p>If you don't know how, I charge $1 to do this via PayPal donation.</p><p><strong>3 choices: learn to do from this tutorial correctly, pay me to do so, or wait for my next CMS/Skin release.</strong></p><p>skype: vgtalottanew</p><p>msn: <a href="mailto:vgtalotta@hotmail.com">vgtalotta@hotmail.com</a></p><p> </p><p>[media=youtube]WhbfdNXU7jw[/media]</p><p> </p><p>Thank me by liking my post, please & thank-you! <img src="/styles/default/xenforo/smilies/emojione/biggrin.png" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="Clit, post: 130882, member: 13412"] I wanted my hotel to be a little more unique so I went ahead to configure these settings. Screenshot: [IMG]http://www.vinnietalotta.com/screensnapr/UnpHEOyT.png[/IMG] Let us begin, First, go to, [I]app\tpl\skins\(your skin)\account.php (or whatever the account settings file is)[/I] Find this similar code, and replace with the code below. From <form method="post" id="profileForm"> TO </form> [PHP]<form method="post" id="profileForm"> <h3>Your motto</h3> <p>Your motto is what other users will see on your {hotelName} Home page and when clicking your user in the Hotel.</p> <p><label>Motto:<input type="text" name="acc_motto" size="32" maxlength="32" value="{motto}" id="avatarmotto"></label></p> <h3>Block Trading</h3> <p>Setting to "0" will not allow any user to trade you. Setting to "1" will allow any user to trade you.</p> <p><label>Setting:<input type="text" name="acc_trade" size="32" maxlength="32" value="{acc_trade}" id="avatarmotto"></label></p> <h3>Block New Friends</h3> <p>Setting to "1" will not allow any user to add you. Setting to "0" will allow any user to add you.</p> <p><label>Setting:<input type="text" name="acc_frndreq" size="32" maxlength="32" value="{acc_frndreq}" id="avatarmotto"></label></p> <h3>Online Visibility</h3> <p>Setting to "1" will not allow other users to notice your online status. Setting to "0" will allow other users to notice your online status. <br/> 0 = ON | 1 = OFF</p> <p><label>Setting:<input type="text" name="acc_online" size="32" maxlength="32" value="{acc_online}" id="avatarmotto"></label></p> <h3>Follow Ability</h3> <p>Setting to "1" will not allow your friends to Follow you. Setting to "0" will allow your friends to follow you.<br/> 0 = ON | 1 = OFF</p> <p><label>Setting:<input type="text" name="acc_follow" size="32" maxlength="32" value="{acc_follow}" id="avatarmotto"></label></p> <h3>Your email address</h3> <p>Your email address is what you may need to reset your password incase you forget it.</p> <p><label>Email:<input type="text" name="acc_email" size="32" value="{email}" id="avatarmotto"></p> <h3>Current Password</h3> <p>Your current password is the password you use to login to the main website. Only fill this in if you wish to change your login password.</p> <p><label>Password:<input type="password" name="acc_old_password" value="" id="avatarmotto"></p> <h3>New Password</h3> <p>Please only change this field if you wish to change your login password.</p> <p><label>New Password:<input type="password" name="acc_new_password" value="" id="avatarmotto"></p> <div class="settings-buttons"> <input type="submit" value="Save changes" name="account" class="submit" style="float:right"> </div> </form>[/PHP] Then, CTRL+S (Saves), Then Exit out of that document. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Next, go to, [I]app\class.users.php[/I] Find Account Settings, and Replace with the code below. [PHP]/*-------------------------------Account settings-------------------------------------*/ final public function updateAccount() { global $template, $_CONFIG, $core, $engine; if(isset($_POST['account'])) { if(isset($_POST['acc_frndreq']) && strlen($_POST['acc_frndreq']) < 2 && $_POST['acc_frndreq'] != $this->getInfo($_SESSION['user']['id'], 'block_newfriends')) { $this->updateUser($_SESSION['user']['id'], 'block_newfriends', $engine->secure($_POST['acc_frndreq'])); header('Location: '.$_CONFIG['hotel']['url'].'/account'); exit; } else { $template->form->error = 'Setting is invalid.'; } if(isset($_POST['acc_trade']) && strlen($_POST['acc_trade']) < 2 && $_POST['acc_trade'] != $this->getInfo($_SESSION['user']['id'], 'accept_trading')) { $this->updateUser($_SESSION['user']['id'], 'accept_trading', $engine->secure($_POST['acc_trade'])); header('Location: '.$_CONFIG['hotel']['url'].'/account'); exit; } else { $template->form->error = 'Setting is invalid.'; } if(isset($_POST['acc_online']) && strlen($_POST['acc_online']) < 2 && $_POST['acc_online'] != $this->getInfo($_SESSION['user']['id'], 'hide_online')) { $this->updateUser($_SESSION['user']['id'], 'hide_online', $engine->secure($_POST['acc_online'])); header('Location: '.$_CONFIG['hotel']['url'].'/account'); exit; } else { $template->form->error = 'Setting is invalid.'; } if(isset($_POST['acc_follow']) && strlen($_POST['acc_follow']) < 2 && $_POST['acc_follow'] != $this->getInfo($_SESSION['user']['id'], 'hide_inroom')) { $this->updateUser($_SESSION['user']['id'], 'hide_inroom', $engine->secure($_POST['acc_follow'])); header('Location: '.$_CONFIG['hotel']['url'].'/account'); exit; } else { $template->form->error = 'Setting is invalid.'; } if(isset($_POST['acc_motto']) && strlen($_POST['acc_motto']) < 30 && $_POST['acc_motto'] != $this->getInfo($_SESSION['user']['id'], 'motto')) { $this->updateUser($_SESSION['user']['id'], 'motto', $engine->secure($_POST['acc_motto'])); header('Location: '.$_CONFIG['hotel']['url'].'/account'); exit; } else { $template->form->error = 'Motto is invalid.'; } if(isset($_POST['acc_email']) && $_POST['acc_email'] != $this->getInfo($_SESSION['user']['id'], 'mail')) { if($this->validEmail($_POST['acc_email'])) { $this->updateUser($_SESSION['user']['id'], 'mail', $engine->secure($_POST['acc_email'])); header('Location: '.$_CONFIG['hotel']['url'].'/account'); exit; } else { $template->form->error = 'Email is not valid'; return; } } if(!empty($_POST['acc_old_password']) && !empty($_POST['acc_new_password'])) { if($this->userValidation($this->getInfo($_SESSION['user']['id'], 'username'), $core->hashed($_POST['acc_old_password']))) { if(strlen($_POST['acc_new_password']) >= 8) { $this->updateUser($_SESSION['user']['id'], 'password', $core->hashed($_POST['acc_new_password'])); header('Location: '.$_CONFIG['hotel']['url'].'/me'); exit; } else { $template->form->error = 'New password is too short'; return; } } else { $template->form->error = 'Current password is wrong'; return; } } } } final public function turnOn($k) { $j = $this->getID($k); $this->createSSO($j); $_SESSION['user']['id'] = $j; $this->cacheUser($j); unset($j); }[/PHP] Then, CTRL+S (Saves), Then Exit out of that document. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Next, go to, [I]app\class.template.php[/I] Find the code below, [PHP]if($users->isLogged()) { $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username')); $this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank')); $this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto')); $this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail')); $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits')); $this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points')); $this->setParams('shells', $users->getInfo($_SESSION['user']['id'], 'vip_points')); $this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look')); $this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last')); $this->setParams('lastSignedIn', date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'], 'last_online'))); [/PHP] Add the code below, underneath the existing code, [PHP]$this->setParams('acc_frndreq', $users->getInfo($_SESSION['user']['id'], 'block_newfriends')); $this->setParams('acc_trade', $users->getInfo($_SESSION['user']['id'], 'accept_trading')); $this->setParams('acc_online', $users->getInfo($_SESSION['user']['id'], 'hide_online')); $this->setParams('acc_follow', $users->getInfo($_SESSION['user']['id'], 'hide_inroom'));[/PHP] Now fucking enjoy. :rasta: If you don't know how, I charge $1 to do this via PayPal donation. [B]3 choices: learn to do from this tutorial correctly, pay me to do so, or wait for my next CMS/Skin release.[/B] skype: vgtalottanew msn: [EMAIL]vgtalotta@hotmail.com[/EMAIL] [media=youtube]WhbfdNXU7jw[/media] Thank me by liking my post, please & thank-you! :D [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] Account Settings [RevCMS]
Top