Author Topic: Bored during winter break? Code some php  (Read 4153 times)

0 Members and 1 Guest are viewing this topic.

Offline truste1

  • Hero Member
  • *****
  • Posts: 1130
  • I haven't visited my profile!
    • View Profile
Bored during winter break? Code some php
« 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. ;)
Ain't Life Grand?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Bored during winter break? Code some php
« Reply #1 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?

Offline truste1

  • Hero Member
  • *****
  • Posts: 1130
  • I haven't visited my profile!
    • View Profile
Re: Bored during winter break? Code some php
« Reply #2 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.
Ain't Life Grand?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Bored during winter break? Code some php
« Reply #3 on: January 06, 2010, 11:54:07 am »
It almost sounds like a guestbook, in a way?

Offline warz

  • Hero Member
  • *****
  • Posts: 1134
    • View Profile
    • chyea.org
Re: Bored during winter break? Code some php
« Reply #4 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.
http://www.chyea.org/ - web based markup debugger

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Bored during winter break? Code some php
« Reply #5 on: January 06, 2010, 01:33:23 pm »
Sounds like a channel.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Bored during winter break? Code some php
« Reply #6 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.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline truste1

  • Hero Member
  • *****
  • Posts: 1130
  • I haven't visited my profile!
    • View Profile
Re: Bored during winter break? Code some php
« Reply #7 on: January 07, 2010, 12:23:29 pm »
awesome let me know!!
Ain't Life Grand?