I'm trying to have contact forms for email fields. I have created a custom template using most of email.tpl template.
I would like to use the {SENDERIP} variable to present the corresponding warning of not to spam.
But {SENDERIP} is not presenting the IP, at the custom template. I have tried also {MEMBERIP} and {THISMEMBERIP}. The last one works, but for an online registered user, but not for guests.
Is it possible to make {SENDERIP} to work at a custom template ? If not, it would be useful to have another variable like {THISGUESTIP} ?
I understand a solution for now would be a direct inclusion of <?php echo $_SERVER['REMOTE_ADDR']; ?> on the custom template, ok?
{SENDERIP} is, as the name implies, only for that page where there's a sender. It works in any custom template overlayed on that page, not one overlayed on any other page. I'll consider making all the $_SERVER vars available as {SERVER_X} though in 4.1.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on {SENDERIP}
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
I'm trying to have contact forms for email fields.
I have created a custom template using most of email.tpl template.
I would like to use the {SENDERIP} variable to present the corresponding warning of not to spam.
But {SENDERIP} is not presenting the IP, at the custom template. I have tried also {MEMBERIP} and {THISMEMBERIP}. The last one works, but for an online registered user, but not for guests.
Is it possible to make {SENDERIP} to work at a custom template ?
If not, it would be useful to have another variable like {THISGUESTIP} ?
I understand a solution for now would be a direct inclusion of <?php echo $_SERVER['REMOTE_ADDR']; ?> on the custom template, ok?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
{SENDERIP} is, as the name implies, only for that page where there's a sender. It works in any custom template overlayed on that page, not one overlayed on any other page. I'll consider making all the $_SERVER vars available as {SERVER_X} though in 4.1.