basic func for forum.php