Installation, Administration and Usage
NukeWrap is a PHP-Nuke module that enables virtually any web content such as HTML, scripts (home pages, galleries, shopping carts, PHP, Perl, ASP, etc.) to be easily incorporated into your PHP-Nuke site. Just call the NukeWrap module with any URL and it will display it in your PHP-Nuke main area/window (security settings permitting). I call it a content wrapper (takes any existing content anywhere and wraps your PHP-Nuke site around it. NukeWrap uses an <iframe> which must be supported by the browser and JavaScript if you want to resize the <iframe> in some older browsers.
Just call NukeWrap in module fashion with the page variable
set to the URL or location that you want to display in PHP-Nuke. If
'Require that displayed URL be in URL List?' = Yes, then you may use
either the URL or the Alias that you defined. For example, an anchor
would look like:
URL: <a
href="modules.php?name=NukeWrap&page=index.php">My
Site</a>
Alias: <a
href="modules.php?name=NukeWrap&page=mysite">My
Site</a>
Cool! For a remote site you would use:
URL: <a
href="modules.php?name=NukeWrap&page=http://www.phpnuke.org/">PHP-Nuke
Site</a>
Alias: <a
href="modules.php?name=NukeWrap&page=phpnuke">PHP-Nuke
Site</a>
And you'll show the PHP-Nuke home page in your main window.
Example:
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&height=1000&width=90%
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&resize=1
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&title=The
future of the Web
In the past tou could use the PHP-Nuke index variable to show the center and right
blocks by including &index=1. Not sure if this still works.
Example:
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&index=1
NukeWrap includes a block that will automatically display a list of links for all URLs that you have added in the URL List section of NukeWrap administration.
You can place references in your user home page, linked to the
main menu or to sub menus, on user pages and just about anywhere. You
can use hrefs <img srcs, Javascript dynamic page generation,
html redirection, and even php scripts by sending Location: headers.
The real magic is that other applications written in php or perl or
Javascript or whatever run as if they were a part of PHP-Nuke,
seamlessly and with little effort. If you do this, be sure to give
proper credit though. As long as it is pleasant looking running
standalone, it will look great running in PHP-Nuke via NukeWrap.
The following options can be set in the administraion interface:
The Default settings section defines overall settings for the NukeWrap module.
If 'Require that displayed URL be in URL List?' = Yes in the Deafult settings, then any URL to be displayed must be entered here in order to be displayed.
The rest of the setting in URL List are the same as the Default settings, but override the Default setting for the specific URL that you add.
Example:
http://www.spidean.com/modules.php?name=NukeWrap&page=http://www.example.com/page.php?somevar=50&othervar=login
Becomes:
http://www.spidean.com/modules.php?name=NukeWrap&page=http://www.example.com/page.php%3Fsomevar=50%26othervar=login
Please send bug reports or feedback by visiting http://spidean.mckenzies.net.
PostWrap is Free Software released under the GNU/GPL license.