• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: User's IP address

User's IP address 15 years 5 months ago #7011

  • NeaMatt
  • NeaMatt's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Hi,

I'm looking for the code to disply the users ip address
The administrator has disabled public write access.

Re:User's IP address 15 years 5 months ago #7039

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hello ,

If you want to display the user IP address you can use this in the Default value:
//<code>
return $_SERVER['REMOTE_ADDR'];
//</code>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.

Re:User's IP address 15 years 4 months ago #7184

  • strgg
  • strgg's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
hi bogdan

it does not show if the code you posted above is
inserted into a hidden file as the default value.

could you be more specific

thanks,

drazen
The administrator has disabled public write access.

Re:User's IP address 15 years 4 months ago #7185

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hi ,

The script works even if you`ll put it in a hidden field. I have tested this on my own and it works.
Have you entered the //<code> tags ?
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.

Re:User's IP address 15 years 4 months ago #7186

  • strgg
  • strgg's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
hi bogdan

you are completely right. thank you for your patience.

i wish you a happy time

best regards,

drazen
The administrator has disabled public write access.

Re:User's IP address 15 years 3 months ago #7419

  • dmmsmith
  • dmmsmith's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hello,
Does this work for the norm RSForm! or only pro edition?

I have the normal edition and I have created a new hidden field called "ip" I placed this code in the default field
//<code>
return $_SERVER['REMOTE_ADDR'];
//</code>

and then I added this new ip field to my return email {ip} but when i get the email sent back, it does not have the users ip address, it has the actual code written just like this
//<code>
return $_SERVER;
//</code>

I have found another thread that says to write
In the email message: {global:userip}

I tried this too but all i get is the exact wording {global:userip} in the email as well.

Am I supposed to replace any of the above with something that is customized from my own form?

Many thanks
Last Edit: 15 years 3 months ago by dmmsmith.
The administrator has disabled public write access.

Re:User's IP address 15 years 3 months ago #7465

  • dmmsmith
  • dmmsmith's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hi-
Can you please advise if the above code works for RS Form lite or just pro?

Many thanks.
The administrator has disabled public write access.

Re:User's IP address 15 years 3 months ago #7466

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hello ,

That code works only in RSForm!Pro version only.

Regards!
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.

Re:User's IP address 13 years 11 months ago #11669

  • info4057
  • info4057's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
here you go

{global:userip}
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!