Fork me on GitHub

PrintanyPage help request  Bottom

  • I am attempting to install 'printanypage' and part of the installation instructions are as follow:

    Change the code that ends the HEAD section so that it includes the following:

    echo '\n";
    echo '';


    I am using 0ri0n theme, in which the HEAD section (as far as I could find) does not exist.

    Any help or direction is greatly appreciated.

    Scott
  • The problem is that the 0ri0n theme doesn't close the HEAD section that PN starts for the theme. Just put the code directly above where the 0ri0n theme generates the tag.

    And I replied to your email as well....
  • Got it...almost...the only problem I am having now, is that after using Printanypage to print, it won't return to the proper theme. For example, the next page I click to within postnuke is still in the pap theme. I need to do a refresh to return to the regular theme.

    Any suggestions?
  • Hi -

    I'm trying to implement this in PN 750, PostNuke template. I'm not really a noob, but still having a few problems following the (excellent) manual.

    I can get it into the header file fine. The problem is with the printer button graphic.

    The button graphic doesn't show, just the code I added -

    Also, instead of jumping to the particular article's print-formatted page, it's simply reopening the entire page it's on - menus, banners, everything - in a smaller window, and the print dialog never opens.

    I don't have a sample link - I took it off after the errors appeared -

    => I think the answer lies in the .750 header.php file - I tried to place the required code:

    Code

    // Add capability to over-ride theme once for this user (needed for print-friendly theme)

        pnSessionSetup();
        $themeOnceLocal = pnSessionGetVar("themeOnce");
        if (($themeOnceLocal != '') && (file_exists("themes/$themeOnceLocal"))) {
            $thistheme = $themeOnceLocal;
        pnSessionSetVar("themeOnce","Ignore");
        $themeOnceLocal = "";
        pnSessionDelVar("themeOnce"); // Done once, now forget about it
        }

    // ColdRolledSteel 01-10-03

    at the bottom, just above the head () snippet, but I'm not sure if that's correct.

    Where in the PostNuke theme should the remaining code go?
    - This part confused me:

    Code

    Change the links to print articles in the themearticle() and themeindex() functions from $preformat[print] to PrintImage($links[fullarticle]). Remember that PHP will reference variables in double-quoted strings but not function calls. (ie - Make sure that PrintImage() is outside all the quotes...)


    Which template file(s), and where? (I don't want the "Print this page" form button - I only want the mini-printer graphic.)

    A step-by-step would be very welcome - but I don't want to push my luck.. icon_redface

    Thanks in advance - looks like a truly helpful MOD!
  • I tried using the Print Any Page mod, but the problem I had with it is that it slowed down the loading of each page -- not a lot, just a few seconds for each page, but Every page, so it got to be just too much of a drag. Just didn't seem worth the trade-off. Is this others' experience as well? Should I give it another try?
  • I'm stumped on installing printanypage for .750.

    I don't see where to add the code in the head function. Is this now to be replaced by assigning the themeoverridecategory value? If so, where and to what?

    Thanks!!!
  • No, I haven't looked at PrintAnyPage for PN 750 and later...

    Are you using PN 750 or 760? Classic theme or Xanthia theme?
  • I'm using .750 with a slightly modified ExtraLite theme. I'll most likely end up using some Xanthia based themes, but I'm not there yet.

    Thanks!

This list is based on users active over the last 60 minutes.