PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  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
maverick
New Member
New Member


Joined: Oct 24, 2003
Posts: 6

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

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: 546
Location: Neurotic, State, USA

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

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)
View user's profile Send private message Visit poster's website MSN Messenger
maverick
New Member
New Member


Joined: Oct 24, 2003
Posts: 6

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

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.
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

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

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:       
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum