You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 68 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - New module for showing html? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
UHSRazor
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2006
Posts: 18


PostPosted: Mon Jan 30, 2006 3:00 am Reply with quoteBack to top

Hi

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
Find all posts by UHSRazorView user's profileSend private messageVisit poster's websiteYahoo Messenger
phpnuke-hosting
Support Mod
Support Mod


Joined: Oct 19, 2004
Posts: 1032

Location: UK

PostPosted: Mon Jan 30, 2006 3:39 am Reply with quoteBack to top

Can you give us a link your site please.

And also post the code you are using in your index.php.

Regards

_________________
www.phpnuke-hosting.com

The Internets Foremost PHP-Nuke Web Host.

Image

Click Here!
Find all posts by phpnuke-hostingView user's profileSend private messageVisit poster's website
UHSRazor
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2006
Posts: 18


PostPosted: Mon Jan 30, 2006 3:53 am Reply with quoteBack to top

The code is as follows:
Quote:

<?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.
Find all posts by UHSRazorView user's profileSend private messageVisit poster's websiteYahoo Messenger
phpnuke-hosting
Support Mod
Support Mod


Joined: Oct 19, 2004
Posts: 1032

Location: UK

PostPosted: Mon Jan 30, 2006 3:57 am Reply with quoteBack to top

Would you prefer to PM me the site url?

_________________
www.phpnuke-hosting.com

The Internets Foremost PHP-Nuke Web Host.

Image

Click Here!
Find all posts by phpnuke-hostingView user's profileSend private messageVisit poster's website
UHSRazor
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2006
Posts: 18


PostPosted: Fri Feb 03, 2006 6:31 am Reply with quoteBack to top

So any news on this problem?
Find all posts by UHSRazorView user's profileSend private messageVisit poster's websiteYahoo Messenger
Prophet
Captain
Captain


Joined: Mar 14, 2004
Posts: 422

Location: Florida, USA, Earth, Space

PostPosted: Fri Feb 03, 2006 8:55 am Reply with quoteBack to top

Do something like this ...

Code:
<?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;

case "omc":
include("Teampages/omc.htm");
break;

}

CloseTable();
include("footer.php");
?>


You can call your pages like so
http://yourdomain.com/modules.php?name=MODULENAME&mode=aim

or

http://yourdomain.com/modules.php?name=MODULENAME&mode=mass

You can switch pages by defining different modes.

e.g.,
Code:
case "omc":
include("Teampages/omc.htm");
break;


omc is the mode which will include omc.htm.

Hope this helps! Very Happy

_________________
- Prophet
Get the Last Visit module (and others modules I designed) from my website! FREE! http://jasonlau.biz

http://DotCom.Name
Find all posts by ProphetView user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.542 Seconds - 354 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::