Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Jun 2008, 05:24
mrkhm mrkhm is offline
 
Join Date: Oct 2006
show ipaddress

Hi,

how do i display the user ip address or guest ip address in the forum pages e.g. your ipaddress is xxx.xxx.xxx

I dont know whether this can be done via plugin/hook? but i really need it.

i have tried the usual:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but when i try to save my template page i get a parse error.

i would also like to be able to add this ip info as a hidden custom field in my payment buttons, but this button is also available to unregistered guests so it is not necessarily a memberinfo(ipaddress) function i am after but rather currentbrowser(ipaddress). please anyone?

thanks
Reply With Quote
  #2  
Old 23 Jun 2008, 07:25
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Use the constant: IPADDRESS.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #3  
Old 23 Jun 2008, 08:13
mrkhm mrkhm is offline
 
Join Date: Oct 2006
hi dismounted, well when i try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

when you view the source code all i see is the word IPADDRESS and just in case i also tried


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but then all i see is blank i.e. ""
Reply With Quote
  #4  
Old 23 Jun 2008, 08:27
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
It is a constant - you cannot use these directly in templates. You will have to assign a variable to the constant.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:25.

Layout Options | Width: Wide Color: