Referer URL on tickets
Posted on 26 November 2008 by Bruce
Someone recently asked how they could place the http_referer on tickets so they knew which page the user came from.
This could be very useful if you have one helpdesk for multiple domains, it could cut down on asking users which page or product they are talking about.
The fix below is courtesy of Dewa, I am just posting it here as a service and claim no credit.
————–
To display the Referer URL, open ticket_new.php and write this line inside the
if (!$isAjax) { :
$iDeskTpl->assign(‘url_referer’, $_SERVER['HTTP_REFERER']);
Then put this on the templates to display the URL:
{$url_referer}
Make sure that you edit the right template for the script or it won’t be displayed, i.e. when you edit “idesk/ticket_new.php” you should edit “idesk/templates/ticket_new.html”
and so when you edit “idesk/admin/ticket_new.php” you should edit “idesk/templates/admin/ticket_new.html”



