Page 1 of 1

Move "Submit ticket"/"View existing ticket" to other page?

Posted: Wed Feb 20, 2013 12:37 pm
by sp119
Script URL:
Version of script: 2.4.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
This is an excellent product that has all the options I was looking for in a helpdesk/knowledgebase application however what would work good for me is if I could move the "Submit Ticket" and "View Existing Ticket" from the main helpdesk page to the knowledgebase.php page.

Here is what I'm going for. The HESK helpdesk would be a sub-section of our larger site and when someone clicks on our "FAQ" link it takes them directly to the knowledgebase.php page (bypassing the helpdesk page) where I would have all of our FAQ categories listed with FAQ's on the page. My concern is that our clientele won't take the time to click the "View entire knowledge base" link and just jump straight to submitting a ticket. By moving this to the page where all the questions are listed in categories my hope is that they would read first and ask a question only if it's not already answered.

I have found the table with the code for these links and copied this code:

Code: Select all

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<!-- START SUBMIT -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="7" height="7"><img src="img/roundcornerslt.jpg" width="7" height="7" alt="" /></td>
		<td class="roundcornerstop"></td>
		<td><img src="img/roundcornersrt.jpg" width="7" height="7" alt="" /></td>
	</tr>
	<tr>
		<td class="roundcornersleft">&nbsp;</td>
		<td>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <tr>
	    	<td width="1"><img src="img/newticket.png" alt="" width="60" height="60" /></td>
	        <td>
	        <p><b><a href="index.php?a=add"><?php echo $hesklang['sub_support']; ?></a></b><br />
            <?php echo $hesklang['open_ticket']; ?></p>
	        </td>
	    </tr>
	    </table>
		</td>
		<td class="roundcornersright">&nbsp;</td>
	</tr>
	<tr>
		<td><img src="img/roundcornerslb.jpg" width="7" height="7" alt="" /></td>
		<td class="roundcornersbottom"></td>
		<td width="7" height="7"><img src="img/roundcornersrb.jpg" width="7" height="7" alt="" /></td>
	</tr>
	</table>
<!-- END SUBMIT -->
</td>
<td width="1"><img src="img/blank.gif" width="5" height="1" alt="" /></td>
<td width="50%">
<!-- START VIEW -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="7" height="7"><img src="img/roundcornerslt.jpg" width="7" height="7" alt="" /></td>
		<td class="roundcornerstop"></td>
		<td><img src="img/roundcornersrt.jpg" width="7" height="7" alt="" /></td>
	</tr>
	<tr>
		<td class="roundcornersleft">&nbsp;</td>
		<td>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <tr>
	    	<td width="1"><img src="img/existingticket.png" alt="" width="60" height="60" /></td>
	        <td>
	        <p><b><a href="ticket.php"><?php echo $hesklang['view_existing']; ?></a></b><br />
            <?php echo $hesklang['vet']; ?></p>
	        </td>
	    </tr>
	    </table>
		</td>
		<td class="roundcornersright">&nbsp;</td>
	</tr>
	<tr>
		<td><img src="img/roundcornerslb.jpg" width="7" height="7" alt="" /></td>
		<td class="roundcornersbottom"></td>
		<td width="7" height="7"><img src="img/roundcornersrb.jpg" width="7" height="7" alt="" /></td>
	</tr>
	</table>
<!-- END VIEW -->
</td>
</tr>
</table>
to the knowledgebase.php page. However it doesn't appear on the page. I know there is a call that I'm missing somewhere but I don't know where. If anyone has an idea on how to move this bit of code to the knowledgebase.php page that would be greatly appreciated.

Thanks,

Sean Porter

Re: Move "Submit ticket"/"View existing ticket" to other pag

Posted: Wed Feb 20, 2013 5:01 pm
by Klemen
If I understand correctly, you should include that code just above this line in knowledgebase.php

Code: Select all

hesk_kbTopArticles($hesk_settings['kb_popart'], 0);
You will find this inside knowledgebase.php:

Code: Select all

    /* On the main KB page print out top and latest articles if needed */
    if ($catid == 1)
	{
        /* Get list of top articles */
        hesk_kbTopArticles($hesk_settings['kb_popart'], 0);

        /* Get list of latest articles */
        hesk_kbLatestArticles($hesk_settings['kb_latest'], 0);
	}
You are probably looking for something like this:

Code: Select all

    /* On the main KB page print out top and latest articles if needed */
    if ($catid == 1)
	{

?>
PASTE YOUR CODE HERE
<?php

        /* Get list of top articles */
        hesk_kbTopArticles($hesk_settings['kb_popart'], 0);

        /* Get list of latest articles */
        hesk_kbLatestArticles($hesk_settings['kb_latest'], 0);
	}

Re: Move "Submit ticket"/"View existing ticket" to other pag

Posted: Tue Feb 26, 2013 6:35 pm
by sp119
That was exactly what I was looking for!! Thanks so much.

Now to be really annoying, how can I get that same box to also appear below the answer to an item that has been clicked on. Under the "Article details" box? I'd like to have it in both places.

I'm really liking this HESK helpdesk application!!

Re: Move "Submit ticket"/"View existing ticket" to other pag

Posted: Tue Feb 26, 2013 8:23 pm
by Klemen
Somewhere after

Code: Select all

echo '</fieldset>';
in knowledgebase.php

Re: Move "Submit ticket"/"View existing ticket" to other pag

Posted: Wed Feb 27, 2013 11:32 am
by sp119
That worked perfectly!!! Thank you so much. This is exactly what I needed.
Klemen wrote:Somewhere after

Code: Select all

echo '</fieldset>';
in knowledgebase.php