The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Reference IP during registration process
I'm not sure if this should be in the programming discussions section or not, but here it is anyway. I'm doing some testing during the registration process, before the account is actually created.
I already have some plug-ins written hooked on register_add_member_process. I'm successfully referencing certain fields in this matter now: $vbulletin->GPC['email']; and what I want to know is, how do I reference IP address in the same fashion? Would it be something like this? : $vbulletin->GPC['ipaddress']; Thanks much for any help. |
#2
|
|||
|
|||
vBulletin creates a PHP constant to contain it.
PHP Code:
|
#3
|
|||
|
|||
So I can just reference $IPADDRESS? Or minus the $? Without the object reference? Thanks!
|
#4
|
|||
|
|||
You just use it on your own. I recommend you do a bit of background reading first: http://php.net/constants
|
#5
|
|||
|
|||
Thanks, I think I got it now. PHP isn't one of my languages, obviously. Mille grazie, as my people say
|
#6
|
|||
|
|||
Huge thanks for this, I got what I needed to do, working.
|
#7
|
|||
|
|||
No problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|