We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

If you want to show people there ip address | Forum

Pete
Pete Oct 7 '12

If you want to show people there ip address when thy visit your site

create a new page, copy the text below and save it as image.php (or whatever you wish)

<?

php

$

img_number=imagecreate(275,25);

$

backcolor=imagecolorallocate($img_number,102,102,153);

$

textcolor=imagecolorallocate($img_number,255,255,255);

imagefill

($img_number,0,0,$backcolor);

$

number=" Your IP is $_SERVER[REMOTE_ADDR]";

Imagestring

($img_number,10,5,5,$number,$textcolor);

header

("Content-type: image/jpeg");

imagejpeg

($img_number);

 

 

All you’ll need to display on other pages is the code below.

<img src=”http://yoursitehere.com/image.php” border=”1″>

 

 

is there anyway that i can add this to members profiles so it logs ip on there profiles?

The Forum post is edited by Pete Oct 7 '12
Purusothaman Ramanujam
Give a shot at ow_system_plugins\base\views\controllers\widget_panel_profile.html
Pete
Pete Oct 7 '12

can you give me a demo please (Thanks)