NukeWrapper is an HTML wrapper, which means it will wrap any webpage you point it at into a PostNuke site, convenient for when you design pages in an HTML editor like Dreamweaver with tables, layers, images, Flash etc, and want to have them integrated into PostNuke, or for a community site where contributors are nontechnical but know enough to use Frontpage to produce an online newsletter with images etc.
It embeds HTML, PHP, text files and external webpages into PostNuke by "wrapping" PostNuke around them. Local files are incorporated so as to use the site's themes and stylesheets, without the double-scrollbars you get from some modules using iFrames. Document-relative links (images, hyperlinks, stylesheets, and Javscript links) in files not in the PostNuke root are changed to Root-relative links so as not to break them.
Text files are converted to HTML with all special characters escaped to prevent
code execution, and hard spaces are put in to maintain indentation and formatting.
This makes it convenient for having code listings of, say, HTML.
External URLs are placed in an iFrame, but unlike any other script available anywhere (literally), NukeWrapper will resize the iFrame to fit the contents of the page.
You can set whether to use the theme tables or a blank background with the opt (option) flag in the URL.
Download NukeWrapper (v2.7.12 23/07/2005) – Minor bugfix update on the module version (pnuser.php), added support for pn0.76 Startpage Args.
For debugging only, for those who don't know how to configure NW for Debugging
or make sense of the output, here's a version of the page.php file (called page2.php)
with Debugging mode on and allowing normal users (non-Admins) like me to see the output.
Just upload to the PostNuke site root, and access as page2.php?file=example.html
substituting a real filename of course. It'll output lots of geeky stuff as the script runs.
Of most interest is the bit in bold that reads Fullpath. You can use that to deduce the server's Document Root by comparing it to what NukeWrapper believes is the path immediately below under DocRoot.
You can use that to edit the real page.php file and find $DocumentRoot and set the path in the quotes, eg
$DocumentRoot = "C:/Apache2/htdocs";
Once the problem has been fixed, remove this debug version from the site. The normal version also has Debug mode, but is only viewable by Admins of the site.
Virus Alerts block
Symantec Virus Alerts Block is as the name suggests a block to show the latest Virus threats from Symantec. There are 4 categories that can be shown: Latest Threats, Top Threats, Removal Tools, and Security Advisories. Clicking the name will open a new window and take you to the Detail page for the threat. Additionally a Virus search box can be shown at the bottom of the block.
The Latest Threats and Top Threats have a colour-coded and numbered Alerts Catorgory box in front of the Virus name to indicate the Threat level, from 1 (low) to 5 (severe) with the date of discovery underneath.
ShortURLs Packages (experimental)
Screenshots of the tabs:
- The main adminpanel in PostNukeBlue with the Aqua-themed tabs, hovering over the Settings panel.
- Same as above, but with the Theme Override set under Modify Config and with a tabs.css stylesheets in the theme's style folder. The rounded corners are only visible in Mozilla/FireFox.
- The Luna tab theme in SeaBreeze, hovering over the 3rd Party tab.
- The Xanthia Admin tabs using Aqua tabs in PostNukeBlue, hovering on Theme Settings.
And finally, the downloads: I started out fixing PN0.75, so there are 2 downloads: One for PN0.75, and one for PN0.76rc4. I'll update it once the PN0.76 final is released. Please backup your site before installing these patches, since a lot of system files are replaced. The PostNuke 0.76rc4 ShortURL package is rather large, consisting of some 400 files in a 1Mb zip file. The PN0.75 package has some 170 files and is around 800kb. Most of the changes are drop-in changes that doesn't necessitate updating of modules, but there are some exceptions in the PN0.76 package, in particular the Settings and Polls modules, where you need to first go to the Module list, regenerate, and update. Specific patches for popular 3rd party templated modules like AutoTheme and PNphpBB2 are included, but only a limited number of 3rd party modules have been tested with this package. No changes are made to the database, but it is still a good idea to back that up as well. You have been warned.
PostNuke 0.75 ShortURL package (833kb)
These are the fixed and updated versions of some of the Default themes in
PostNuke 0.75. They will be included in future PostNuke releases. A number
of bugs and code optimisation has been made. Some Xanthia plugins are included
I'll get around to fixing the others sometime if someone else doesn't.
Note: PostBukeBlue and SeaBreeze has been changed to work with the modified Xanthia in the ShortURLs package, the extra tags in the templates ($baseurl and $nukepath) will cause errors in a stock PostNuke install.
These visual themes are coded in a way to be editable in HTML editors like Dreamweaver and be more readable for people who aren't too familiar with PHP and with comments throughout. Rather than just being a PHP script with embedded HTML, they are mainly HTML pages with embedded PHP, which is how PHP was originally intended to be used.
One way is more logical to a programmer with limited design ability, the other is more accessible to a web designer with limited programming ability. For a theme, the latter is clearly more desirable.
They are ShortURL enabled and support alternate layouts through the URL.
ShortURLs translate a long PostNuke URLs like
into a shorter URL resembling a static HTML page like:
For more details, read the ShortURL ReadMe
The alternate layouts are set through the URL by providing the variable idx:
idx = Column layout, determines which blocks are displayed. X is 0, 1, 2, 3 or 4.
0 = Default; left blocks, no right blocks.
1 = Home page (with left, right and center blocks with Admin message)
2 = display left and right blocks, no center blocks or Admin message.
3 = No left blocks, display right blocks.
4 = No left or right blocks, only HTML page with Header and Footer.
i-geom.zip (AutoTheme) ShortURL enabled version of i-geom
AutoTheme-ShortURLs for AutoTheme 6