how to?

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

how to?

Post by mubdea »

how can I:

1) make the script Right to Lift instead of Lift to Right
2) add more custom fields

thank you
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: how to?

Post by Klemen »

1) I don't have experience with that, but you'd probably have to modify encoding and header HTML code (file inc/header.inc.php)?
2) you'd have to modify the database and settings files. I'm afraid such customizations are out of the scope of my support, but I will probably add additional custom fields to Hesk 2.3
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

Re: how to?

Post by mubdea »

thank you for your response
I mange to make it rtl by adding some codes like dir="rtl" & style="text-aligen:right" & style="float: right"
to each table, form, input and text


I have two more thing I want to ask about

1) is there a way to make the category field fix or unchangeable when using a direct link to category ?

2) is there a way to hide the custom fields that are not used or filled by the costumer in ticket.php and print.php ?
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

Re: how to?

Post by mubdea »

2) is there a way to hide the custom fields that are not used or filled by the costumer in ticket.php and print.php ?


I mange to do this by changing this

Code: Select all

if ($v['use'] && $v['place']==0 )
to this

Code: Select all

if ($v['use'] && $v['place']==0 && $ticket[$k] !="")
in ticket.php & print.php & admin_ticket.php


put still I couldn't do this
1) is there a way to make the category field fix or unchangeable when using a direct link to category ?
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

Re: how to?

Post by mubdea »

1) is there a way to make the category field fix or unchangeable when using a direct link to category ?

I finally mange to this by

Code: Select all

	<?php
	if (!empty($_GET['catid']))
	{
		$_SESSION['c_category'] = intval($_GET['catid']);
	}

	require(HESK_PATH . 'inc/database.inc.php');

	hesk_dbConnect();
	$sql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'categories` ORDER BY `cat_order` ASC';
	$result = hesk_dbQuery($sql);
	while ($row=hesk_dbFetchAssoc($result) )

	{
	    if (isset($_SESSION['c_category']) && $_SESSION['c_category'] == $row['id']) {$selected = ' selected="selected"';}
	    else {$selected = '';}
	    echo '<option value="'.$row['id'].'"'.$selected.'>'.$row['name'].'</option>';
	}
	?></select></td>
					</tr>
    <?php
    /* Can customer assign urgency? */
    if ($hesk_settings['cust_urgency'])
    {
    ?>
to this code

Code: Select all

	<?php
	if (!empty($_GET['catid']))
	{
		$_SESSION['c_category'] = intval($_GET['catid']);
	}
	else { $_SESSION['c_category'] = intval(1); } 

	require(HESK_PATH . 'inc/database.inc.php');

	hesk_dbConnect();
	$sql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'categories` ORDER BY `cat_order` ASC';
	$result = hesk_dbQuery($sql);
	while ($row=hesk_dbFetchAssoc($result) )
	if ( $_SESSION['c_category'] == $row['id']) {
	{
	    if (isset($_SESSION['c_category']) && $_SESSION['c_category'] == $row['id']) {$selected = ' selected="selected"';}
	    else {$selected = '';}
	    echo '<option value="'.$row['id'].'"'.$selected.'>'.$row['name'].'</option>';
	}}
	?></select></td>
					</tr>
    <?php
    /* Can customer assign urgency? */
    if ($hesk_settings['cust_urgency'])
    {
    ?>
I know nothing about coding of any language I just tried this and this, till I did what I want
so I am not sure whether what I did is right or wrong but it worked fine with me
Post Reply