[Pmwiki-users] adding author's IP address to mailpost

Patrick R. Michaud pmichaud
Mon Jul 26 07:23:57 CDT 2004


On Sun, Jul 25, 2004 at 11:17:06PM -0500, Matt Vance wrote:
> How can I add the the IP address of the user who made an edit to the 
> mailpost message?  I tried, the following, but it didn't work:
> 
> $MailPostsItemFmt =" * \$PageName\n     \$PostTime by \$Author @ 
> \$LastModifiedHost\n     \$PageUrl";

Try the following:

   $RemoteIP = @$_SERVER['REMOTE_ADDR'];
   $MailPostsItemFmt =" * \$PageName\n     \$PostTime by \$Author @ 
   \$RemoteIP\n     \$PageUrl";

Pm



More information about the pmwiki-users mailing list