IP2location in ticket

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

IP2location in ticket

Post by hollandsedrop »

/*************************************
Title:
Version: 2.1
Author:
Demo:
Download:
Website:

Short description:


*************************************/

Hi friends,
I have an idea. In the IP field, as in the following ticket ip2locatin.com images or other web sites write information?

Address sample query:
http://www.ip2location.com/134.71.220.8

Example:
http://img30.imageshack.us/img30/5240/exticket.jpg
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Thats a fine idea :) - If you have written this MOD could you share it with the rest of us? ;)

**EDIT**
Would be cool in a hidden layer such as your screen shot so that when the IP address is clicked it shows - or even make the IP address itself a link to the information that open in another page.

Just ideas... Got me thinking now lol
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post by hollandsedrop »

Hi,

This way you can make arrangements for this add-on.

open admin_ticket.php and find this line (501)

Code: Select all

<td><?php echo $ticket['ip']; ?></td>
and change it

Code: Select all

<td><a target="_blank" title="Show message country details" href="http://www.ip2location.com/<?php echo $ticket['ip']; ?>"><?php echo $ticket['ip']; ?></td>
sorry my bad english :)
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Hi hollandsedrop, thanks for this ;) Works like a charm.
conepr09
Posts: 8
Joined: Wed Nov 25, 2009 1:09 pm

Post by conepr09 »

I have this working on my site. Works great!
Post Reply