Make a block like below and put it in the blocks folder.
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/*
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/*
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-MyResume",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "
<font size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">
<strong><big>·</big></strong> <a href=\"modules.php?name=WhateverModule&file=index\">What Ever Name</a><br>
<strong><big>·</big></strong> <a href=\"MyBlock.php?goto=seperatefolderinroot/index1.html\"> Whatever Text</a> <BR>
<strong><big>·</big></strong> <a href=\"MyBlock.php?goto=seperatefolderinroot/resume.html\"> My Resume</a><BR>
";
?>
As you can see you can really put anything in there.
Notice the “seperatefolderinroot”. Make this your own whatever folder and put in root with the files.
However, to put html pages in there (like shown above) make the following MyBlock.php script and put in root. NOTICE that it only accepts html files, not case sensitive. You can change that if you like to display other types if you like.
<?php
if (!isset($mainfile)) { include("mainfile.php"); }
$index = 0;
include("header.php");
OpenTable();
$sel = $goto;
$goon=strtoupper(substr($sel,strlen($sel)-4,4));
if ($goon=="HTML")
{
include("$sel");
}
else
{
include("empty.php");
}
CloseTable();
include("footer.php");
?>
NOTE:
Empty.php must also be placed in root. You can leave it empty or add a small script with an alert message (it will only display if something goes wrong).
<?php
require_once("mainfile.php");
include("header.php");
OpenTable();
echo "
<center><b>No data yet for this operation<BR><BR>
<a href='index.php'>Click here to return</a>
</b></center>";
CloseTable();
include("footer.php");
?>
Thanks to Antonio for sharing this with me.
If you enjoyed this post, make sure you subscribe to my RSS feed!













