// User profile link
function profile_link($user_id, $user_name, $user_status, $class = "profile-link") {
global $locale, $settings;
$class = ($class ? " class='$class'" : "");
if ((in_array($user_status, array(0, 3, 7)) || checkrights("M")) && (iMEMBER || $settings['hide_userprofiles'] == "0")) {
//$link = "<a href='".BASEDIR."profile.php?lookup=".$user_id."'".$class.">".$user_name."</a>";
// to display google plus link on only news and article pages
if ($user_id == 1 && (strpos(curPageURL(),"news.php?readmore=")>0 || strpos(curPageURL(),"articles.php?article_id=")>0)){
$link = "<a rel='me' href='".BASEDIR."profile.php?lookup=".$user_id."'".$class.">".$user_name."</a>";
$link = $link." <a target='_blank' href='My-google-plus-profile-URL-here?rel=author' title='My Google Plus profile'><img border=0 src='path-to-icon-googleplus16.png' /></a>";
} else {
$link = "<a rel='me' 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;
}
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions