Version 1.3 no print page available...

Begonnen von Trond, 16 Januar 2004, 11:24:51

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

Trond

Can anyone point me in the right direction to help me enable the "print page" option in Kalender 1.3. I`m running it on PHP-Nuke 7.0.

Thanks!

Trond :redhead:

skiman

I have the same problem. As a stop gap I have modified the code in function.php as follows:-

 // remove submit branch allows print to appear on the event calender.
// the following line can replace the one below it but prints the whole page rather than the calendar.
//echo "<a href='".$printerlink."' target='calprintwin' onClick=\"window.print()\">";

This is around line 353.

It's not perfect in that it will print the whole page rather than the event calender but it does work.

The reason why the print button does not appear looks like a fault with submit on the  if (!$printerlink) line 353, I removed it and got it to work.

Hope this helps

 :yltype: nigel

Andi

Hi :)

sorry for this bug. You can fix it with the following instructions:

edit file modules/Kalender/includes/functions.php

replace line 306 :
 $printerlink = (isset($_ENV["REQUEST_URI"])) ? $_ENV["REQUEST_URI"]."&cprint=1" : "";

with the following code:


if (isset($_ENV["REQUEST_URI"])) {
$printerlink = $_ENV["REQUEST_URI"]."&cprint=1";
}
else { // REQUEST_URI kann auf manchen Servern nicht verfügbar sein
$req = array_merge($_GET,$_POST);
foreach ($req as $key => $value) {
$parts[] = "$key=$value";
}
$printerlink = (isset($parts)) ? "modules.php?".implode("&",$parts)."&cprint=1" : "";
}


I hope, that i can change the download in the next week ;)
schön´s Grüssle, Andi

skiman