Reply
Reverse-Chronological Entries, Comments...
Old 02-10-2008, 03:59 PM Reverse-Chronological Entries, Comments...
Junior Talker

Posts: 2
Name: Eric P. Martin
Hi,

My name is Eric and I'm a new web designer. I've created a project for myself that I think I went way over my head. My idea was to design a blog from scratch and blog about it along the way.

Making a long story short, I refuse to give up on the project and realized yesterday, that my blog is no more than a webpage because of the entries no being in reverse chronological order, with no way for comments to be left and no way to archive entries.

Does anyone know what I must learn next to create those functions in a webpage/blog?
__________________
Eric P. Martin
Blogger Institute
epm1013 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 02-10-2008, 06:22 PM Re: Reverse-Chronological Entries, Comments...
Average Talker

Posts: 27
To build an actual blog from scratch, you'd need to use something like PHP, ASP, Ruby on Rails or Django.
These allow you to build dynamic content, which is to say that they allow you to build application scripts that run on your web server, making it possible to create sites which access databases and react based upon user actions.

The usual way of reversing blog entries is to store them in a database such as MySQL.
You'd then be able to query the database like this:
Code:
SELECT * FROM `blog` ORDER BY `id` DESC
In English: Get all the data in the "blog" table, working backwards from the highest I.D. to the lowest (assuming the database uses an automatically incrementing I.D. field, newer entries will have a higher I.D. number).

You'll also want to use a server side scripting language for comments as your blog will have to have a way of saving them to either a file or a database table.
PHP is the most common server side scripting language, but it may not be for you, so it's worth looking at a number of different options.
Personally, I use Ruby on Rails, which makes getting the essentials up and running easier than PHP, but which can require some experimentation or down right hackery to get some more complex stuff done (theme support can be annoying as some methods of adding theme support require that Rails' core code is overridden, which isn't good if it changes in the future).

It probably will take a fair while to get to the stage of having a fully functioning blog online if you've got little experience with site building, but it shouldn't be too difficult to learn the basics.

I'd recommend looking into learning:
PHP or Ruby on Rails (server side scripting)
MySQL (database)
CSS (styling language used with HTML or XHTML)
XHTML (I'm assuming you're already learning a form of HTML)
Nuvo is offline
Reply With Quote
View Public Profile
 
Old 02-13-2008, 09:32 AM Re: Reverse-Chronological Entries, Comments...
Average Talker

Posts: 25
Name: Rick
i think in a blog.. the entries are not supposed to be in chronological order.. but they should be put date wise..
__________________
Expert and On Target Contextual Advertising. Free to join and Fast paying, SEO Associate Program.
rick22 is offline
Reply With Quote
View Public Profile
 
Old 02-13-2008, 01:28 PM Re: Reverse-Chronological Entries, Comments...
Average Talker

Posts: 27
Quote:
Originally Posted by rick22 View Post
i think in a blog.. the entries are not supposed to be in chronological order.. but they should be put date wise..
In a blog, you do use chronology, or more accurately, reverse chronology, which in terms of blog entries, would mean starting with the newest, and working towards the oldest entry.
Chronology is the science of locating events in time, in this case, a post being published.
Nuvo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Reverse-Chronological Entries, Comments...
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13125 seconds with 13 queries