
12-12-2002, 01:54 AM
|
|
Registered User
|
|
Join Date: Mar 2002
Posts: 135
|
|
I'm in the process of designing a static web site for a client. Although most of the site will be static the client wants a small area to update daily/weekly or as needed (one paragraph).
I'm trying to come up with the easiest and most simple way the client can update this area by himself without having much HTML knowledge. He does know how to use his FTP program (WSFTP) and has access to an Arachnophilia editor.
I thought about doing a small Iframe so he could just access/upload that file or inserting comment tags with some space in the coding so the client could find the area he needs to update.
Are there any other simple ways to do this? Thanks!
ADDED: I'm batting .000 on this one. Just got thrown a curve ball. I had a nice php script (tested on my server) but the client has no php/cgi/htaccess etc on his ISP server. Does anyone have any other ideas???? I'm almost ready to say "find a new host"
Last edited by punaboy; 12-12-2002 at 05:35 PM.
|

12-12-2002, 02:01 AM
|
|
Newbie
|
|
Join Date: Jul 2002
Posts: 21
|
|
how about using a blogger - http://blogger.com or b2? The blogger is easiest to use, but b2 has many more features. 
|

12-12-2002, 02:26 AM
|
|
Registered User
|
|
Join Date: Mar 2002
Posts: 135
|
|
Pucca,
A blogger would be a great way to do it. Now why did that slip my mind. I guess maybe because of all the abuse and poor use of it on amateur sites. I'll consider it. Thanks.
[edited] Scratch the blog, just found out I need two small areas.
Last edited by punaboy; 12-12-2002 at 02:34 AM.
|

12-12-2002, 03:05 AM
|
|
Web Hosting Master
|
|
Join Date: Aug 2001
Location: Canada
Posts: 1,598
|
|
You could look into Coranto: http://coranto.gweilo.org
Great piece of software with many features enabled. Once it is installed, you can add as many addons as you like. You can also create seperate news categories that will allow you to have two seperate update areas.
Another suggestion is to look into the Hotscripts directory: http://www.hotscripts.com/PHP/Script...ews_Publishing
|

12-12-2002, 03:20 AM
|
|
Soldier, Author and Patriot
|
|
Join Date: Sep 2002
Location: Wherever they send me
Posts: 1,086
|
|
what about customizing something like postnuke?
|

12-12-2002, 05:36 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Jun 2002
Location: Perth, Australia
Posts: 85
|
|
If your server has php on it, you could just include 2 files. eg
PHP Code:
<?php require_once('paragraph1.inc'); ?>
Where paragraph1.inc would read something like:
Code:
This is paragraph one. etc...
All of this could also be achieved using SSI if your server doesn't support PHP.
In either case, your client would only have to edit the paragraph1.inc and paragraph2.inc files, then FTP them to the server.
|

12-12-2002, 05:48 AM
|
|
Web Hosting Master
|
|
Join Date: Nov 2000
Posts: 3,042
|
|
I almost posted exactly what james said. That would certainly be the easiest method. I've never been a fan of Bloggers, althought I'd say the Coranto software Synthetic posted a link too looks rather nifty  .
__________________
A well-reasoned assumption is very close to fact.
- Adorno
|

12-12-2002, 05:55 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Jun 2002
Location: Perth, Australia
Posts: 85
|
|
Quote:
Originally posted by comphosting
I almost posted exactly what james said. That would certainly be the easiest method. I've never been a fan of Bloggers, althought I'd say the Coranto software Synthetic posted a link too looks rather nifty .
|
It sounds like i just beat you to it, comphosting! 
|

12-12-2002, 05:57 AM
|
|
Web Hosting Master
|
|
Join Date: Nov 2000
Posts: 3,042
|
|
Why not just setup a simple database that will display the news as he wants it? Could be done with PHP/MySQL or ASP/Access fairly easily.
__________________
A well-reasoned assumption is very close to fact.
- Adorno
|

12-12-2002, 06:01 AM
|
|
Web Hosting Master
|
|
Join Date: Nov 2002
Location: Fairbanks, Alaska
Posts: 708
|
|
yeah.. php/mysql is the way to do this fairly easy
just have a hidden form for him to update it www.hisdomain.com/myupdaterform.php or something which is just a form where he types something in there, clicks update, and it goes onto the page where he wants it.
<edit> kind of how you can edit your posts  - he can just go to a form, see what's already there typed in, and make the changes, click update
__________________
www.neo-tech.us
- Computer Sales/Repair/Networking
- Web Design/Web Hosting
|

