Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> w/Nuke 6.9
Author Message
maverick
New Member
New Member



Joined: Oct 24, 2003
Posts: 6

PostPosted: Thu Feb 26, 2004 1:58 am Reply with quote

My front page is basically a message, I add the HTML or whatever to the message, I found this an easy way to have a front page and easily edit it.

The problem is that it requires a message title, is it possible to somehow hash out this code so that the message title doesnt show?

Thanks in advance
 
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles



Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Thu Feb 26, 2004 4:37 am Reply with quote

Instead of hacking up a perfectly good module, why don't you just create a front/homepage module. Wink
Try this, take this code and save it as index.php and place in a folder (name it whatever you want "the folder")
Code:


<?php

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


require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
$index = 1;

OpenTable();
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" align=\"center\">";
echo "<tr><td valign=\"top\"><br>";
echo "<font class=\"content\"><div align=\"left\">";
include("home.txt");
echo "</div></font>";
echo "<br></td></tr></table>";
CloseTable();
include("footer.php");

?>


Then copy your HTML source to a text file and save as home.txt
Place this file in the same folder as the index.php you created.
Note: Do Not include the HTML or HEAD tags.

Upload to yoursite/modules directory.
Activate the new module
Then set it to be loaded to your home (Put in Home)

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
maverick







PostPosted: Mon Mar 01, 2004 4:52 pm Reply with quote

Great idea, I tried to use this method for another module, the module contains php code itself.

For some reason or another the right hand block disapears, any idea where its going? or why?

Thanks in advance.
 
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Mon Mar 01, 2004 6:16 pm Reply with quote

The file most likely is missing the $index=1; line.
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> w/Nuke 6.9

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 ©