02-02-2010, 03:18 PM
MgHq and I made this quick simple mod to show the user's signup ip when the admin is looking at user details. No doubt there is a better way to do this but without any documentation for THT this is a really simple way to add it.
Just add the code to the very bottom of the following to files.
/includes/variables.php
/includes/tpl/clientdetails.tpl
Just add the code to the very bottom of the following to files.
/includes/variables.php
Code:
global $db;
$query= $db->query("SELECT `ip` FROM `tht_users` WHERE id='$_GET[do];'");
$dataquery= mysql_fetch_array($query);
$data = preg_replace("/%IP%/si", $dataquery[ip], $data);/includes/tpl/clientdetails.tpl
Code:
<div class="subborder">
<div class="sub">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">Signup Ip:</td>
<td align="right">%IP%
<a title="The Ip address that this user signed up with." class="tooltip"><img src="<URL>themes/icons/information.png" /></a></td>
</tr>
</table>
</div>
</div>