New Ticket Link within the Admin Panel

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
morsedesign
Posts: 15
Joined: Thu Jan 07, 2010 8:50 pm

New Ticket Link within the Admin Panel

Post 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.
Shawn Morse | Morse Associates, LLC
Lead Designer/Programmer
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post 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%">&nbsp;</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.
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
morsedesign
Posts: 15
Joined: Thu Jan 07, 2010 8:50 pm

Post by morsedesign »

Works like a charm.. Thanks Klemen.
Shawn Morse | Morse Associates, LLC
Lead Designer/Programmer
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

@ morsedesign

You can even put it with another icon on the nav bar, it's simple and beautiful to view :wink:

If you want I will post an image as example and the code for it :D

Bye!
Last edited by m4dbra1n on Thu Jun 24, 2010 1:42 pm, edited 1 time in total.
morsedesign
Posts: 15
Joined: Thu Jan 07, 2010 8:50 pm

Post by morsedesign »

That would be great if you can post that.

Thanks!
Shawn Morse | Morse Associates, LLC
Lead Designer/Programmer
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

OK

In the following pic you can see the result; icons are from different packs and sites:

Image

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>&nbsp;&nbsp;&nbsp;</td>
Obviously for the icon you must set the correct path instead of mine ;)

Looks good, don't you agree? :D

BYE!
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post 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? :roll:
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It might be hard to show all the icons in one line in some languages that have longer words for certaing features.
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
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Re:

Post 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? :roll:
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 :wink:
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: New Ticket Link within the Admin Panel

Post by Klemen »

Already included in 2.3 :wink:
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
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Re: New Ticket Link within the Admin Panel

Post 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! :D
Post Reply