The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional to check IP address?
Is there one?
|
#2
|
||||
|
||||
what do you want to do? you can enable usergroups to view IP addresses by default
|
#3
|
||||
|
||||
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)
|
#4
|
|||
|
|||
Quote:
php include didn't work so I tried this Code:
<if condition="$_SERVER['REMOTE_ADDR']==myiphere">showthis<else />showthis2</if> |
#5
|
||||
|
||||
Did you enclose your ip in (single) quotes ?
|
#6
|
|||
|
|||
Quote:
Here is the working code if anyone wants to do something similar Code:
<if condition="$_SERVER['REMOTE_ADDR'] == 'myiphere'">showthis<else />showthis2</if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|