PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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 Back to top

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.
View user's profile Send private message Visit poster's website
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum