PDA

View Full Version : Mods and admins can see Email addresses in user profiles. Anyone interested?


Zzed
04-03-2002, 04:33 PM
The moderators on my site were complaining that they do not have permission to look up user Email addresses. So I put in a hack on my site to allow moderators and administrators to be able to see Email addresses.

It is a pretty simple hack. If anyone is interested, I would be more than glad to release it. :)

Zzed
04-04-2002, 09:39 AM
bump :(

E
04-04-2002, 10:02 AM
sure..

NSeXcellent
04-16-2002, 05:47 PM
Release it.. im very interested

Chris M
04-16-2002, 06:49 PM
Yeh why not...

Satan

Zzed
04-16-2002, 08:46 PM
Ok, here it is.

Given the simple nature of this hack, I am embarassed to release this in the Full releases section. :D

This hack does not require any template modifications to the user profile view as it latches itself on one of the fields that gets displayed in there.

In member.php look for:

$profilefieldname="field$profilefield[profilefieldid]";
$profilefield[value]=$userinfo[$profilefieldname];
eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";");


And replace it with:

$profilefieldname="field$profilefield[profilefieldid]";
$profilefield[value]=$userinfo[$profilefieldname];

if(($bbuserinfo[usergroupid]==5) or ($bbuserinfo[usergroupid]==6) or ($bbuserinfo[usergroupid]==7)) {
$emailinfo = "<a href=\"mailto:$userinfo[email]\">$userinfo[email]</a><br>";
}
else {
$emailinfo = "";
}

eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";");


Let me know how it works out. :)

mvigod
04-30-2002, 11:12 AM
works great...good hack and thanks...go ahead and release it...I've seen lesser hacks released than this and ones not quite as useful..thanks