Download: Helius.zip
Downloads page
Previously unreleased, I ported this theme a while ago from PHP-Nuke by permission of Mikem at Nukemods (now closed), and CyberAlien, who made the original phpBB theme on which the PHP-Nuke theme was based.
It features collapsible menus (though they don't stick), and shows how many Personal Messages a user has under the User name in the menu bar.
It also incorporates the ability to control the column layout by switching columns on or off with the use of the varable idx in the URL:
http://www.somesite.com/index.php?idx=X
Code
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.
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.
Screenshots:
Helius front page
PNphpBB2 in mode 2, …ft and Right blocks
PNphpBB2 in Full screen mode
It is also possible to preset a layout for specific modules in the theme; for instance near the top of the theme, these lines appear:
Code
$CurrentMod = strtolower(pnModGetName('currentMod'));
// if ($CurrentMod == "pnphpbb2" or $CurrentMod == "xforum" or $CurrentMod == "gallery") $index = 4;
// if ($CurrentMod == "pnphpbb2" or $CurrentMod == "xforum" or $CurrentMod == "gallery") $index = 4;
By uncommenting the second line (removing //), PNphpBB, XForum and Gallery will take on the full width of the theme, no blocks at all. Simply include other module names in lower case in the IF statement separated by an OR to set to the same layout, or make a different IF statement under the first for a different layout of other modules:
Code
if ($CurrentMod == "sections" or $CurrentMod == "reviews") $index = 3;
The module names appear under the Module Admin menu, or use this underneath to test:
echo strtolower($CurrentMod)."
";
the name will appear at the top of the screen.
This theme also includes a Short URL rewriting function for for Apache-hosted sites for making your site more search-engine and human-friendly. This feature is off by default however as not all servers will support it. To make your Postnuke site search-engine friendly, the URLs have to be simplified and shortened with no long query strings appended. The included function scans the output of Postnuke and renders a much simpler URL that looks like a regular static HTML page to the search engines, and are also much easier for us humans to digest, convenient for posting in forums. So instead of having
modules.php?op=modload&name=News&file=article&sid=6&mode=thread&order=0&thold=0
you may have
Article6.phtml
or instead of
modules.php?op=modload&name=Search&file=index&action=search&overview=1&active_stories=1&stories_author=msandersen
You have
Search-msandersen-1-1-.phtml
This functionality is enabled by installing the supplied .htaccess file and enabling it in the theme by changing the variable:
Code
$ShortURLs = true;
near the top of the theme.
There are limitations to this approach, however, firstly it's for sites hosted on Apache servers, and newer modules like Gallery can't be parsed. Although the core could be hacked to do this, that's not something I care to do.
Also, PostNuke 0.8 is due to include its own ShortUrl module.
