How Would I Go About Making a Website Like This One?

Discussion in 'Web Design and Development' started by Xander562, Jan 28, 2007.

  1. Xander562 macrumors 68000

    Xander562

    Joined:
    Apr 2, 2006
    #1
    Ok so i've suddenly gotten the urge to make a website. So here I am. I've been thinking something along the lines of this. It's a website that some people at my brother's school created. It's called Gossiptron. It has a main paige (the page that displays the gossip). And a Report Gossip page (where people enter in a message, usually gossip, and it shows up on the main page). I was thinking about making a website similar to this for my own school, but with my own twist. I've tried looking at the page source code of both pages but I think there is something missing. Does anyone know how I would go about making a website like this?



    P.S. I have got the hosting thing worked out so no need to worry about that.
    P.S. I am a uber-noob at this kind of stuff.
     
  2. janitorC7 macrumors 6502a

    janitorC7

    Joined:
    Feb 10, 2006
    Location:
    North Hollywood, CA
    #2
    you could set this up in a Content management system such as Drupal or joomla and have the gossip submitted as comments. anyway you look at this will require some programming knowlage outside of html or css. actually you might be able to do this as a wiki, but then anything would be editable.

    I;m able to offer services as a CMS programmer, but as a student this seems more like something you are doing for fun and dont want to pay for.

    Look at some CMS tutorials for the 2 I mentioned, or some others and see what you think

    :apple:cooper
     
  3. jamdr macrumors 6502a

    jamdr

    Joined:
    Jul 20, 2003
    Location:
    Bay Area
    #3
    Really simple, just set up a mysql database or equiv. and learn a few lines of php
     
  4. Daveway macrumors 68040

    Daveway

    Joined:
    Jul 10, 2004
    Location:
    New Orleans / Lafayette, La
    #4
    Easier said than done.:eek:
    And I have sleepless nights to prove it.
     
  5. Xander562 thread starter macrumors 68000

    Xander562

    Joined:
    Apr 2, 2006
    #5
    Yeah I agree, Sorry for being so noobish jamdr but could you be more specific?
     
  6. runplaysleeprun macrumors 6502a

    runplaysleeprun

    Joined:
    Jul 27, 2004
    Location:
    Chicago, IL
    #6
    iWeb could do that in a jiff i think. easy as pie.
     
  7. Xander562 thread starter macrumors 68000

    Xander562

    Joined:
    Apr 2, 2006
    #7
    Care to elaborate? :eek: :p
     
  8. ChicoWeb macrumors 65816

    ChicoWeb

    Joined:
    Aug 16, 2004
    Location:
    California
  9. baleensavage macrumors 6502a

    Joined:
    Aug 2, 2005
    Location:
    On an island in Maine
    #9
    I second that. I use Wordpress for my blog and I have never had a problem with it (except when Yahoo screwed up my sql db, but that wasn't Wordpress's fault). It has a great spam filter built in and is very customizable. Plus if you have Yahoo hosting your site, you only have to click a couple buttons and fill out a form and they will install it on your site. It can't get much easier than that.
     
  10. desenso macrumors 6502a

    desenso

    Joined:
    May 25, 2005
    #10
    PHP/MySQL Basic

    What you're trying to make is very simple from a PHP / MySQL standpoint, and would be a good way to learn a little bit about these technologies.

    How would you go about learning something like this? Well, for one, you might type "PHP and MySQL" into Google. It'll return, as its top hit, the following website:

    http://www.freewebmasterhelp.com/tutorials/phpmysql

    I browed through what this tutorial works through and I can confirm that it will in fact teach you everything you need to know to make your gossip site, assuming the functionality of yours is roughly equivalent to the one you showed us.

    Alternatively, you could do as some others suggested and use blogging / content management software, but this would be massive overkill and, in my opinion, more work to customize than just building this yourself.

    So what tools will you need to do this? A web host with PHP and MySQL. Approximately how many such hosts exist? About 10 trillion. And to save this forum from another thread about which host to use, the seeming majority of us recommend A Small Orange. Of course, don't forget the Britney Spears of webhosts, Dreamhost (over-sold and out-performed by lesser known alternatives).

    In all seriousness, I learned PHP and MySQL by using this technique (learn as you go) and built a much more complicated web application in approximately 20 hours.... an experienced coder could probably write what you're hoping to do in an hour, so expect for it to take a weekend of your time, but won't it be worth it when you come back having built this website yourself?
     
  11. Xander562 thread starter macrumors 68000

    Xander562

    Joined:
    Apr 2, 2006
    #11
    Wow thanks! I'll try this.

    As for the hosting thing goes, I'm hosting it myself. (another project that I did when I was bored one weekend.) I figure this will be just about the least-demanding website I could possibly make and that it would be a waste to pay someone to host it. After all, it's mostly just to learn and have fun. :)

    But keep the suggestions/advice comming!
     
  12. gwilli macrumors newbie

    Joined:
    Sep 24, 2006
    Location:
    London Town
    #12
    Use a framework like Cake. It can be done in seconds and require next to no knowledge of PHP/MySQL.

    There's unfortunalty alot more to PHP and MySQL than churning out procedural code these days. If you want to learn PHP I can recomend a few decent books. Most of the online content is crap and will teach you how to code, the wrong and backwards way.

    Use wordpress it's easier, you can just give people permission to be authors and get them to publish their own content, a fully blown CMS like Joomla will be too clunky for what you want!

    Use iWeb if you don't mind updating your roumours your self. Or you could use Google Page Creator.

    I would highley recomend WordPress though! It's easy and extensible.
     
  13. WildPalms macrumors 6502a

    WildPalms

    Joined:
    Jan 4, 2006
    Location:
    Honolulu, HI
    #13
    Better yet, get yourself started in the right direction with a nice OO framework that is 2.0 ready, that will be included in Leopard. You can get this framework now and its very very easy to code in. Just watch the intro 15min movie.

    http://www.rubyonrails.org/
     
  14. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #14
    Just some basic info:

    The HTML you saw when you did a "view source" was written on the fly by a program running on the server, not by a human web designer. Your task is to write the program that lives on the server. The program accepts input from web forms and generates HTML pages based n data from the form and possably from an SQL query into a DBMS.

    I've read the comments so far. I agree that your best bet will be to use a web "framework" and not try to re-invent wheels from scratch. Using such a framework you program at ahigher level of abstraction. Ruby on rails is not a bad way to go. If you are going to learn about programming start with something OO (Object Oriented). Before you write the first line of code you need to know the basics of OO design and what is a "class" or a "methd" and how "inheritance" works. Just the basics and then work out a whole system of objects and how they relate to one another.

    About databases. They seem simple but they are easy to abuse. 90% of the code out there is horrible and written by people with no formal education in the subject. Doing DBMS correctly takes some study. You should at least know what "normal form" means. Any introduction to data bases will have this.

    Anyone with a mac and a broadband internet connection can host a low volume web server. Macs come with all the software you need. And old 1Ghz G4 tower would make the perfect low volume server.
     
  15. gwilli macrumors newbie

    Joined:
    Sep 24, 2006
    Location:
    London Town
    #15
    That's great... except Leopard's not out now, and Ruby won't necisarrily bennefit you in the long run, i.e. hosting options and future prospects. Cake aswell as other PHP OOP frameworks do the same thing as Ruby with the advantage of being able to be ported to other hosts and platforms, not putting down Ruby, it's great language and I've tried it, PHP's a little more easier to learn and the syntax is simple and it does support abstact classes, inheritance, encapsulation, type hinting, interfaces, polymorphism and all that other jargon you can find on wikipedia.

    You'll need a little more than a mac though, i.e. a domain name, and some dynamic DNS software either on your router or your mac, unless you have/want to shell out for a static IP address.
     
  16. Xander562 thread starter macrumors 68000

    Xander562

    Joined:
    Apr 2, 2006
    #16
    Don't worry about the hosting, I said I've got that figured out and its working for me. :)
     
  17. camomac macrumors 6502a

    camomac

    Joined:
    Jan 26, 2005
    Location:
    Left Coast
    #17
    hmm.... thank for posting this, i def. need to comeback to check these links...
     
  18. desenso macrumors 6502a

    desenso

    Joined:
    May 25, 2005
    #18
    To those that are suggesting Ruby on Rails or Cake, take a step back and consider whether this is something you'd want a beginning programmer to dive into? Personally, I don't think so.

    Yes these frameworks / pure OO languages are great, but IMHO everyone needs to go through the ugly process of doing something like this by hand. If you don't, I think it's a struggle to really understand basic concepts like database modeling, form mechanics, and so on.

    That's just my opinion. I'd hate to have tried to dive into RoR without having first slogged though the mysery of hand-coding an ugly, non-DRY PHP/MySQL application myself.

    Plus, for something as simple as this, Ruby on Rails would be massive overkill. Sure you can write it in literally fifteen minutes, but it's neither an appropriate use for Rails, nor would it be worth the process of installing / deploying it properly. Again, just my opinion...
     
  19. gwilli macrumors newbie

    Joined:
    Sep 24, 2006
    Location:
    London Town
    #19
    Agreed, and you have to start somewhere, but if you're going to learn it try and do it the right way, bad habits are a hard thing to get out of once the code "just works" and you never have to come back to it again.
     
  20. thejadedmonkey macrumors 604

    thejadedmonkey

    Joined:
    May 28, 2005
    Location:
    Pa
    #20
    I have a script that'll do just this at home (I'm at college now, but I'll be home this weekend). I'll try to remember to post it, or maybe I'll write something tonight at work study.. either way PM me if I haven't posted something by next monday and I'll VNC into my computer at home and get something to you.

    However, I wouldn't recommend just using my script unless you have a desire to just throw something up there. Look over it, learn how it works... and then write your own. What I have already written is about as basic as they come. but it'll work if you just want the same sort of thing.

    EDIT: Screw this, i'll start in the middle of chem lecture!
     
  21. Xander562 thread starter macrumors 68000

    Xander562

    Joined:
    Apr 2, 2006
    #21
    Haha wow really? Thanks!
     
  22. ddekker macrumors regular

    Joined:
    Sep 23, 2006
    Location:
    Michigan
    #22
    I second the wordpress for noobs.. its what I use on a few sites, I also love Drupal but its a little beyond the noob... tried Joomla and its beyond me so far..

    DD
     
  23. ChicoWeb macrumors 65816

    ChicoWeb

    Joined:
    Aug 16, 2004
    Location:
    California
    #23
    Joomla would be beyond overkill for this.
     
  24. thejadedmonkey macrumors 604

    thejadedmonkey

    Joined:
    May 28, 2005
    Location:
    Pa
    #24
    I ran out of time this weekend to write anything really descent, but I did have this lying around which might will do what you want. It's written in PHP and uses a comma seperated value text based file for storage so it should work just about everywhere with almost no editing, but it shouldn't be too hard to convert to an SQL based script.

    Obviously, you'll want to change the name and password and whatnot, and if you want the default page to be something besides the default page, you should put the following in the last else statment where it has the list of links.
    Code:
    
    header("Location: guestbook.php?x=view"); /* Redirect browser */
    
    /* Make sure that code below does not get executed when we redirect. */
    exit;
    
    Also, I think it's mostly CSS based, so it should be pretty easy to edit... or you can just type in one of the pre-made themes.

    and don't use it anywhere it has to do anything critical unless you beef up security.. I did what I could but I don't think it's all that secure, and I'm too much of a n00b to know for sure.
     

Share This Page