Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Can I use the IP address directly?

More
1 year 7 months ago #254459 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.

Please Log in to join the conversation.

More
1 year 6 months ago #257216 by surveySn
Does anyone have a good method?

Please Log in to join the conversation.

More
1 year 6 months ago - 1 year 6 months ago #257500 by holch
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?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 1 year 6 months ago by holch.
The following user(s) said Thank You: surveySn

Please Log in to join the conversation.

More
1 year 6 months ago #257502 by tpartner
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.

More
1 year 6 months ago #257504 by holch

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.

Oh, this could of course be the case. And yes, this is not accessible. And even if it was, surely not with .shown

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
1 year 6 months ago #257528 by DenisChenu

Oh, this could of course be the case. And yes, this is not accessible. And even if it was, surely not with .shown
 
You can activate a plugin for this : www.limesurvey.org/manual/ExpressionFixedDbVar
{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 support - Plugins, theme and 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.

More
1 year 6 months ago #257563 by surveySn
Awesome, perfect, thank you for your reply.

Please Log in to join the conversation.

More
1 year 6 months ago #257565 by tpartner
Yes, good catch Denis.

(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.

More
1 year 6 months ago #257629 by DenisChenu

(I always forget the plugins)
 
Easy to remind since i develop it ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: holch

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose