Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
InfernoTSH
New Member
New Member



Joined: Dec 31, 2003
Posts: 10

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

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! ]
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

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

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
InfernoTSH







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

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?
 
Raven







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

Just create an empty file in your new module's folder, paste that code, and save your new file as index.php.
 
InfernoTSH







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

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
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©