Author Topic: Print button in Popup Window.  (Read 7869 times)

0 Members and 1 Guest are viewing this topic.

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Print button in Popup Window.
« on: May 08, 2003, 01:57:21 PM »
Hello,

At my site : if people click the thumbnail pic, a popup window shows up with the big size picture in it.
header.thml generates the popup.
details.html contain the html where the image is put in.

I want people only to be able to print he picture, not to save it or to link to it.
So i would like to make a print button in the popup, so the picture could be printed out.
i can find a way to make a print button, with java script, but always the whole page ( popup ) is printed out,  so even the print button is printed out ....
(and aff course the printed figure has to match an A4-format.)

so : anyone has an idea how to manage this ?

Some guys managed it already at www.kleurplaten.nl
i'm still trying at www.schoolplaten.com

Thx !

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
Print button in Popup Window.
« Reply #1 on: May 08, 2003, 02:56:05 PM »
do u mean something like i have on my site under each pic?

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
print button
« Reply #2 on: May 08, 2003, 05:02:42 PM »
i had something else in mind, but i think the system you use could work also, yes,

only problem, when i try to print something from your site, even when logged in, the printer doesn't print out the pic, only the comment above and under the pic.
"Crazy Pics Community presents: "
and
" Dieses pic wurde von http://..... " ?

there must be a bug somewhere i think......

but if it works, i would like to know how you did this, yes....
 :)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
phprint.php
« Reply #3 on: May 08, 2003, 06:11:10 PM »
found a code myself at :

http://www.mikenew.net/download/scripts/phprintCodeDisplay.php

but when i do all they say, i always get the message :
"Page printed from:
http://schoolplaten.com/details.php?image_id=53 "  (or 54,55,... )

and nothing happens, no printing starts... ?  :(

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
Re: print button
« Reply #4 on: May 08, 2003, 06:50:12 PM »
Quote from: kief24
i had something else in mind, but i think the system you use could work also, yes,

only problem, when i try to print something from your site, even when logged in, the printer doesn't print out the pic, only the comment above and under the pic.
"Crazy Pics Community presents: "
and
" Dieses pic wurde von http://..... " ?

there must be a bug somewhere i think......

but if it works, i would like to know how you did this, yes....
 :)


Well i check my code again but there is now msitake... Maybe in your Browser which Browser do u sue? IE 6.0?

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
print button
« Reply #5 on: May 09, 2003, 10:49:23 AM »
yes, IE 6.0

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
Print button in Popup Window.
« Reply #6 on: May 09, 2003, 02:10:15 PM »
strange  4 me it's working... But did u have the print function includeted into your site?

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
print button
« Reply #7 on: May 10, 2003, 02:53:11 AM »
What i did is written here :
http://www.4homepages.de/forum/viewtopic.php?t=5551

and what exactly do you mean by "the print function included in your site" ?
do you mean if i have put the phprint.php in the root folder ?