RevCMS Banlist 'Unban' Fixed!

Noman

lol
Jul 17, 2011
225
166
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>";
}
 
?>

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>";
}
?>

Once you've done that, your ASE should be working now. Simply go to
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')

Replace it with:

PHP:
 if($k == 'banlist')

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 :update_bans 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
 

Noman

lol
Jul 17, 2011
225
166
Okay, go into your hotel client and say the command. :update_bans that way the bans table will be updated, or restart your EMU :p
 

Users who are viewing this thread

Top