View Full Version : Mods and admins can see Email addresses in user profiles. Anyone interested?
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. :)
NSeXcellent
04-16-2002, 05:47 PM
Release it.. im very interested
Chris M
04-16-2002, 06:49 PM
Yeh why not...
Satan
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.