Topic: How to know if the current user is banned ?

Is there a way to know if the current user user is banned ?

I integreted the punbb form on my website but there are troubles for banned users to show the message wich says that the user is ban.

So I want to redirect him on the forum but i need to know if the current user is banned or not.

Re: How to know if the current user is banned ?

If you're including common.php, shouldn't check_bans be called, showing the message if the user is banned?

3 (edited by Seb33300 2008-05-02 11:45)

Re: How to know if the current user is banned ?

My problem :

On my website :
http://seb33300.free.fr/ppbo/integration.jpg

Forum :
http://seb33300.free.fr/ppbo/forum.jpg


So I want to check if the user is bnned to redirect him to the forum.

this is what I added on my website header to integrate forum login account :

define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';
    
// Check/update/set cookie and fetch user info
$pun_user = array();
check_cookie($pun_user);

Re: How to know if the current user is banned ?

check_cookie is already run when you load include/common.php.
You'll need to fix the paths to styles, etc to use PUN_ROOT at the beginning.

Re: How to know if the current user is banned ?

So i don't need to add :

// Check/update/set cookie and fetch user info
$pun_user = array();
check_cookie($pun_user);

after the common.php inclusion ?


And There are not only the css link that is incorrect.
The menu links too hmm

that's why I want to redirect banned users on the forum.