Mods & Suggestions

Everything related to Hesk - helpdesk software

Moderator: mkoch227

alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Mods & Suggestions

Post 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 :P

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 :cry:
*/
Last edited by alcazar on Fri Jun 14, 2013 2:36 pm, edited 2 times in total.
Alcazar
(nach Diktat spazierengegangen)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Mods & Suggestions

Post 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.
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
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Mods & Suggestions

Post by alcazar »

...
Last edited by alcazar on Wed Jul 10, 2013 9:00 pm, edited 2 times in total.
Alcazar
(nach Diktat spazierengegangen)
danonee
Posts: 11
Joined: Sun Oct 21, 2012 9:05 am

Re: Mods & Suggestions

Post by danonee »

can u reupload ? i cant download it...
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Mods & Suggestions

Post by alcazar »

/* removed
already possible in Hesk 2.6.0
*/
Last edited by alcazar on Wed Feb 25, 2015 12:32 pm, edited 3 times in total.
Alcazar
(nach Diktat spazierengegangen)
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Mods & Suggestions

Post 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
Last edited by alcazar on Wed Feb 25, 2015 12:34 pm, edited 3 times in total.
Alcazar
(nach Diktat spazierengegangen)
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Mods & Suggestions

Post 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
Last edited by alcazar on Thu May 15, 2014 10:06 pm, edited 1 time in total.
Alcazar
(nach Diktat spazierengegangen)
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Mods & Suggestions

Post 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
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Mods & Suggestions

Post by gurdain »

Uh oh, blank page on hesk and hesk admin......
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Mods & Suggestions

Post by Klemen »

Try enabling debug mode manually - in settings.inc.php change

Code: Select all

$hesk_settings['debug_mode']=0;
to

Code: Select all

$hesk_settings['debug_mode']=1;
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).
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
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Mods & Suggestions

Post 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
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Mods & Suggestions

Post 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 :P
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 :cry:

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.
Alcazar
(nach Diktat spazierengegangen)
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Mods & Suggestions

Post by alcazar »

/* removed
already possible in Hesk 2.6.0
*/
Last edited by alcazar on Wed Feb 25, 2015 12:35 pm, edited 1 time in total.
Alcazar
(nach Diktat spazierengegangen)
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Mods & Suggestions

Post 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 :P ) or will it stay unchanged?

Thanks and have a nice weekend.
Alcazar
(nach Diktat spazierengegangen)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Mods & Suggestions

Post by Klemen »

Yes, planned... for HESK version 6.5.8 :wink: :lol:
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
Post Reply