Jump to content

What would be the simplest way to add a news feed to an existing website? The managing - thus adding and removing news - should be fairly easy, but the setup can be as difficult as necessary. I don't really want to go for an fully manageable blog-type/Wordpress kind of website though.

 

What are my options, or your best suggestions? Thanks in advance:P

Link to comment
https://linustechtips.com/topic/613063-simple-html-news-feed/
Share on other sites

Link to post
Share on other sites

I have started on a little blog system thats just like this using php/mysql at the back end which returns posts as json and then uses angularJS to display the posts, it does have some issues like having lost of post +1000 means the browser works super hard to load them all and the post page is literally nothing but a form. It does work. my git hub if you fancy a look.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/613063-simple-html-news-feed/#findComment-7923241
Share on other sites

Link to post
Share on other sites

If you want to do it really simple without any DB or something, you could let PHP read .txt files in a specific folder, order them on DATE.

Then everytime you make a news item you drop it into that folder and php will read it all.

 

If you want to remove a article but not the whole file you can easly rename it to a .bak or something.

 

The shitty part is most of the times how its going to look with line breaks etc.

 

There are probably better ways but i mostly but everything in a DB i have running.

 

PHP can also create .txt and remove/rename files, so you can make a option for that if you like to.

Quote or mention me if not feel ignored 

Link to comment
https://linustechtips.com/topic/613063-simple-html-news-feed/#findComment-7923243
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×