Skip navigation
Sidebar -

Advanced search options →

Welcome

Welcome to CEMB forum.
Please login or register. Did you miss your activation email?

Donations

Help keep the Forum going!
Click on Kitty to donate:

Kitty is lost

Recent Posts


What music are you listen...
by zeca
Today at 09:50 PM

Lights on the way
by akay
Today at 02:56 PM

German nationalist party ...
Yesterday at 10:31 AM

New Britain
February 17, 2025, 11:51 PM

اضواء على الطريق ....... ...
by akay
February 15, 2025, 04:00 PM

Random Islamic History Po...
by zeca
February 14, 2025, 08:00 AM

Qur'anic studies today
by zeca
February 13, 2025, 10:07 PM

Muslim grooming gangs sti...
February 13, 2025, 08:20 PM

Russia invades Ukraine
February 13, 2025, 11:01 AM

Islam and Science Fiction
February 11, 2025, 11:57 PM

Do humans have needed kno...
February 06, 2025, 03:13 PM

Gaza assault
February 05, 2025, 10:04 AM

Theme Changer

 Topic: Need programming help

 (Read 2959 times)
  • 1« Previous thread | Next thread »
  • Need programming help
     OP - March 08, 2010, 04:03 PM

    I'm not sure what the best way of doing this is so need some advice from others. I'm working on a website using ASP and C#.

    What I want to have on the site is a news page with articles on it, and then on the front page a little sidebar showing the latest articles (with up to 100 words of the article in it). I just want a really simple way of doing this. Any ideas of how?

    I have some ideas, it's just I cant think of how to implement it.
  • Re: Need programming help
     Reply #1 - March 08, 2010, 04:18 PM

    RSS?
  • Re: Need programming help
     Reply #2 - March 08, 2010, 04:54 PM

    *head/desk*

    Didn't know RSS could do that lol! Will give it a go!
  • Re: Need programming help
     Reply #3 - March 08, 2010, 05:08 PM

    *head/desk*

    Didn't know RSS could do that lol! Will give it a go!

    It doesn't, RSS is a news feed protocol

    Do not look directly at the operational end of the device.
  • Re: Need programming help
     Reply #4 - March 08, 2010, 05:09 PM

    Question #1: what is the source of your news? (inserted by yourself? user-submitted? automatically aggregated from news feeds / sites?)

    Do not look directly at the operational end of the device.
  • Re: Need programming help
     Reply #5 - March 08, 2010, 05:21 PM

    Inserted by myself
  • Re: Need programming help
     Reply #6 - March 08, 2010, 05:31 PM

    Ah perfect, it's the easiest case.

    If you will be the one and only editor, then you could simply store each news in a separate file in a "news" directory or something like that.
    And you can do the editing simply by creating/deleting/editing the files themselves via FTP.

    Otherwise the other solution will require two interfaces: a frontend page where the news are displayed, and a backend administration page where you or any other editor you decide can login with user/password and edit the news.

    Which one? ^_^

    Do not look directly at the operational end of the device.
  • Re: Need programming help
     Reply #7 - March 08, 2010, 06:22 PM

    First option in fine.
  • Re: Need programming help
     Reply #8 - March 08, 2010, 06:31 PM

    Just store your news items in a database and then fetch them and display them in the sidebar.
  • Re: Need programming help
     Reply #9 - March 09, 2010, 11:07 PM

    It doesn't, RSS is a news feed protocol


    It can be used to display articles on the sidebar, you just link it back to your own website, just edit the Xml a little and then when you update/publish and article on your website it will also update it in the sidebar. The RSS makes the most sense.

    If you are using any kind of CMS on your site, check to see if there's an rss feature or plug-in that's ready to use; these features are increasingly common.
  • Re: Need programming help
     Reply #10 - March 09, 2010, 11:31 PM

    As far as I understood, she wants to code one herself.

    Even if that were not the case, your suggestion is still rather dumb.
    What's the need for a site to use RSS to feed news to ITSELF?

    What you are suggesting is for a site to:
    read news from the database -> format them into RSS -> parse the RSS and edit it into HTML -> display it

    When instead it could simply:
    read the news from the database -> format them into HTML

    And, on a side note, most CMS can already do #2, so no need to go through RSS unless you're masochist.

    So, I'll state once again: RSS is a news feed protocol.
    That means it's used to FEED data from a source server to a destination client, in a standardized format.
    If the client and the server are one and the same, using RSS is overkill.

    It makes as much sense as claiming the solution is Morse Code to communicate with... yourself!

    Do not look directly at the operational end of the device.
  • Re: Need programming help
     Reply #11 - March 09, 2010, 11:35 PM

    Not everyone has java turned on.
  • Re: Need programming help
     Reply #12 - March 09, 2010, 11:35 PM

    Back to the original post:

    Was my suggestion enough?
    I do not know .NET (nor ASP.NET) but if you still need help i could write down some pseudo-code.
    Or I could write the analogous PHP script, so its implementation might be understandable enough.

    Do not look directly at the operational end of the device.
  • Re: Need programming help
     Reply #13 - March 09, 2010, 11:36 PM

    Not everyone has java turned on.

    And the sky is not always blue.

    Point being?

    Do not look directly at the operational end of the device.
  • Re: Need programming help
     Reply #14 - March 09, 2010, 11:36 PM

    Php is the way to go though.
  • Re: Need programming help
     Reply #15 - March 09, 2010, 11:40 PM

    Php is the way to go though.

    .NET is perfectly fine for the job as well
    so is JSP

    Every similar environment is "the way to go" if you are comfortable with it.

    Do not look directly at the operational end of the device.
  • Re: Need programming help
     Reply #16 - March 09, 2010, 11:41 PM

    Normally I say stfu at this point.

  • Re: Need programming help
     Reply #17 - March 09, 2010, 11:41 PM

    Nevermind. You are right.
  • Re: Need programming help
     Reply #18 - March 10, 2010, 08:47 PM

    Relax you lot. I got lucky, the person I'm doing this for has a blog on eblogger so I can just use FeedBurner to do it for me and it works perfectly Smiley Thanks anyway for the help Smiley
  • Re: Need programming help
     Reply #19 - March 10, 2010, 08:49 PM

    So I win then. Feed burner. RSS works.
  • Re: Need programming help
     Reply #20 - March 10, 2010, 08:54 PM

     Roll Eyes
  • 1« Previous thread | Next thread »