PHP: [ Select all ]
if(USER_IS_LOGGED_IN){ $ses = LOGGED_IN_USERID; //tell freichat the userid of the current user setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code}else { $ses = null; //tell freichat that the current user is a guest setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code}
global $userinfo;if(is_user()){ $ses = $userinfo['username']; //tell freichat the userid of the current user setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code}else { $ses = null; //tell freichat that the current user is a guest setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code}
global $userinfo;if(is_user()){ $ses = $userinfo['user_id']; //tell freichat the userid of the current user setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code}else { $ses = null; //tell freichat that the current user is a guest setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code}
$userinfo['user_avatar'];
global $userinfo;if(is_user()){ $avatar_image = $userinfo['user_avatar']; if (!empty($avatar_image)){ $avatar = "./modules/Forums/images/avatars/".$avatar_image; }else{ $avatar = "./modules/Forums/images/avatars/blank.gif"; }}
echo '<img src="'.$avatar.'" style="max-width: 80px; max-height: 80px;" alt="">';
/* Custom driver */$usertable='nuke_users'; //specifies the name of the table in which your user information is stored.$row_username='username'; //specifies the name of the field in which the user's name/display name is stored.$row_userid='user_id'; //specifies the name of the field in which the user's id is stored (usually id or userid)$avatar_table_name='nuke_users'; //specifies the table where avatar information is stored$avatar_column_name='user_avatar'; //specifies the column name where the avatar url is stored$avatar_userid='user_id'; //specifies the userid to the user to get the user's avatar$avatar_reference_user='username'; //specifies the reference to the user to get the user's avatar in user table $avatar_reference_avatar='username'; //specifies the reference to the user to get the user's avatar in avatar$avatar_field_name=$avatar_column_name; //to avoid unnecessary file changes , *do not change
output generated using printer-friendly topic mod. All times are GMT - 7 Hours