Re: Newbie seeks advice, please
From: Take a Walk (spam_at_hotmail.com)
Date: 03/02/04
- Previous message: col: "Re: foreach problem.. but it will be something else"
- In reply to: Mike Brown: "Newbie seeks advice, please"
- Next in thread: Mike Brown: "Re: Newbie seeks advice, please"
- Reply: Mike Brown: "Re: Newbie seeks advice, please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 02 Mar 2004 13:49:45 +0000
On Tue, 02 Mar 2004 04:27:35 +0000, Mike Brown wrote:
> Hi all. I know very little about designing web pages, so please be patient if
> these sound like stupid questions.
>
> Situation:
> My wife works for a church and they have a rather simple web site done by one of
> the congregation. Trouble is, this guy is always out of town or tied up. It's
> almost impossible to get him to update the site. A friend who has done some web
> sites says we should re-do the whole site in PHP-Nuke so that my wife will be
> able to update the site herself.
>
The 'wife creates a word html document' sounds like a job for a custom
module which just calls the relevant html page and displays it in the
centre frame.
In modules directory create a directory called 'Bulletin', then create a
file called index.php inside it including the following code:
CHANGE THE LINE halfway down to reflect your server address and the path
to the Bulletin file ie something like
http://www.church.co.uk/htmlbulletins/aprilbulletin.html
to suit your needs.(Also the word wrap in this post will be wrong, so each
line should be strung together so that each ends with a ';'
Now in admin section, make the module 'bulletin' active and visible and
the bulletin should appear in the main frame of phpNuke.
HTH
CODE BELOW:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle = "- ".Bulletin."";
function Chat() {
global $user, $cookie, $prefix, $dbi, $user_prefix, $module_name;
include ("header.php");
OpenTable();
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" bgcolor=\"#000000\">\n"
."<tr>\n"
."<td bgcolor=\"#000000\" align=\"center\" valign=\"top\"><iframe
src=\"http://www.YOURSITE.co.uk/pathto/bulletin.html.php\"
border=\"0\" frameborder=\"0\" height=\"2000\" width=\"100%\"
scrolling=\"no\"></iframe></td>\n"
."</tr></table>";
CloseTable();
include ('footer.php');
}
Chat()
?>
- Previous message: col: "Re: foreach problem.. but it will be something else"
- In reply to: Mike Brown: "Newbie seeks advice, please"
- Next in thread: Mike Brown: "Re: Newbie seeks advice, please"
- Reply: Mike Brown: "Re: Newbie seeks advice, please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|