Knowledge base attachments

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Knowledge base attachments

Post by bastiaan.c »

Hi,

I was hoping to get some help for this.

1 - Each 6 months my ticket system has grown so large that I decided to make an archive each time.
2 - That means that I make a separate installation (copy) of the complete ticket system.
3 - Then in the current ticket system, I delete every ticket and every attachment
4 - Unfortunately also the knowledge base article attachments are in that folder :roll:
5 - Is there a way that I could store knowledge base attachments in a different folder ?
6 - Any help on this would be great :)
7 - Thanks for all you do
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Knowledge base attachments

Post by Klemen »

Well the KB attachments are always 32 chars long + ".jpg" (or whatever), so in total usually 36 chars. Also, KB attachments never have "_" or "-" in their name. You can create a script that will delete everything except such files.

The alternative would be to overwrite the $hesk_settings['attach_dir'] variable to another folder inside knowledgebase-related files. You would also need to create a copy of "download_attachment.php" file for use in KB and overwrite the $hesk_settings['attach_dir'] variable there as well.
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
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Knowledge base attachments

Post by bastiaan.c »

Thanks Klemen for your fast reply.

I understand that this is not just a quick fix :(

I guess with my knowledge it is best to do all manually then :roll:
Post Reply