Display the user's IP ?

5 years 6 months ago #307677 by warlocksp
Replied by warlocksp on topic Display the user's IP ?

krileon wrote: [registeripaddr] works perfectly fine in a Custom HTML field unless you turned off logging of registration IP Address within CB > Configuration > Registration and the user has no IP Address logged to begin with due to this.


Thank you all figured out IP registration. And even more.

Only with this I can not understand why it does not work:
$jsondata = file_get_contents("http://timezoneapi.io/api/ip/?" . $ip_address . '&token=TOKEN');
$location = file_get_contents('http://freegeoip.net/json/'.$_SERVER['REMOTE_ADDR']);
Why does not respond to "file_get_contents", how to write correctly?

Please Log in to join the conversation.

5 years 6 months ago #307695 by krileon
Replied by krileon on topic Display the user's IP ?
We do not provide coding assistance. You need to debug your own code yourself and again I can not provide support for any of our products except Community Builder itself (which is free) when you do not have an active support subscription (which is the entire point of the support subscription). Suggest reading some of the below search results to get started with PHP.

www.google.com/search?q=php+tutorials


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

5 years 6 months ago #307721 by warlocksp
Replied by warlocksp on topic Display the user's IP ?
Got it
Thank you so much.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.193 seconds

Facebook Twitter LinkedIn