Page 1 of 2
Mods & Suggestions
Posted: Mon May 27, 2013 6:55 pm
by alcazar
After some years using Hesk we want to share some modifications we've done over the time (only the important ones).
Maybe Master Klemen can use some for upcoming versions
The Archive contains 4 Mod files:
- Maintenance Mode
- News
- Priority
- Vacation Mode
Note: The "Vacation Mode" Mod is a basic one. Staff can set their availabilty in their profile. If not available their is no manual assign of that staff.
It is up to Master Klemen to use and enhance this, like making it work for auto-assign and prevent email-notification etc.
The files are in Script-Modification-Format and should be self-explanatory.
/* edit
Fore the files see below, the hoster wasnt reliable

*/
Re: Mods & Suggestions
Posted: Mon May 27, 2013 7:00 pm
by Klemen
Thanks for sharing, much appreciated!
Version 2.5.0 is so close to beta (in final testing stages before beta is released) that I'm afraid this won't be included in 2.5, but definitely I have these things on my "to do" list.
Re: Mods & Suggestions
Posted: Mon May 27, 2013 7:04 pm
by alcazar
...
Re: Mods & Suggestions
Posted: Thu Jun 13, 2013 9:47 am
by danonee
can u reupload ? i cant download it...
Re: Mods & Suggestions
Posted: Fri Jun 14, 2013 2:53 pm
by alcazar
/* removed
already possible in Hesk 2.6.0
*/
Re: Mods & Suggestions
Posted: Fri Jun 14, 2013 3:11 pm
by alcazar
Code: Select all
##############################################################
## MOD Title: Show Priority
## MOD Author: Alcazar < alcazardg@t-online.de >
## MOD Description: Shows the ticket priority in ticket details,
## no whether if customer can set it or not.
##
## Hesk Version: 2.6.0
##
## Files To Edit: 1
## ticket.php
##
## Included Files: n/a
##############################################################
## Before Adding This MOD To Your Hesk, You Should Back Up All Files Related To This MOD !
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
ticket.php
#
#-----[ FIND ]------------------------------------------
#
if ($hesk_settings['cust_urgency'])
{
#
#-----[ REPLACE WITH ]------------------------------------------
#
// if ($hesk_settings['cust_urgency'])
// {
#
#-----[ FIND ]------------------------------------------
#
}
?>
</table>
#
#-----[ REPLACE WITH ]------------------------------------------
#
// }
?>
</table>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Re: Mods & Suggestions
Posted: Sun Jun 16, 2013 4:30 pm
by alcazar
Another small code change we did some time ago.
In standard hesk installation, the default admin (ID 1) cant be deleted - but he can be edited by other admins and even demoted.
If this is unwanted (so there is at least 1 admin around), just use the following:
Code: Select all
##############################################################
## MOD Title: Dont edit Default Admin
## MOD Author: Alcazar < alcazardg@t-online.de >
## MOD Description: By default the Default Administrator (ID 1) cant be deleted,
## but he can be edited. This mod doesnt allow edit nor delete,
## so there is at least 1 administrator in hesk.
##
## Hesk Version: 2.4.2
##
## Files To Edit: 1
## admin/manage_users.php
##
## Included Files: n/a
##############################################################
## Before Adding This MOD To Your Hesk, You Should Back Up All Files Related To This MOD !
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
admin/manage_users.php
#
#-----[ FIND ]------------------------------------------
#
/* To edit yourself go to "Profile" page, not here. */
if ($myuser['id'] == $_SESSION['id'])
{
$edit_code = '<a href="profile.php"><img src="../img/edit.png" width="16" height="16" alt="'.$hesklang['edit'].'" title="'.$hesklang['edit'].'" '.$style.' /></a>';
}
else
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($myuser['id'] == 1) {
$edit_code = ' <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />';
}
else {
#
#-----[ FIND ]------------------------------------------
#
$edit_code = '<a href="manage_users.php?a=edit&id='.$myuser['id'].'"><img src="../img/edit.png" width="16" height="16" alt="'.$hesklang['edit'].'" title="'.$hesklang['edit'].'" '.$style.' /></a>';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
#
#-----[ FIND ]------------------------------------------
#
function edit_user()
#
#-----[ FIND ]------------------------------------------
#
/* To edit self fore using "Profile" page */
if ($id == $_SESSION['id'])
{
hesk_process_messages($hesklang['eyou'],'profile.php','NOTICE');
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($id == 1)
{
hesk_process_messages($hesklang['cant_del_admin'],'./manage_users.php');
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Re: Mods & Suggestions
Posted: Mon Jul 08, 2013 11:23 am
by gurdain
Hi there,
Not too confident these work in HESK 2.5
Maintenance Mode: correct message shown to customer, however, staff members still able to see tickets, reply etc.
Vacation Mode: I'm unsure how to do the SQL part according to my prefix...so I haven't tried yet
News Mode: I get an error when I try and enable the knowledgebase (Error: Enter a news text)
Perhaps this is to do with the database require path not available in some of the php files.
I will reverse the changes...perhaps these features will be implemented in the next version, or the creator can find instructions for HESK 2.5
Re: Mods & Suggestions
Posted: Mon Jul 08, 2013 12:47 pm
by gurdain
Uh oh, blank page on hesk and hesk admin......
Re: Mods & Suggestions
Posted: Mon Jul 08, 2013 12:50 pm
by Klemen
Try enabling debug mode manually - in settings.inc.php change
to
Then see if you get an error message instead of a blank page. The error should tell you where the problem is (which line in which file).
Re: Mods & Suggestions
Posted: Mon Jul 08, 2013 12:57 pm
by gurdain
Alright solved my problem...sorry for posting my woe on here.
Disabled the mods suggested for now until Klemen integrates it into a newer version
Re: Mods & Suggestions
Posted: Wed Jul 10, 2013 9:00 pm
by alcazar
gurdain wrote:Hi there,
Not too confident these work in HESK 2.5
Maintenance Mode: correct message shown to customer, however, staff members still able to see tickets, reply etc.
Vacation Mode: I'm unsure how to do the SQL part according to my prefix...so I haven't tried yet
News Mode: I get an error when I try and enable the knowledgebase (Error: Enter a news text)
They should work with 2.5, at least they do on our page

For Maintenance, this is intended, customers cant open or view/reply tickets and in the acp the "new ticket" link will be removed. Tickets can still be viewed.
Maybe one can make it so, that with maintenance on only users set as administrators can login and will be shown the message (like its in forums). But this is outside me knowledge of php
As said vacation mode mod is a simple one and should be used on your own risk.
As for the SQL statement, if youre using the "hesk_" prefix just execute the statement, else replace the prefix with the one youre using.
News Mode: What should have this to do with the KB? News are shown above the KB in the index, yes, but there is nothing with activate or deactivate it.
Re: Mods & Suggestions
Posted: Sun Jul 14, 2013 6:48 pm
by alcazar
/* removed
already possible in Hesk 2.6.0
*/
Re: Mods & Suggestions
Posted: Fri Aug 09, 2013 9:26 pm
by alcazar
Some (sub-)versions ago you introduced the internal mail system, where staff can send each other "mails" (or pm as in forums).
But you can only select one user to receive the mail, it would be nice to select more to send the mail to.
Sometimes staff or administrators want to send the same mail to several users.
Is something like this planned for a future version (even if its Hesk 7 or so

) or will it stay unchanged?
Thanks and have a nice weekend.
Re: Mods & Suggestions
Posted: Sat Aug 10, 2013 7:40 am
by Klemen
Yes, planned... for HESK version 6.5.8
