Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
morpheus_75
Involved
Involved



Joined: Oct 07, 2003
Posts: 302

PostPosted: Thu May 27, 2004 6:18 am Reply with quote

Thanks to Raven's suggestions, I created several html modules.

It is quite simple: I just created a new folder in the modules one; then inserted an index.php file which recalls an html one. I made other pages related to that html page through the content admin.

Now... I would need to have several html pages in ONE module, because I cannot use the content admin to insert javascript code in those pages.

Anyone know how I can do this?
 
View user's profile Send private message
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Thu May 27, 2004 8:14 am Reply with quote

I would make a module and the index.php would be like this:

Code:


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

}
require_once("mainfile.php");
$page1 = "whatever";
$page2 = "whateverwhatever";
include("header.php");
$index = 1;
OpenTable();
include("$page1.html");
CloseTable();
OpenTable();
include("$page2.html");
CloseTable();
include("footer.php");

?>


Then it would load whatever.html and whateverwhatever.html from the nuke root. You can modify it and add as many html pages as you like, you could also remove the opentable and closetable.

_________________
Image
Need a quality custom theme designed? PM me!
 
View user's profile Send private message Visit poster's website
morpheus_75







PostPosted: Thu May 27, 2004 9:28 am Reply with quote

Tnx Ganja! Anyway, I'll try to make myself clearer, just to understand if yor solution will do.

This module (an html page) will have several links to other html pages.

Example:

HOME PAGE
link to the module X (in fact it is the file xxx.html, which is recalled by xxx.php)

XXX.HTML
link to yyy.html
link to zzz.html
link to aaa.html

Do you think your solution will do for something like this?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©