function profile_link($user_id, $user_name, $user_status, $class = "profile-link"<img src="../images/smiley/wink.gif" alt="Wink" style="vertical-align:middle;"> {
function profile_link($user_id, $user_name, $user_status, $class = "profile-link") {
global $locale, $settings;
$country = dbresult(dbquery("SELECT user_country FROM ".DB_USERS." WHERE user_id='".$user_id."'"),0);
$country = strtolower($country);
$showcountry = "<img src='".IMAGES."user_flags/".$country.".png' alt='".$country."' /> \n";
$class = ($class ? " class='$class'" : "");
if ((in_array($user_status, array(0, 3, 7)) || checkrights("M")) && (iMEMBER || $settings['hide_userprofiles'] == "0")) {
$link = $showcountry."<a href='".BASEDIR."profile.php?lookup=".$user_id."'".$class.">".$user_name."</a>";
} elseif ($user_status == "5" || $user_status == "6") {
$link = $locale['user_anonymous'];
} else {
$link = $user_name;
}
return $link;
}
profile_link($user_data['user_country'], $member['user_id'],
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions