News:

How did you even find this place?

Main Menu

Bored during winter break? Code some php

Started by truste1, January 06, 2010, 11:00:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

truste1

This is a project I had planned on tackling this coming weekend, but I thought maybe somebody here was bored and would want some additional php practice. Here's what I'm trying to do:

I need a simple blog-like piece of software, essentially allowing anybody to update. So there would be a form with their message and a anti-spam captcha (no other info is required) that would post whatever they put onto the main page. There should be a login for at least 1 admin to allow for moderation. I'd like each individual post to have a link where other users can post comments. Additional feature that isn't required but would be cool if you want the challenge is Facebook Connect so users who post comments (or post a message) could link with their Facebook account and display their name. Nothing else is really required except to disallow code in the posts so nothing gets hacked.

Design works not necessary unless you're an overachiever. ;)
Ain't Life Grand?

iago

Why don't you use free tools that already have that functionality (and more) -- like Wordpress or Movable Type?

truste1

Is there a stripped down wordpress theme that would tackle this? I haven't seen one but there might be. The purpose of this isn't a blog, I'd compare it more to a Shoutbox or a single threaded forum.
Ain't Life Grand?

iago

It almost sounds like a guestbook, in a way?

warz

Yea, sounds like a guest book. This sounds like something that could be achieved in under an hour, minus the Facebook stuff just because I don't know anything about how it works. I bet it's just as simple, too, though. No real reason to use a pre-packaged software for this. Just make the simple forms and SQL queries as you suggested and maybe throw a nice, free wysiwyg editor on there and it'll be good to go.
http://www.chyea.org/ - web based markup debugger

rabbit


Joe

This would be pretty easy. One SQL table -- posts (timestamp, name, body). The admin password can be done in the PHP.

SELECT timestamp, name, body FROM posts SORT BY timestamp;


I'll toss something together later, if I get bored.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


truste1

Ain't Life Grand?