I am wanting to customize the Helpdesk support ticket and add new fields for the user to complete. Some will be text, some will be a choice from a drop-down menu.
I can add new fields to the form on the support page by updating the 'block_support.html' page. I've had a look around the 'block_support.php' page, but I can't figure out how to send these new fields through the php and create new 'message tags' so I can add these tags into the 'administrator notification' email.
I also need to add these new fields into the support centre in the backend of the site.
Also, as the customer will only be able to create a support ticket once they are logged in, I would like to be able to automatically pull information about them, so that the customer doesn't have to enter these details in manually. So, details like 'Customer name', 'Company name' and a bespoke field I added to the registration form.
Has anyone else got any ideas if this is possible?
Thanks
jcook
27 Nov 2007 7:44 PM
This is an excellent question.... can anyone help out on this?
Thanks.
stormy (Guest)
2 Dec 2007 7:07 AM
I haven't done it with the help desk, but I have added fields to the articles.
In the table, I added a field.
Then in blocks/block_articles_list.php I added the field name to the sql statement. I also added a block of code further down to process the field.
// add audio block to program
$stream_audio = $db->f("stream_audio");
(some processing cut out here) $t->set_var("stream_audio", htmlspecialchars($stream_audio));
$t->global_parse("flash_player_block", false, false, true);
Then I changed the template to include a
<-- begin flash_play_block --><-- end flash_play_block --> section to display my field.
Hopefully that will help you get started with changing the support files.