WanknessHD
Hardcore Habboer
- Jun 13, 2011
- 48
- 5
So I wanna make it so when a user is banned they can sign in but they see a "ban appeals" tab so they can submit a ban appeal and what not.
With this I got it to work, but it shows it for everyone, Im trying to make it user specific when the person is banned. I was thinking that checktheban could come to use but I would have no clue how to implement that into this. eventually I was planning to when theyre banned remove the enter hotel button and I will add a code to the client preventing them from entering the client.
Im not very educated in php/sql so I am unable to figure it out myself, thanks in advanced if someone can help.
PHP:
<?php
if(isset($_SESSION['user']['id']))
if(mysql_result(mysql_query("SELECT value FROM bans WHERE value = '" . $_SESSION['user']['id'] . "'"), 0) <= 1) {
echo '<li id="tab-register-now"><a href="{url}/ase/login">Ban Apeals</a><span></span></li>';
}
?>
With this I got it to work, but it shows it for everyone, Im trying to make it user specific when the person is banned. I was thinking that checktheban could come to use but I would have no clue how to implement that into this. eventually I was planning to when theyre banned remove the enter hotel button and I will add a code to the client preventing them from entering the client.
Im not very educated in php/sql so I am unable to figure it out myself, thanks in advanced if someone can help.