View Single Post
  #2 (permalink)  
Old 05-14-2003, 10:00 AM
exxxpress exxxpress is offline
Junior Member
 
Join Date: Nov 2002
Location: Chicago, IL.
Posts: 50
Here is a quick and dirty way to accomplish what you are looking for!

Create a HTM page that you would like to display as needed! Save this in the root directory of your site (../NewPage.htm)

Create a Name (Directory) in your modules directory that reflects the page you wish to create (modules/htmlpage) as an example!

Next create a subdirectory within it called language! (modules/htmlpage/language)

Create the following php file and save it within this directopry as
Quote:
lang-english.php
Code:
<?php

/**************************************************************************/
/* PHP-NUKE: Advanced Content Management System                           */
/* ============================================                           */
/*                                                                        */
/* This is the language module with all the system messages               */
/*                                                                        */
/* Change nameme below to the name you would like the module to be.       */
/*                                                                        */
/* If you need to use double quotes (") remember to add a backslash (\),  */
/* so your entry will look like: This is \"double quoted\" text.          */
/**************************************************************************/

define("_HTMLMODULE","htmlpage");

?>
Finally create a
Quote:
index.php
that reflects the following This will be saved as modules/htmlpage/index.php

Code:
<?php

if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

/************************************************************************/
/* Configuration                                                        */
/*                                                                      */
/* You can change this:                                                 */
/* $index = 0; (right side off)                                         */
/************************************************************************/
$index = 1;

/************************************************************************/
/* Configuration                                                        */
/*                                                                      */
/* _HTMLMODULE is defined in the language file (ie HTMLMODULE/LANGUAGE) */
/*                                                                      */
/************************************************************************/

$subject = "$sitename "._HTMLMODULE."";

include("header.php");

/************************************************************************/
/* Configuration                                                        */
/*                                                                      */
/* This is where everything happens. Simply place the name of the HTM   */
/* file you  created in the root below!
/************************************************************************/

OpenTable();
include("NewPage.htm");
CloseTable();


include("footer.php");

?>
Hope this helps!
Reply With Quote