I have been searching for a php script that would show a visitors ip address in e107 menu and it took me ages anyways then i tryed to make my own and i actually did it had a few errors but now its all working and its all good check it out.
Hope you guys like the code.
-Peace.[/code]
| Code: |
| <?php
// visitorip_menu.php // This script shows a visitor his IP address // Suggestion: Make the menu visible to "Guest Only" if you want to show it for unregistered guests only $ip = getip(); $text = "<div style='text-align:center'>Your IP address is:<br />".$ip."<br /></div>"; if(USER){ $caption = "Hello ".USERNAME.""; }else{ $caption = "Hello Guest"; } $ns -> tablerender($caption, $text); ?> |
Hope you guys like the code.
-Peace.[/code]
