Hi,

Thanks for sharing this tip. :)

Regards

25 days later

Great addon!

Many thanks for your code and documentation:)

10 days later

one more help

Excellent!

But how can I insert the print button in that area where the client visualize the ticket? (Page that opens after the user enters their email address and ticket number)

I would like the user who opened the ticket could print too!

Thanks!

:

In portuguese:

Excelente!

Mas, como eu posso inserir o botão de print naquela área onde o cliente visualisa o ingresso? (Página que abre após o usuário digitar o email e número do ticket)

Gostaria que o usuário que abriu o ticket pudesse imprimir também!

Obrigado!

8 days later

Couldn't get it to work

Hi guys,

I've tried this MOD 4 times without any luck. I'm using osTicket 1.6 RC5.

I'm feeling pretty stupid at this instance.

-Source of one of my open tickets: www.mydomain.com/support/scp/tickets.php?id=183(www.mydomain.com/support/scp/tickets.php?id=183)

as you can see print.css line doesn't show up.

any tips? Thanks in advance

2 months later

Many thanks, saved me a ton of work! We just needed something quick and simple to get things going - we're still trying to define our exact needs.

Thanks, again,

James

a month later

To remove the bottom buttons from the print form and to add ability to Print for clients:

1. In \include\staff\viewticket.inc.php

replace

with

2. Add in \styles\print.css:

a.printTicket { display: none; }

3. Add in \scp\css\print.css:

table.tabber_line { display: none; }

4. Find at \styles\main.css lines:

#nav a.ticket_status { background(../images/ticket_status.gif) 0 5px no-repeat; }

#nav a.log_out { background(../images/logout.gif) 0 5px no-repeat; }

and add there:

a.printTicket { background(../images/icons/print_ticket.gif) 0 0 no-repeat; padding-left;}

5. Copy \scp\images\icons\print_ticket.gif to \images\icons\print_ticket.gif

6. Change in \include\client\viewticket.inc.php:

to:

and add after:

 

this line:

Print

12 days later

Thank You

JoseLuis

GOod work.

THank you this is just what i needed.

It works perfectly. THanx man!

a month later

Adding my thanks for this mod as well.... works great !

a month later
16 days later

This mod looks great, but I am not having much luck in getting it to work. When I click the print button, it simply prints the webpage. Any thoughts?

I have the same problem what permission did you have to change it to and was it for the print.css files or some other files? if so i tried with no luck please help.

6 days later

thanks.. i would like to try this.. :)

7 days later

Thank you for this, worked perfectly!

This is a great addition to this fine app. Like others I too have a feature request. Would it be possible to add a logo graphic to the top of the print out? Or like someone else suggested have a customizable header and footer.

4 days later

Good mod!

but i have one problem. i need to print one ticket twice on one paper. any suggestions?

14 days later

Having troubles once installed

I think that I have placed everything exactly where there person above stated i should, and for some reason now, I've lost connectivity to the scp section of the website.

I know it has nothing to do with anything else considering I checked it prior to adding the print feature.

Does anyone know what could have made the admin section not show anymore.

Any assistance. I own a online gaming clan, and we sale servers, so this would be nice to figure out sooner than later.

P.S. I'm a beginner in CSS and PHP, so I don't know enough. but I don't mind reading.

a month later

Customize Output

Anyone here able to customize the output for the print. I'd like to make the ticket prettier (adding my logo) I'd also like to change the overall layout as well as condense the ticket to 1 page. It's 2 pages in length now once the time sheet is enabled.

Hmm.. the icon doesn't appear as it is supposed to be

Dear Joselius,

After adding all the code as mentioned, the icon doesn't seem to appear as it should. Attached is the screen shot. Did i miss out any code?

Cross check many many times on all the code, file by file, still don'e find anything missed out.

By the way, I did add the mod to print initially recommended by xrat.

Assistance is mcuh appreciated.

Thank you.

header.jpg

Oppss... it removed the codes and recopy the codes onto a wordpad, then copy and paste onto all the php files, now it works fines.

Apologize for the inconvenience.

Thank you Joselius and all.