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
RevCMS Banlist 'Unban' Fixed!
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="Noman" data-source="post: 67438" data-attributes="member: 4565"><p>Okay, so i've found out the problem on Banlist when you click 'unban' and it doesn't unban the user.</p><p> </p><p>So first of all if you've got problems with the Banlist not working, just do this.</p><p>Go to App -> tpl -> skins -> Mango or Habbo -> hk -> banlist.php</p><p> </p><p>Now what you do is. Find:</p><p>[php]</p><p><table width="100%"></p><p><tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Value</b></td></tr></p><p><?php</p><p>while($two = mysql_fetch_array(mysql_query("SELECT * FROM bans"), MYSQL_ASSOC))</p><p>{</p><p>echo "<tr><td>" . $two['value'] ."</td><td>" . $two['reason'] . "</td><td>" . $two['added_by'] . "</td><td><a href='?url=banlist&unban=" . $two['id'] . "'><b>Unban</b></a></td></tr>";</p><p>}</p><p> </p><p>?></p><p>[/php]</p><p> </p><p>Then replace that with:</p><p> </p><p>[php]</p><p><table width="100%"></p><p><tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Expires</b></td><td><b>Value</b></td></tr></p><p><?php</p><p>$getBans = mysql_query("SELECT * FROM bans");</p><p> </p><p>while(($ban = mysql_fetch_array($getBans)))</p><p>{</p><p>echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td>" . @date("d-m-Y H:i", $ban['expire']) . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>";</p><p>}</p><p>?></p><p>[/php]</p><p> </p><p>Once you've done that, your ASE should be working now. Simply go to <a href="http://www.yourhotelname.com/ase" target="_blank">www.yourhotelname.com/ase</a></p><p>And login then click 'banlist' Then that should work perfect <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p> </p><p>Now Next step to make 'Unban' button to work.</p><p> </p><p>Go to: App -> class.core.php</p><p> </p><p>Open that then scroll down abit, then find:</p><p> </p><p>[php] if($k == 'balist') [/php]</p><p> </p><p>Replace it with:</p><p> </p><p>[php] if($k == 'banlist') [/php]</p><p> </p><p>It's basically a typo error where it says 'balist' when it should say 'banlist' That's all, it should work now login to the ASE again then try the unban button.</p><p> </p><p>Oh yeah, don't forget to say the command <strong>:update_bans</strong> on the hotel once you've unbanned the user on the hotel, otherwise it won't work they'll still be banned so make sure you use the command aswell!</p><p> </p><p>That's all, Unban is now fixed!</p><p> </p><p>Please remember to click 'Like' if you found this post helpful. <img src="/styles/default/xenforo/smilies/emojione/wink.png" class="smilie" loading="lazy" alt=";)" title="Wink ;)" data-shortname=";)" /></p><p> </p><p>Thanks,</p><p>Noz</p></blockquote><p></p>
[QUOTE="Noman, post: 67438, member: 4565"] Okay, so i've found out the problem on Banlist when you click 'unban' and it doesn't unban the user. So first of all if you've got problems with the Banlist not working, just do this. Go to App -> tpl -> skins -> Mango or Habbo -> hk -> banlist.php Now what you do is. Find: [php] <table width="100%"> <tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Value</b></td></tr> <?php while($two = mysql_fetch_array(mysql_query("SELECT * FROM bans"), MYSQL_ASSOC)) { echo "<tr><td>" . $two['value'] ."</td><td>" . $two['reason'] . "</td><td>" . $two['added_by'] . "</td><td><a href='?url=banlist&unban=" . $two['id'] . "'><b>Unban</b></a></td></tr>"; } ?> [/php] Then replace that with: [php] <table width="100%"> <tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Expires</b></td><td><b>Value</b></td></tr> <?php $getBans = mysql_query("SELECT * FROM bans"); while(($ban = mysql_fetch_array($getBans))) { echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td>" . @date("d-m-Y H:i", $ban['expire']) . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>"; } ?> [/php] Once you've done that, your ASE should be working now. Simply go to [URL='http://www.yourhotelname.com/ase']www.yourhotelname.com/ase[/URL] And login then click 'banlist' Then that should work perfect :) Now Next step to make 'Unban' button to work. Go to: App -> class.core.php Open that then scroll down abit, then find: [php] if($k == 'balist') [/php] Replace it with: [php] if($k == 'banlist') [/php] It's basically a typo error where it says 'balist' when it should say 'banlist' That's all, it should work now login to the ASE again then try the unban button. Oh yeah, don't forget to say the command [B]:update_bans[/B] on the hotel once you've unbanned the user on the hotel, otherwise it won't work they'll still be banned so make sure you use the command aswell! That's all, Unban is now fixed! Please remember to click 'Like' if you found this post helpful. ;) Thanks, Noz [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
RevCMS Banlist 'Unban' Fixed!
Top