![]() |
Conditional to check IP address?
Is there one?
|
what do you want to do? you can enable usergroups to view IP addresses by default
|
If you want the IP address of the user currently viewing, it's $_SERVER['REMOTE_ADDR'] or the constant IPADDRESS. (you really have to tell us more to get any help lol)
|
Quote:
php include didn't work so I tried this Code:
<if condition="$_SERVER['REMOTE_ADDR']==myiphere">showthis<else />showthis2</if> |
Did you enclose your ip in (single) quotes ?
|
Quote:
Here is the working code if anyone wants to do something similar Code:
<if condition="$_SERVER['REMOTE_ADDR'] == 'myiphere'">showthis<else />showthis2</if> |
All times are GMT. The time now is 09:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|