Stroud Vaping Posted October 6, 2013 Share Posted October 6, 2013 (edited) Hi, I was wondering if anyone knows if it's possible to hyperlink the list of IP addresses in Visitors Online in the BO, so that I can link them to ip-tracker.org for instance and then just click the IP to see where the visitor is located. Thanks in advance for any help, Luke Edited October 8, 2013 by Stroud Vaping (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 by default it isn't possible only with modifications of the classes, before i will try to change it I need information about your prestashop version and also about theme that you use in back office Link to comment Share on other sites More sharing options...
Stroud Vaping Posted October 7, 2013 Author Share Posted October 7, 2013 HI Vekia, PS version 1.5.4.1 and just using the default theme. Thanks, Luke Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 in file: modules/statslive/statslive.php you've got there: foreach ($visitors as $visitor) $this->html .= '<tr'.($irow++ % 2 ? ' class="alt_row"' : '').'> <td>'.$visitor['id_guest'].'</td> <td style="width: 80px;">'.long2ip($visitor['ip_address']).'</td> <td style="width: 100px;">'.substr($visitor['date_add'], 11).'</td> <td style="width: 200px;">'.(isset($visitor['page']) ? $visitor['page'] : $this->l('Undefined')).'</td> <td style="width: 200px;">'.(empty($visitor['http_referer']) ? $this->l('None') : parse_url($visitor['http_referer'], PHP_URL_HOST)).'</td> </tr>'; $this->html .= '</table></div>'; add ahref with any page you want here: <td style="width: 80px;">'.long2ip($visitor['ip_address']).'</td> it should look like: <td style="width: 80px;"><a href="somepage.com/?ip='.long2ip($visitor['ip_address']).'>'.long2ip($visitor['ip_address']).'</a></td> Link to comment Share on other sites More sharing options...
Stroud Vaping Posted October 8, 2013 Author Share Posted October 8, 2013 Boom! You're a flipping legend! Thanks for all your help Vekia. I will mark as solved. Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 hello you're welcome glad to hear that i could help you anyway, this feature is very useful may i know what website you use to check ip address ? Link to comment Share on other sites More sharing options...
Stroud Vaping Posted October 8, 2013 Author Share Posted October 8, 2013 I use ip-tracker.org, which works perfectly with your snippet of code as they format the address as http://www.ip-tracker.org/locator/ip-lookup.php?ip=00.00.00.00 Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now