images don't show in print preview

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
alatham
Posts: 15
Joined: Mon 27. Feb 2006, 03:18

images don't show in print preview

Post by alatham »

Hello - when I go to "print preview" in my web browser (either Mozilla and IE), my website's images don't show up. Does anyone know why? I suspect it is the reference I'm using in my css (example: background-image: url(/img/CGRS_Logo.jpg). It is different than the reference I have used in other css (example: background-image: img/CGRS_Logo.jpg), but when I try to use this style, the images don't show up on the page. I'm using a template that I purchased so I'm not sure what might be at work.

Thanks!
Amy
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Hi alatham,

you´re right no css in printpreview.
But there´s another possibility as using the "print preview".
Why do you just offer a printing-option?

It´s not that hard to get an own printlayout.

You´ll find the settings in /include/inc_front/content.func.inc.php (approximately at the middle) and can edit it like this:

Code: Select all

//if print layout should be showed
	$prepend = "<div align='left'><img src='/picture/yourpicture.png' /></div>"; 
   $postpend = "<div align='center'>a little bit text or something else </div>"; 
   $content["all"]   = $prepend.$block["maintext"].$postpend; //$content["main"] 
   $block["css"]   = "print_layout.css"; //sets css to standard printing layout
	
}
[/b]

This printlayout will be activated with the normal replacementtag like

Code: Select all

[PRINT]Druckvoransicht[/PRINT]
and shows the Content
without the pageheader footer and all that bothering stuff.

Or take a look at this:
http://www.phpwcms.de/forum/viewtopic.p ... =print+php
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
Post Reply