how can I:
1) make the script Right to Lift instead of Lift to Right
2) add more custom fields
thank you
how to?
Moderator: mkoch227
Re: how to?
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
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 
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


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
Re: how to?
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 ?
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 ?
Re: how to?
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
to this
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 ?
I mange to do this by changing this
Code: Select all
if ($v['use'] && $v['place']==0 )
Code: Select all
if ($v['use'] && $v['place']==0 && $ticket[$k] !="")
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 ?
Re: how to?
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
to this code
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
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'])
{
?>
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'])
{
?>
so I am not sure whether what I did is right or wrong but it worked fine with me