diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-15 18:38:23 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-15 18:38:23 +0000 |
commit | f27bec1dab07a86da2cdf8cdbbf5b61c3def7404 (patch) | |
tree | 0d11282805b9f0ec69297e5055717d1bb9e96836 /phpBB/memberlist.php | |
parent | e4c8d6e886a5d65736841ea29325cfac80883bbd (diff) | |
download | forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar.gz forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar.bz2 forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar.xz forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.zip |
Added admin enabling of email form
git-svn-id: file:///svn/phpbb/trunk@1320 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 36a7cedf24..a69aa383f6 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -187,7 +187,9 @@ if(($selected_members = $db->sql_numrows($result)) > 0) if( !empty($members[$i]['user_viewemail']) ) { - $email_img = "<a href=\"" . append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL ."=$user_id") . "\"><img src=\"" . $images['icon_email'] . "\" border=\"0\" alt=\"" . $lang['Send_an_email'] . "\" /></a>"; + $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL ."=" . $members[$i]['user_id']) : "mailto:" . $members[$i]['user_email']; + + $email_img = "<a href=\"$email_uri\"><img src=\"" . $images['icon_email'] . "\" border=\"0\" alt=\"" . $lang['Send_email'] . " " . $members[$i]['username'] . "\" /></a>"; } else { |