PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  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
InfernoTSH
New Member
New Member


Joined: Dec 31, 2003
Posts: 10

PostPosted: Sun Jan 04, 2004 7:13 pm Reply with quote Back to top

I am looking for a module that will allow me to link to a blank block (that i will fill in later) keeping my main side bar and banner. I need if anyone knows of one. I want to have a link that a user can click and it will take them to a block where I can fill in with html. Sort of like having a html page within my php setup.

Here is an example, click gallery - it is just a block filled in with html.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sun Jan 04, 2004 7:43 pm Reply with quote Back to top

Create a folder in modules and add this code to your new module's index.php
Code:
<?php

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

$module_name = basename(dirname(__FILE__));

$index = 1;
include("header.php");
OpenTable();
include('http://yahoo.com');
CloseTable();
include("footer.php");
?>
Of course you will replace the yahoo.com with whatever file you want included.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
InfernoTSH
New Member
New Member


Joined: Dec 31, 2003
Posts: 10

PostPosted: Sun Jan 04, 2004 7:47 pm Reply with quote Back to top

do i just take a index.php from another folder and add it copy and paste it into my new folder then add that code?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sun Jan 04, 2004 7:49 pm Reply with quote Back to top

Just create an empty file in your new module's folder, paste that code, and save your new file as index.php.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
InfernoTSH
New Member
New Member


Joined: Dec 31, 2003
Posts: 10

PostPosted: Sun Jan 04, 2004 8:28 pm Reply with quote Back to top

thanks alot, it is coming together nice now. Only 1 problem, i get this message:

Warning: main(): stream does not support seeking in /home/c4design/public_html/modules/Gallery/index.php on line 12
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