how or where to show the ip address

ps3gameroomserver2777

New Member
YetiShare User
Jul 23, 2013
31
0
0
hi
where or how to show the ip for my members
i went to users but i cant find the ip

for example
if any user download any file it will not show the ip address or where can i find it
thanks
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Quick and easy modification to show the last IP the user has logged in with.

Open /admin/user_edit.php

Find:
Code:
$email_address    = $user['email'];
Add Below:
Code:
$lastloginip	  = $user['lastloginip'];
Find:
Code:
<div class="clearfix alt-highlight">
                                    <label>Paid Expiry:</label>
                                    <div class="input">
                                        <input id="expiry_date" name="expiry_date" type="text" class="small" value="<?php echo adminFunctions::makeSafe($expiry_date); ?>"/>&nbsp;&nbsp;(dd/mm/yyyy)
                                    </div>
                                </div>
Add Below:
Code:
<div class="clearfix">
                                    <label>IP Address:</label>
                                    <div class="input"><input type="text" class="small" value="<?php echo adminFunctions::makeSafe($lastloginip); ?>" readonly /></div>
                                </div>
Save and upload

You should now see the following when you edit a user:
 

Attachments

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
That would require a fair bit more coding added to multiple files. Because it doesn't log who downloaded the files, it only logs the number of downloads, country OS, and browser.