Easily Editable Websites AKA PHP help!!

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

Super Cameraman
Posts: 1123
Joined: Mon Feb 27, 2006 6:25 pm

Easily Editable Websites AKA PHP help!!

Post by Super Cameraman »

Well, here's the deal:

I made a website for a kids' gym for a guy named Steve (www.RascalsGym.com if you want to see it) and it works great and it's been getting a lot of hits, but whenever it needs to be edited, I need to do it.

Is there a way to make this easier so Steve can edit it without me?

Like embedding a txt file into the html so you just edit the text in the txt and not the html? There has to be some way, right? I know it's possible to embed XML text in Flash, but I don't really want to use Flash if I don't have to. Apparently people don't have it, and it takes a long time to load. (I've never had any problems with it though)

SCM
Last edited by Super Cameraman on Thu Sep 06, 2007 2:50 pm, edited 1 time in total.
If you're looking at this post and it was made before 2008, just ignore it.
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Post by Skyone »

PHP and SQL fool. :P
Super Cameraman
Posts: 1123
Joined: Mon Feb 27, 2006 6:25 pm

Post by Super Cameraman »

:( I have no idea how any of that works!!!
If you're looking at this post and it was made before 2008, just ignore it.
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

I think the *easiest* way would be to contain the content in a text file, then put that into a styled iframe
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Post by bicostp »

I think the easiest solution is to put the text in a separate HTML file, then use PHP include to stitch it back into the page when necessary. He could use Notepad, or (*cringe*) Word or FrontPage to edit the content.
Super Cameraman
Posts: 1123
Joined: Mon Feb 27, 2006 6:25 pm

Post by Super Cameraman »

Bicostp, could you go into that in detail? I've never done PHP in my life... Only HTML. And a little CSS...
If you're looking at this post and it was made before 2008, just ignore it.
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Post by bicostp »

Well, PHP include is basically a not-crappy way to include pages inside pages. (Frames and iFrames, by contrast, are crappy and should only be used when necessary.) I-Mockery.com uses it for the header on all their pages, and I'm slowly overhauling my site to use it too.

Here's a good tutorial:
http://www.albinoblacksheep.com/tutorial/include

As for Word and FrontPage, they fail at making web pages. No real standards support, and the code they churn out isn't the most streamlined. Nothing compares to coding a website by hand.
CronoTriggerfan
Moderator
Posts: 4131
Joined: Fri Jan 27, 2006 3:07 pm
Location: University of Michigan - Ann Arbor
Contact:

Post by CronoTriggerfan »

You could always just set it up using WordPress, that's easy! :P

CTFan
Image
THON
Posts: 214
Joined: Sun May 13, 2007 3:50 pm

Post by THON »

Learn CSS,

Make a style sheet (styles.css) and an index.html page

Make an updates.html page (for easy editing)

Incorporate both to the index

Teach him basic HTML and CSS
Super Cameraman
Posts: 1123
Joined: Mon Feb 27, 2006 6:25 pm

Post by Super Cameraman »

bicostp wrote:Well, PHP include is basically a not-crappy way to include pages inside pages. (Frames and iFrames, by contrast, are crappy and should only be used when necessary.) I-Mockery.com uses it for the header on all their pages, and I'm slowly overhauling my site to use it too.

Here's a good tutorial:
http://www.albinoblacksheep.com/tutorial/include

As for Word and FrontPage, they fail at making web pages. No real standards support, and the code they churn out isn't the most streamlined. Nothing compares to coding a website by hand.
I can actually understand the tutorial, but as soon as I paste the code into the html, the whole layout of the website gets totally messed up...

I actually found something using iFrames, and it worked and did what I needed, but I could only get one iFrame to work on a single page. I need at least two...

EDIT: Actually, that worked perfectly!! :D The problem was that MS word messes everything up... Is there a free way to easily edit the contents of the PHP file?

EDIT 2: No I won't use Notepad!!
If you're looking at this post and it was made before 2008, just ignore it.
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

Use word, just save as plain text document
Super Cameraman
Posts: 1123
Joined: Mon Feb 27, 2006 6:25 pm

Post by Super Cameraman »

It won't let me. It's not an option in the save as menu.

EDIT: As soon as I open it in Word, it adds head and body tags, and a whole lot of other stuff to the code, and with all that stuff, it screws up the page I embed it in.. As soon as I delete that code and resave it, it works perfectly. Is there a way to turn of... auto-script-messing-up in Word?
If you're looking at this post and it was made before 2008, just ignore it.
THON
Posts: 214
Joined: Sun May 13, 2007 3:50 pm

Post by THON »

Super Cameraman wrote:It won't let me. It's not an option in the save as menu.

EDIT: As soon as I open it in Word, it adds head and body tags, and a whole lot of other stuff to the code, and with all that stuff, it screws up the page I embed it in.. As soon as I delete that code and resave it, it works perfectly. Is there a way to turn of... auto-script-messing-up in Word?
Right click the file and choose open with... text edit. Should be standard on any XP (or Vista... I think?), and much cleaner and friendlier than Notepad.

Which I use and love. Most of the time.

Glad the iframes worked for you, I love them--but unfortunately the iPhone doesn't :( :evil:
Super Cameraman
Posts: 1123
Joined: Mon Feb 27, 2006 6:25 pm

Post by Super Cameraman »

I don't have text edit.

I really wanted to do a visual thing. As in, I don't want to teach Steve any HTML. I just want him to be able to change a few words around once in a while.
If you're looking at this post and it was made before 2008, just ignore it.
vb_master
Moderator
Posts: 4793
Joined: Tue Jun 08, 2004 9:52 pm

Post by vb_master »

Joomla or WordPress.
Post Reply