Customizing SMF > SMF Coding Discussion
Your IP is
Skoen:
I have until today been using iframe to include a file which could reveal the user's IP address to himself.. The same as $REMOTE_ADDR; does. Problem is that I don't know how to script this into SMF without having to use iframe.
[Unknown]:
Umm, do you see your IP next to your post?
-[Unknown]
Skoen:
Yes, I do.
But when I insert the ' . $message['member']['ip'] . ' in the index.template.php beside Your IP is, I get this message:
Notice: Undefined variable: message in /hsphere/local/home/dataport/dataportalen.com/forum/Themes/SA light/index.template.php on line 219
--- Code: ---Line 219: Din IP er: ' . $message['member']['ip'] . ' <br />';
--- End code ---
[Unknown]:
Oh, you just want to do it anywhere?
I'm not sure if that's available or not... if it is, it would be $context['user']['ip']...
-[Unknown]
Skoen:
Yeah, I wanna use it anywhere..
When I inserted that one I got this error message:
--- Quote ---Notice: Undefined index: ip in /hsphere/local/home/dataport/dataportalen.com/forum/Themes/SA light/index.template.php on line 219
--- End quote ---
Navigation
[0] Message Index
[#] Next page
Go to full version