pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => KalenderMx => Thema gestartet von: Trond am 16 Januar 2004, 11:24:51

Titel: Version 1.3 no print page available...
Beitrag von: Trond am 16 Januar 2004, 11:24:51
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:
Titel: Re: Version 1.3 no print page available...
Beitrag von: skiman am 19 Januar 2004, 14:59:29
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
Titel: Re: Version 1.3 no print page available...
Beitrag von: Andi am 28 Januar 2004, 16:44:23
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 ;)
Titel: Re: Version 1.3 no print page available...
Beitrag von: skiman am 30 Januar 2004, 17:00:08
many thanks Andi,