Page 1 of 1
how to?
Posted: Sat Apr 02, 2011 10:48 pm
by mubdea
how can I:
1) make the script Right to Lift instead of Lift to Right
2) add more custom fields
thank you
Re: how to?
Posted: Mon Apr 04, 2011 5:35 pm
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
Re: how to?
Posted: Wed Apr 06, 2011 1:00 pm
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 ?
Re: how to?
Posted: Thu Apr 07, 2011 2:54 pm
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
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 ?
Re: how to?
Posted: Thu Apr 07, 2011 6:59 pm
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