Dark Bit Factory & Gravity

PROGRAMMING => General coding questions => Topic started by: Japaneseninja on June 24, 2009

Title: HTML question
Post by: Japaneseninja on June 24, 2009
Hello all, and I have a programming question.
How do I create a widget for a webpage on my site (http://coolname007.webs.com) that will grab the latest news articles from top news sources, and paste them on my site (along with the links to the original articles of course), and update say once a day?
I realize that probably takes a lot of complex code, and I don't expect anyone to write it all for me, but a point in the right direction would be nice, and I'm wondering if it is even possible to do with HTML...
Is it?

Thanks in advance.

P.S. I added your site to my links (http://coolname007.webs.com/apps/links) page on my site. I'll try to get people to come over here from my site.
Title: Re: HTML question
Post by: benny! on June 24, 2009
First of all, let's wait what the owner of this board thinks about the
idea. But generally, this site offers RSS support, you might want to use
the RSS feed of it.

Your (PHP)-programm should do the following

(1) Download the RSS http://www.dbfinteractive.com/forum/index.php?type=rss;action=.xml (http://www.dbfinteractive.com/forum/index.php?type=rss;action=.xml)
It would be good here to check the timestamp of the downloaded
file - if a specific time has passed to reduce bandwidth. So let's say
only download the feed every 60 mins or so.


(2) Parse it to extract relevant information (there are
numerous scripts available on the net to parse RSS feeds)

(3) Then simply output the data you want in the way you
want on your page
Title: Re: HTML question
Post by: Japaneseninja on June 24, 2009
First of all, let's wait what the owner of this board thinks about the
idea. But generally, this site offers RSS support, you might want to use
the RSS feed of it.

Your (PHP)-programm should do the following

(1) Download the RSS http://www.dbfinteractive.com/forum/index.php?type=rss;action=.xml (http://www.dbfinteractive.com/forum/index.php?type=rss;action=.xml)
It would be good here to check the timestamp of the downloaded
file - if a specific time has passed to reduce bandwidth. So let's say
only download the feed every 60 mins or so.


(2) Parse it to extract relevant information (there are
numerous scripts available on the net to parse RSS feeds)

(3) Then simply output the data you want in the way you
want on your page
That sounds like a good idea, but I noticed you said "PHP program"...
Do you mean I should create this program in PHP, and then add it to my site using HTML?
Title: Re: HTML question
Post by: Shockwave on June 24, 2009
Hi Japaneseninja :)

Thanks for adding this site to your links, feel free to use our XML feeds, every one of the boards has an orange RSS icon (http://dbfinteractive.com/forum/Themes/azure114/images/rss.png) just click on those orange buttons to see the feed for that forum.

You will need to use something like php to do this.. if you don't know what php is, please post back and we can point you in the direction of some useful stuff and give you some guidelines on how to use it.

This whole website is written with php, xhtml, mysql and css. They are a really powerful combination.
Title: Re: HTML question
Post by: Japaneseninja on June 24, 2009
Hi Japaneseninja :)

Thanks for adding this site to your links, feel free to use our XML feeds, every one of the boards has an orange RSS icon (http://dbfinteractive.com/forum/Themes/azure114/images/rss.png) just click on those orange buttons to see the feed for that forum.

You will need to use something like php to do this.. if you don't know what php is, please post back and we can point you in the direction of some useful stuff and give you some guidelines on how to use it.

This whole website is written with php, xhtml, mysql and css. They are a really powerful combination.
Of course I have heard of PHP, but I don't know a whole lot about it. I have been studying a little HTML and CSS code lately though.

Thanks to you both for the replies.
Title: Re: HTML question
Post by: Shockwave on June 24, 2009
The beauty of php is that is runs on the web server so the people who visit your sites do not have to actually install any special plug-ins to their browsers to be able to use it.

If there is call for it I am happy to write a couple of tutorials to teach people how to write some simple scripts?

Title: Re: HTML question
Post by: Japaneseninja on June 24, 2009
The beauty of php is that is runs on the web server so the people who visit your sites do not have to actually install any special plug-ins to their browsers to be able to use it.

If there is call for it I am happy to write a couple of tutorials to teach people how to write some simple scripts?
Yes, that sounds like a good idea. :clap:
Please do.  ;D

 :bfuck1: <<I love that one  :cheers:
Title: Re: HTML question
Post by: Shockwave on June 25, 2009
Okay, I'll knock something together later on :) I have some stuff that needs doing first this morning though.
Title: Re: HTML question
Post by: Hotshot on June 25, 2009
 :hi: to the forum  Japaneseninja  << Good Wicked Name  ;)

Title: Re: HTML question
Post by: Shockwave on June 25, 2009
This should help to get you started..

http://www.dbfinteractive.com/forum/index.php/topic,4145.0.html (http://www.dbfinteractive.com/forum/index.php/topic,4145.0.html)
Title: Re: HTML question
Post by: Japaneseninja on June 30, 2009
Sorry, guys. I would have responded sooner but I didn't get an email when the two new posts in this thread were posted (like I had with the rest).
:hi: to the forum  Japaneseninja  << Good Wicked Name  ;)
Thanks, HotShot.  O0
Title: Re: HTML question
Post by: Japaneseninja on June 30, 2009
This should help to get you started..

http://www.dbfinteractive.com/forum/index.php/topic,4145.0.html (http://www.dbfinteractive.com/forum/index.php/topic,4145.0.html)
Great! I'll be sure to check it out.