Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: truste1 on January 06, 2010, 11:00:56 am

Title: Bored during winter break? Code some php
Post by: truste1 on January 06, 2010, 11:00:56 am
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. ;)
Title: Re: Bored during winter break? Code some php
Post by: iago on January 06, 2010, 11:14:47 am
Why don't you use free tools that already have that functionality (and more) -- like Wordpress or Movable Type?
Title: Re: Bored during winter break? Code some php
Post by: truste1 on January 06, 2010, 11:49:53 am
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.
Title: Re: Bored during winter break? Code some php
Post by: iago on January 06, 2010, 11:54:07 am
It almost sounds like a guestbook, in a way?
Title: Re: Bored during winter break? Code some php
Post by: warz on January 06, 2010, 12:04:49 pm
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.
Title: Re: Bored during winter break? Code some php
Post by: rabbit on January 06, 2010, 01:33:23 pm
Sounds like a channel.
Title: Re: Bored during winter break? Code some php
Post by: Joe on January 06, 2010, 06:16:04 pm
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.
Title: Re: Bored during winter break? Code some php
Post by: truste1 on January 07, 2010, 12:23:29 pm
awesome let me know!!