06-11-2000, 02:16 AM
For anyone who is interested in having a more UBB simialr way of clicking on the "moderated by user x" to cause a email send, here is how:
open forumdisplay.php.
find "// get moderators" (line 91)
here is the code:
$forummoderators=$DB_site->query("SELECT user.username,user.userid,user.usergroupid,user.em ail FROM forumpermission,user WHERE user.usergroupid=forumpermission.usergroupid AND canadminedit=1 AND forumid=$forumid");
if ($moderator=$DB_site->fetch_array($forummoderators)) {
$moderatedby="(Moderated by: <a href=\"mailto:$moderator[email]\">".htmlspecialchars($moderator[username])."</a>";
while ($moderator=$DB_site->fetch_array($forummoderators)) {
$moderatedby.=", <a href=\"mailto:$moderator[email]\">".htmlspecialchars($moderator[username])."</a>";
}
$moderatedby.=")";
} else {
$moderatedby="";
}
[edit]
Paste this over the existing code, not as extra code.
[Edited by doron on 06-11-2000 at 11:18 AM]
open forumdisplay.php.
find "// get moderators" (line 91)
here is the code:
$forummoderators=$DB_site->query("SELECT user.username,user.userid,user.usergroupid,user.em ail FROM forumpermission,user WHERE user.usergroupid=forumpermission.usergroupid AND canadminedit=1 AND forumid=$forumid");
if ($moderator=$DB_site->fetch_array($forummoderators)) {
$moderatedby="(Moderated by: <a href=\"mailto:$moderator[email]\">".htmlspecialchars($moderator[username])."</a>";
while ($moderator=$DB_site->fetch_array($forummoderators)) {
$moderatedby.=", <a href=\"mailto:$moderator[email]\">".htmlspecialchars($moderator[username])."</a>";
}
$moderatedby.=")";
} else {
$moderatedby="";
}
[edit]
Paste this over the existing code, not as extra code.
[Edited by doron on 06-11-2000 at 11:18 AM]