Support Forums - Classified Ads Script Osclass
Unread
New Replies
Osclass Market
Download Osclass
Documentation
Home
Help
Search
Login
Register
current user ip address
Support Forums - Classified Ads Script Osclass
General osclass questions
General discussion
current user ip address
Match all words
Match any words
Most relevant results first
Largest topics first
Smallest topics first
Most recent topics first
Oldest topics first
Advanced
Unread posts
New replies
My topics
My posts
Print
Pages: [
1
]
kontrakontrarian
3 posts
current user ip address
«
on:
December 28, 2021, 04:10:50 PM »
I am looking for a variable that can be used to call the current user's ip address.
something similar to the following:
<?php echo $user['ipaddress']; ?>
the last access ip address under users would work but I can't seem to locate it.
appreciate any help you can give ...
Logged
MB Themes
Support team
17617 posts
Only quality matters
Download Osclass
Re: current user ip address
«
Reply #1 on:
December 28, 2021, 08:31:10 PM »
@kontrakontrarian
There are 2 options.
- you want to get IP of current user
- you want to get IP of some user
In first case, you have function:
Code:
[Select]
osc_get_ip()
In second case:
Code:
[Select]
$user['s_access_ip']
Logged
To get fast support, we need following details:
Detail description, URL to reproduce problem, Screenshots
Print
Pages: [
1
]