- Posts: 136
- Thank you received: 4
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I use the IP address directly?
- surveySn
- Topic Author
- Offline
- Premium Member
Less
More
3 months 1 week ago #254459
by surveySn
Can I use the IP address directly? was created by surveySn
Please help us help you and fill where relevant:
Your LimeSurvey version: [6.4.1+240108]
Own server or LimeSurvey hosting:Own server
Survey theme/template:Fruity TwentyThree
==================
Hello everyone
In certain situations, I need to display the IP address to the visitors, {ipaddr.shown}, but it doesn't work. Currently, I'm using a API, but it sometimes fails to retrieve the information.
Your LimeSurvey version: [6.4.1+240108]
Own server or LimeSurvey hosting:Own server
Survey theme/template:Fruity TwentyThree
==================
Hello everyone
In certain situations, I need to display the IP address to the visitors, {ipaddr.shown}, but it doesn't work. Currently, I'm using a API, but it sometimes fails to retrieve the information.
Please Log in to join the conversation.
- surveySn
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 4
2 months 2 days ago #257216
by surveySn
Replied by surveySn on topic Can I use the IP address directly?
Does anyone have a good method?
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
2 months 13 hours ago - 1 month 4 weeks ago #257500
by holch
What is this supposed to be? This would show the text of the answer option chosen by a respondent from a single choice question with the ID "ipaddr". As long as you don't have a question with the ID "ipaddr" nothing will happen. And then also, if there would be a question were the IP address is stored it would most probably not be a single choice question, but rather a text question, right?
So please explain what you are doing exactly. Where do you store the IP address? How do you collect and store it?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can I use the IP address directly?
Code:
{ipaddr.shown}
What is this supposed to be? This would show the text of the answer option chosen by a respondent from a single choice question with the ID "ipaddr". As long as you don't have a question with the ID "ipaddr" nothing will happen. And then also, if there would be a question were the IP address is stored it would most probably not be a single choice question, but rather a text question, right?
So please explain what you are doing exactly. Where do you store the IP address? How do you collect and store it?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 1 month 4 weeks ago by holch.
The following user(s) said Thank You: surveySn
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 months 12 hours ago #257502
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can I use the IP address directly?
I think surveySn is referring to the IP address collected via the Notification and data management settings. This is not available from within a survey.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: surveySn
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
2 months 12 hours ago #257504
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can I use the IP address directly?
Oh, this could of course be the case. And yes, this is not accessible. And even if it was, surely not with .shownI think surveySn is referring to the IP address collected via the Notification and data management settings. This is not available from within a survey.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
1 month 4 weeks ago #257528
by DenisChenu
{IPADDR} can be used
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can I use the IP address directly?
You can activate a plugin for this : manual.limesurvey.org/ExpressionFixedDbVarOh, this could of course be the case. And yes, this is not accessible. And even if it was, surely not with .shown
{IPADDR} can be used
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: holch, tpartner, surveySn
Please Log in to join the conversation.
- surveySn
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 4
1 month 4 weeks ago #257563
by surveySn
Replied by surveySn on topic Can I use the IP address directly?
Awesome, perfect, thank you for your reply.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
1 month 4 weeks ago #257565
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can I use the IP address directly?
Yes, good catch Denis.
(I always forget the plugins)
(I always forget the plugins)
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
1 month 4 weeks ago #257629
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can I use the IP address directly?
Easy to remind since i develop it(I always forget the plugins)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: holch
Please Log in to join the conversation.