I have been following every tutorial and tips on creating a module to show my html pages. The module works but not like I want it to. I also tryed Nukewraps and that also work, but some ppl cant see the pages.
I have a module, with index.php containing the code
And I made a new folder in same place as config.php containing all html pages. 20 in total.
When I try to link to one of them with
Quote:
modules.php?name=New_Folder&page=file1.html
All the files in this folder gets displayed. Why? I just want file1.html to show.
Raz
phpnuke-hosting Support Mod
Joined: Oct 19, 2004
Posts: 1032
Location: UK
Posted:
Mon Jan 30, 2006 3:39 am
Can you give us a link your site please.
And also post the code you are using in your index.php.
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* PHP-Nuke-HOWTO module for <application>PHP-Nuke</application> */
/* */
/* Copyright (c) 2003 index.php */
/* by Chris Karakas */
/* http://www.karakas-online.de */
/* */
/* See licence.html for the Licence of the other files */
/* distributed together with this index.php file. */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the <acronym>GNU</acronym> */
/*General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$index = 0; // 0 : do not show right blocks - 1:show right blocks
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
OpenTable();
include("Teampages/aim.htm"); // <-- CHANGE THIS!
include("Teampages/kc.htm"); // <-- CHANGE THIS!
include("Teampages/mass.htm"); // <-- CHANGE THIS!
include("Teampages/omc.htm"); // <-- CHANGE THIS!
CloseTable();
include("footer.php");
?>
With this code it shows all those 4 pages when I make a call for one of them. I cant share any adress where I have this code in use, cause its a test site. But you can look at htt://www.codsniper.net under main menus you will see "VIEWER". Thats where I will use it. I now use NukeWrap there but the pages dont show with frames from my theme.
<?php
global $mode;
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$index = 0; // 0 : do not show right blocks - 1:show right blocks
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
OpenTable();
switch($mode){
case "aim":
include("Teampages/aim.htm");
break;
case "kc":
include("Teampages/kc.htm");
break;
case "mass":
include("Teampages/mass.htm");
break;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum