$printThisURL = pnModUrl('pagesetter','user','viewpub',
array('tid' => $tid,
'pid' => $pid,
'theme' => 'Printer'));
$printThisURL = htmlspecialchars($printThisURL);
$printThisHTML = "<a href=\"$printThisURL\" target=\"_blank\">" . _PGPRINTTHIS . "</a>";Jorn -
New to PostNuke 0.76 is a new, special "Printer Friendly" theme intended to make any content page of a PostNuke site printer friendly. It has some really nice features:
* Automatically includes hooked content, such as comments (which was the big one for me)
* Converts links into footnoted URLs, so that even when it's printed on paper the reader can see where he can browse to
* Automatically excludes blocks, but since it's a Xanthia theme you could (theoretically) designate particular blocks to show up in a Printer Friendly page for particular modules.
It seems to me that it would be a good idea to swap this method for your existing one. I hacked pnuserapi.php to do it for myself at line 1024:
Code
$printThisURL = pnModUrl('pagesetter','user','viewpub',
array('tid' => $tid,
'pid' => $pid,
'theme' => 'Printer'));
$printThisURL = htmlspecialchars($printThisURL);
$printThisHTML = "<a href=\"$printThisURL\" target=\"_blank\">" . _PGPRINTTHIS . "</a>";
What do you think?
Template courtesy of Designs By Darren.