Page 1 of 1

Query

Posted: Tue Apr 26, 2011 1:14 pm
by devcoder1
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi all,

We are using Hesk helpdesk v2.2 and have a few queries:-

1. Where do I remove the MAIL icon in the toolbar? We don't use the MAIL feature, and want it removing entirely (or at least so it's not visible)

2. Is it possible to add an extra column to the table on the admin homepage, which displays tickets based on a customised field? I would like to be able to mark tickets as X (it's for an internal process separate to hesk) - if it's not marked as X then one of our agents will pick up on it.

3. Can we change the default search type from Tracking ID to a customised field that we have created?

4. Extend the session timeout limit, at the moment we are finding that our agents are getting logged out when they reply to the ticket with text that’s taken them 10-15 minutes to write. Is this software related or server based? Do I need to increase a limit somewhere in the apache config? Running debian.

Regards
Devcoder1

Re: Query

Posted: Sat Apr 30, 2011 2:19 pm
by Klemen
Hi,

1. The code is in "inc/show_admin_nav.inc.php", open it in notepad and remove

Code: Select all

			<td><a href="mail.php"><img src="../img/ico_mail.gif" width="26" height="26" border="0" alt="<?php echo $hesklang['menu_msg']; ?>" title="<?php echo $hesklang['menu_msg']; ?>" /><br /><?php echo $hesklang['menu_msg']; ?> (<?php echo $num_mail; unset($num_mail); ?>)</a><br /><img src="../img/blank.gif" width="50" height="1" alt="" /></td>
			<td>&nbsp;&nbsp;&nbsp;</td>
2. Possible yes, but the amount of work required is out of the scope of my free support here, sorry.

3. In "inc/show_search_form.inc.php" try changing

Code: Select all

$what = isset($_GET['what']) ? hesk_input($_GET['what']) : 'trackid';
to

Code: Select all

$what = isset($_GET['what']) ? hesk_input($_GET['what']) : 'custom1';
If you want to search by default in custom filed 3 for example you would change 'custom1' to 'custom3'

4. How long sessions take to expire is set in PHP configuration on the server - not something I can help with. You can aslo remove this piece of code from "admin/admin_reply_ticket.php":

Code: Select all

hesk_token_check($_POST['token']);

Re: Query

Posted: Fri Sep 16, 2011 10:28 am
by devcoder1
Klemen wrote:Hi,

1. The code is in "inc/show_admin_nav.inc.php", open it in notepad and remove

Code: Select all

			<td><a href="mail.php"><img src="../img/ico_mail.gif" width="26" height="26" border="0" alt="<?php echo $hesklang['menu_msg']; ?>" title="<?php echo $hesklang['menu_msg']; ?>" /><br /><?php echo $hesklang['menu_msg']; ?> (<?php echo $num_mail; unset($num_mail); ?>)</a><br /><img src="../img/blank.gif" width="50" height="1" alt="" /></td>
			<td>&nbsp;&nbsp;&nbsp;</td>
2. Possible yes, but the amount of work required is out of the scope of my free support here, sorry.

3. In "inc/show_search_form.inc.php" try changing

Code: Select all

$what = isset($_GET['what']) ? hesk_input($_GET['what']) : 'trackid';
to

Code: Select all

$what = isset($_GET['what']) ? hesk_input($_GET['what']) : 'custom1';
If you want to search by default in custom filed 3 for example you would change 'custom1' to 'custom3'

4. How long sessions take to expire is set in PHP configuration on the server - not something I can help with. You can aslo remove this piece of code from "admin/admin_reply_ticket.php":

Code: Select all

hesk_token_check($_POST['token']);
To change the question 3 on this in v2.3, I can't seem to find that code in /inc/show_search_form.inc.php?

Thanks

Re: Query

Posted: Fri Sep 16, 2011 12:40 pm
by Klemen
In 2.3 if you click "More options" you have an option to "Make this my default view" - just select all the options you want then save it as your default.

Re: Query

Posted: Tue Nov 08, 2011 3:21 pm
by Lisaweb
To implement this view in 2.3, find this code in "inc/show_search_form.inc.php" (near the top of the page)

Code: Select all

if (!isset($what))
{
	$what = 'trackid';
}
And then replace "trackid" with whatever field you would like it to default to.

Code: Select all

if (!isset($what))
{
	$what = 'subject';
}
OR for a custom field:

Code: Select all

if (!isset($what))
{
	$what = 'custom1';
}