I know this has been requested before. It's not too
difficult to implement on a site that only has one
Gedcom like mine.
In individual.php, look for the following lines:
print "<span class=\"name_head\">".PrintReady($name)."
<span dir=\"ltr\">($pid)</span>";
print "</span><br />";
Replace them with this block of code:
print "<span class=\"name_head\">".PrintReady($name)."
<span dir=\"ltr\">($pid)</span>";
print "</span>";
// SEND EMAIL TO THIS PERSON IF S/HE HAS A PGV ACCOUNT
$sql = "SELECT u_username FROM `".$TBLPREFIX."users`
WHERE `u_gedcomid` LIKE '%".$pid."%' LIMIT 0 , 30";
$res =& dbquery($sql);
$row =& $res->fetchRow();
$u_username = $row[0];
if (!(empty($u_username))) {
print "<a href=\"#\" onclick=\"message('$u_username',
'messaging2', '')\"><img align=\"middle\" border=\"0\"
src=\"images/email.gif\"></a>";
}
print "<br />";
This will work as long as:
a) you only have one Gedcom;
b) your users' accounts are properly linked to their
individual records; and
c) you find an email icon you like and name it
images/email.gif.
The cost is an added database query for every
individual page pulled up.
Oh, and I'm aware that I'm not the most sophisticated
programmer. This may be a messy solution, but it works
for me. If somebody can clean it up (ie, parse the
u_gedcom field better and/or combine this dbquery with
another one), all the better!
Cheers,
Andy