12-12-2002, 06:08 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Jun 2002
Location: Perth, Australia
Posts: 85
|
|
Come to think of it, that's a better idea than including a file!
Either way you could have the form where he can update the paragraphs. This would be possible whether you include a file, or include information from a mysql db.
|

12-12-2002, 06:17 AM
|
|
Web Hosting Master
|
|
Join Date: Nov 2002
Location: ???
Posts: 637
|
|
A PHP/MySQL solution would be hot but given the simple requirements here it would be kind of heavy handed.
Since the client knows how to use FTP and only "paragraphs" are required then a text file will do the job. SSI the text files into the main page and the paragraphs'll inherit the format in the paragraph tags.
Advantage of this solution is it's portable to nearly any hosting environment. 99% offer SSI (even free ones) but you can't rely on them being able to host whichever database or script solution you choose.
__________________
Lawnmower for hire - enquire within
|

12-12-2002, 06:29 AM
|
|
Web Hosting Guru
|
|
Join Date: Dec 2001
Location: QLD, Australia
Posts: 284
|
|
Ok,
I found a script I wrote a LONG time ago (in my infant days admittedly). I make no warranties for it, but you may find it useful. Basically, you can define the file to modify within the variables (fairly self explanatory) set a username/password and let the user update it via the web.
Like I said, I do NOT support this NOR do I make any warranties, just digging some old stuff up I had.
#!/usr/bin/perl
use strict;
# Print to the server.
print "Content-Type: text/html\n\n";
# File to open and modify. Full path.
my $file = '/path/to/file/bob.txt';
# This scripts location
my $script = 'http://address.to.script/location/script.cgi';
# username and password for access
my $username = 'user';
my $password = 'password';
my %FORM;
&FormParse;
&CheckPass;
my $uid = 0;
my $pid = 0;
if(($uid eq '0') or ($pid eq '0')) { &Wrong; exit; }
unless($FORM{'update.txt'} eq 'confirm') {
open(FILE,$file) or print "Can't open $file";
my @FILE = <FILE>;
close(FILE);
print qq~
<center>
<font face="arial, helvetica" color=red size=+1>
<strong>Update File<br><br></strong></font></font></font>
<form method=POST><input type=hidden name="update.txt" value="confirm"><input type=hidden name=username value="$FORM{'username'}"><input type=hidden name=password value="$FORM{'password'}">
<div align=center>
<center>
<table border=1 width=600>
<tr>
<td width=100 valign=top align=left>File:</td>
<td width=500><textarea rows=10 name=file cols=60>@FILE</textarea></td>
</tr>
<tr>
<td width=100></td>
<td width=500><input type=submit></td>
</tr>
</table>
<br><br>
<table border=1 width=200>
~;
}
else {
my @Content = $FORM{'file'};
open(REALFILE,">$file");
foreach my $line (@Content)
{
$line =~ s/\r\n/<p>/g;
print REALFILE "$line \n";
}
close(REALFILE);
print "<b>File Update occured. </b> This script was executed at $script";
print "<br> Thanks, bye. "
}
sub Wrong {
print "<b>Wrong Username and Password combo<br></b>";
}
# FORM PARSING
sub FormParse
{
# CGI.pm loading
use CGI;
my $q = new CGI;
CGI::ReadParse();
# Load up the formInformation hash
my $formVariableName;
foreach $formVariableName ($q->param) {
$FORM{$formVariableName} = $q->param($formVariableName);
}
}
sub CheckPass {
if(!(($FORM{'username'}) or ($FORM{'password'}))) {
print qq~
<center>
<font face="arial, helvetica" color=red size=+1>
<strong>Please Login<br><br></strong></font></font></font>
<form method=POST>
<div align=center>
<center>
<table border=1 width=600>
<tr>
<td width=100 valign=top align=left>Username:</td>
<td width=500><input name=username></td>
</tr>
<tr>
<tr>
<td width=100 valign=top align=left>Password:</td>
<td width=500><input name=password>
</tr>
<td width=100></td>
<td width=500><input type=submit></td>
</tr>
</table>
<br><br>
<table border=1 width=200>
~;
}
else {
if($FORM{'username'} eq $username) { $uid = '1'; }
if($FORM{'password'} eq $password) { $pid = '1'; }
}
}
Hope it helps somewhere *shrugs*.
Stuart
|

12-12-2002, 11:38 AM
|
|
Registered User
|
|
Join Date: Mar 2002
Posts: 135
|
|
Thanks! I'm taking a look at ALL the suggestions and different ideas. I'll see which one works best and the easiest for the client. Thanks again, great help.
|

12-12-2002, 11:41 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Jun 2002
Location: Perth, Australia
Posts: 85
|
|
Good luck! I hope you client likes it. 
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|