Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Peter G.
Courses Plus Student 5,806 PointsPosting stories.
Hello Everybody. I need a little help. I want to create a website where people can post short-stories. The idea is have the a web-page where people write the story, then hit the submit button, and then the story instantly appears on the main web-page with other stories. What language should I use for that? And what is that function called? Thank you everybody. :)
5 Answers
Pedro Cabral
Full Stack JavaScript Techdegree Student 23,916 PointsYou might want to go with PHP or Ruby on Rails as they are the server side technologies offered here on Treehouse. As for what you are looking to do/implement you may find some additional information by researching on the keyword shoutbox.
Dustin Matlock
33,856 PointsSomething simple as Wordpress would work for that. You'd just create users, or have them create accounts and they'd have basic privileges to make posts. Check out the Treehouse Library for more on that.
Also, keep an eye on Ghost which focuses mainly on writing. I think they are implementing multi-user support soon.
Peter G.
Courses Plus Student 5,806 PointsI've haven't gotten to workpress lessons yet. But can I integrate wordpress into my web-page? Because I'm using a text-editor to do all the HTML & CSS. :) Cheers bud for the advice.
Peter G.
Courses Plus Student 5,806 PointsI saw similar article to that one. :) hahaha That's why I started learning PHP and my Web-page project a few days ago. I think I have to learn PHP first before I start with Hack thought, since it would make the learning of Hack easier. But can I write code with Ruby where I can do the story post function like FB's status?
Peter G.
Courses Plus Student 5,806 PointsPeter G.
Courses Plus Student 5,806 PointsHmmm PHP sounds promising. I'm hoping to do something similar like the FB status update. Where you write the statue, hit post and then it appears on the main page. I know that FB uses php. Do you have any idea as what php calls that function? P.S. Thanks for the shoutbox idea. That's cool. :)
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsIf you want to be future forward, I'd consider Ruby or Node.js. Some will argue PHP is slowly going away but others would argue with that.
Pedro Cabral
Full Stack JavaScript Techdegree Student 23,916 PointsPedro Cabral
Full Stack JavaScript Techdegree Student 23,916 PointsPHP, has internal (built-in) functions but none of which for something that specific. That has to come from user-defined functions (if you wish) the same is to say that you have to plan and write your own, you will be probably having some kind of form writing to a database and then having the index page pulling the records out to be displayed.
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsYou might also check out Facebook’s Hack, HHVM, and the Future of PHP.
Peter G.
Courses Plus Student 5,806 PointsPeter G.
Courses Plus Student 5,806 PointsSo I would have to write my code on PHP to execute the function, database & page indexing I mention? Do they teach that kind of function at teamtreehouse.com? Cause I've only recently started the PHP track, so I don't know that much about it.