- Edited
Love this Mod for the Staff side--how can I add this for the user/client?? Anyone know?Thank you so much
as long as you updated your client & staff header file it should be on both. i needed ../print.css rather than ./print.css
Love this Mod for the Staff side--how can I add this for the user/client?? Anyone know?Thank you so much
as long as you updated your client & staff header file it should be on both. i needed ../print.css rather than ./print.css
Many thanks for the help...I understand that I need the client and staff header, what do you mean by "../print.css"?
Many thanks for the help...I understand that I need the client and staff header, what do you mean by "../print.css"?
in the header.inc.php file, i had to change the location of:
<link rel="stylesheet" href="./styles/print.css" media="print">
to
<link rel="stylesheet" href="../styles/print.css" media="print">
Hi,
I have tried what you suggested BUT only still getting the web view....checked and double checked/....
Try all the steps from the beginning! They work fine you are missing something..1st are you on View Ticket page ?
if yes, on your Browser do the following steps:
View >> Source-Code
On the tag search this:
<link rel="stylesheet" href="css/main.css" media="screen">
<link rel="stylesheet" href="css/style.css" media="screen">
<link rel="stylesheet" href="css/print.css" media="print">
Is it like the code above ? No? try making the 2nd step again.
Is it like the code above ? Yes? try making the 1st step again.
Is there a way to fit more on a page?
It may be just person preference but for me the print out seem much to large.
Would like to see a font size approaching 12 pt.
Tom
Having same issue as couple others, Button doesnt show. only shows as words
Worked great for me.
I would like some other option on this, if anyone knows how.
I need to add in the company name, address and phone number to the top of the prints. Does anyone know how this would be possible?
Mine is just printing as a webpage. Doesn't look anything like the OP. I have the newest version of OST installed.
Edit: Got it working. Forgot to do the 2nd part of part 2
Having same issue as couple others, Button doesnt show. only shows as words
make sure it's in the icons folder, not the images folder
Thank you for the great mod. It's possible to remove some information in the ticket so it will not be include in the print out ( I don't want to include internal notes to be print).
Thanks
Add image to printed page
How can i ad an image to the header of the printed ticket page? Is it possible?
Header LOGO IMAGE
Found a solution
on print.css set it to look like this.
/* print.css for osTicket by Andreas Schamanek v0.02 (c) public domain */
body { color: black; background-color: white;
font-family: arial, helvetica, sans-serif;
background-image: url('http://.../.../images/logo2.jpg');
background-repeat-repeat;
background-attachment;
background-position top;
}Thanks for this mod.
Perfect for my school support system.
Don't print Internal Notes?
First off, thanks for the Mod.
I have been trying to stop the Internal Notes section from printing. Adding table.ticketnotes and table.note to the elements to hide. Creating a separate table.note {display;} by itself. Removing the references to ticketnotes in the print.css but it still prints.
I have set display to tables that were in divs and other tables before with no problems.
What am I missing?
Thank you!
I am having a slight problem with printing from the client ticket where it will only print the 1st page of a long ticket.
Printing from the staff side does not have this issue.
Any ideas?
A great mod. Worked beautifully!
Thanks for sharing
removing the tables under subject
I'm very close to doing away with quickbooks estimate pages for booking customers but I just can't get my brain back into CSS gear after 5 years of absence. Has anyone already removed the tables immediately under subject? I could really use the space.
Print ticket for client
Hello,
i was implemented that MOD too and i realized on client panel i don't have the print button, i'll put all steps again too:
FIRST STEP
Create a file print.css with the following content:
Bla, bla, bla... code what already you have it on first page.
Copy the ”print.css” to following paths:
osTicketRootFolder/scp/css
osTicketRootFolder/styles
SECOND STEP
File: osTicketRootFolder/include/client/header.inc.php.
FIND:
<link rel="stylesheet" href="./styles/main.css" media="screen">
<link rel="stylesheet" href="./styles/colors.css" media="screen">
ADD:
<link rel="stylesheet" href="./styles/print.css" media="print">
FIND:
<li><a class="log_out" href="logout.php"> Log Out</a></li>
ADD:
<li><a class="printTicket" href="javascript.print()">Print Ticket</a></li>
File: osTicketRootFolder/include/staff/header.inc.php.
FIND:
<link rel="stylesheet" href="css/main.css" media="screen">
<link rel="stylesheet" href="css/style.css" media="screen">
ADD:
<link rel="stylesheet" href="css/print.css" media="print">
THIRD STEP
File: osTicketRootFolder/styles/main.css
FIND:
#nav a.my_tickets { background(../images/my_tickets.png) 0 5px no-repeat; }
#nav a.ticket_status { background(../images/ticket_status.png) 0 5px no-repeat; }
ADD:
/** START MOD08 print button **/
#nav a.printTicket { background(../images/print_ticket.gif) 0 5px no-repeat; }
/** END MOD08 print button **
File: osTicketRootFolder/scp/css/main.css
FIND:
#nav a.closedTickets { background(../images/icons/closed_tickets.gif) 0 5px no-repeat #ececec; }
#nav a.newTicket { background(../images/icons/new_ticket.gif) 0 5px no-repeat #ececec; }
ADD
/** START MOD08 print button **/
#nav a.printTicket { background(../images/icons/print_ticket.gif) 0 5px no-repeat #ececec; }
/** END MOD08 print button **
File: osTicketRootFolder/scp/tickets.php
FIND:
$nav->addSubMenu(array('desc'=>'New Ticket','href'=>'tickets.php?a=open','iconclass'=>'newTicket'));
ADD
// START MOD08 add print button to staff page
$nav->addSubMenu(array('desc'=>'Print Ticket','href'=>'javascript.print()','iconclass'=>'printTicket'));
// END MOD08 add print button to staff page
FOURTH STEP
Save the attached image “print_ticket.gif “ to:
osTicketRootFolder\images
osTicketRootFolder\scp\images\icons