Timeline for Show commenter IP address to admins (Drupal 7 / AdaptiveTheme)
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 4, 2014 at 17:31 | comment | added | Laryn | Great -- thanks for following up and posting the final solution! | |
Nov 4, 2014 at 7:59 | vote | accept | Zed | ||
Nov 4, 2014 at 7:50 | comment | added | Zed |
Excellent -- this was half of it. As an admin, I am now seeing 'from' appended, so the code is actually being seen. Unfortunately, it looks like $comment->hostname is coming up blank, so I need a new mechanism to get the submitter IP in there. Do you know what that might be? Never mind -- got it. There's a new ip_address() function that does the trick. I'll be updating the question with my final patch shortly, but I'll give you completion credit for getting me there.
|
|
Nov 4, 2014 at 4:43 | history | answered | Laryn | CC BY-SA 3.0 |