Page 1 of 1
New Ticket Link within the Admin Panel
Posted: Mon Jun 14, 2010 12:42 pm
by morsedesign
Script URL:
Version of script:2.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:
Within the admin panel, when I click on any of the headers to sort (priority, status, etc.), the new ticket link disappears. I can only see it when I click on the Home link.
Posted: Mon Jun 14, 2010 1:06 pm
by Klemen
That's because it's only located on the main page.
But I see your point, it would be better to have it on all pages. Will post a quick hack for this later.
Posted: Mon Jun 14, 2010 1:09 pm
by Klemen
In "admin/show_tickets.php" change
Code: Select all
<h3 align="center"><?php echo $hesklang['tickets']; ?></h3>
to
Code: Select all
<table style="width:100%;border:none;border-collapse:collapse;"><tr>
<td style="width:25%"> </td>
<td style="width:50%;text-align:center"><h3><?php echo $hesklang['tickets']; ?></h3></td>
<td style="width:25%;text-align:right"><a href="new_ticket.php"><?php echo $hesklang['nti']; ?></a></td>
</tr></table>
That should do the trick.
Posted: Mon Jun 14, 2010 1:41 pm
by morsedesign
Works like a charm.. Thanks Klemen.
Posted: Thu Jun 24, 2010 10:50 am
by m4dbra1n
@ morsedesign
You can even put it with another icon on the nav bar, it's simple and beautiful to view
If you want I will post an image as example and the code for it
Bye!
Posted: Thu Jun 24, 2010 11:10 am
by morsedesign
That would be great if you can post that.
Thanks!
Posted: Thu Jun 24, 2010 3:19 pm
by m4dbra1n
OK
In the following pic you can see the result; icons are from different packs and sites:
To obtain that, open the show_admin_nav.inc.php in the inc folder and add these lines, around line 52, just before the HOME button:
Code: Select all
<td><a href="new_ticket.php"><img src="../img/edit_add.png" width="64" height="64" border="0" alt="<?php echo $hesklang['new']; ?>" title="<?php echo $hesklang['new']; ?>" /><br /><?php echo $hesklang['new']; ?></a><br /><img src="../img/blank.gif" width="50" height="1" alt="" /></td>
<td> </td>
Obviously for the icon you must set the correct path instead of mine
Looks good, don't you agree?
BYE!
Posted: Thu Jul 08, 2010 5:31 pm
by m4dbra1n
I don't wannabe a "boaster" but would it be better if you take my mod as regular functionality in your next HESK release?

Posted: Thu Jul 08, 2010 5:52 pm
by Klemen
It might be hard to show all the icons in one line in some languages that have longer words for certaing features.
Re:
Posted: Wed Feb 09, 2011 4:57 am
by Raven
m4dbra1n wrote:I don't wannabe a "boaster" but would it be better if you take my mod as regular functionality in your next HESK release?

Works for me - thank you for the idea of adding this part to the main nav-bar

A small but nice fix as the '+Ticket' text looked a little out of place for me to be honest but now it all looks nice and neat

Re: New Ticket Link within the Admin Panel
Posted: Wed Feb 16, 2011 12:51 pm
by Klemen
Already included in 2.3

Re: New Ticket Link within the Admin Panel
Posted: Wed Feb 16, 2011 9:05 pm
by m4dbra1n
I can't believe it! My simple mod had success and will be integrated in the next release of Hesk! I'm so honoured Klemen!
