Now here is a surprise !
Its not working for me? It seems that its not picking up on $userob.
File saved and uploaded into forums/includes folder as user_auth.inc.php
Paths updated
New file with simple test code
file test-auth.php
<?php
include ('forums/includes/user_auth.inc.php');
echo "test auth <br />";
$userob = new user_auth();
if( $userob->is_logged_in ) {
echo "you are logged in";
}
?>
Out put only my first test echo of test auth
If i'm logged in or not the result is the same?
ive tried full paths and relative paths 
If they are wrong i do get the php error so they are correct.
Humm what could be wrong?
Help << i'm stuck.
Aso if i run the file with all of the examples in the first post,
i get this error which made me use the test text.
$userob = new user_auth();
// Am I logged in?
if( $userob->is_logged_in ) {
// I am logged in
}
// Am I in group 3?
if( $userob->in_group( 3 ) ) {
// Why, yes we are
}
// Who cares what group I'm in! I wanna know
// if I can read a topic from forum 7
if( $userob->check_access( 7, "read" ) ) {
// Apparently I can
}
// What if I want to know if I'm an administrator
if( $userob->fields['USER_MEMBERSHIP_LEVEL'] == "Administrator" ) {
// That means I'm teh uber user
}
// Want to create a welcome message?
if( $userob->is_logged_in ) {
if( $userob->is_banned ) {
echo "Go away, " . $userob->fields['USER_DISPLAY_NAME'];
} else {
echo "Welcome, " . $userob->fields['USER_DISPLAY_NAME'];
}
} else {
echo "Please register";
}
Warning: in_array() [function.in-array]: Wrong datatype for second argument in forums/includes/user_auth.inc.php on line 202
Whats wrong ?
Thanks for any help as always 