Author Topic: HTML question  (Read 6869 times)

0 Members and 1 Guest are viewing this topic.

Offline Japaneseninja

  • ZX 81
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
HTML question
« on: June 24, 2009 »
Hello all, and I have a programming question.
How do I create a widget for a webpage on my site 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 page on my site. I'll try to get people to come over here from my site.
« Last Edit: June 24, 2009 by Japaneseninja »

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: HTML question
« Reply #1 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
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
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Japaneseninja

  • ZX 81
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: HTML question
« Reply #2 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
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?

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: HTML question
« Reply #3 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 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.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Japaneseninja

  • ZX 81
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: HTML question
« Reply #4 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 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.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: HTML question
« Reply #5 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?

Shockwave ^ Codigos
Challenge Trophies Won:

Offline Japaneseninja

  • ZX 81
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: HTML question
« Reply #6 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:
« Last Edit: June 24, 2009 by Japaneseninja »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: HTML question
« Reply #7 on: June 25, 2009 »
Okay, I'll knock something together later on :) I have some stuff that needs doing first this morning though.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: HTML question
« Reply #8 on: June 25, 2009 »
 :hi: to the forum  Japaneseninja  << Good Wicked Name  ;)


Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: HTML question
« Reply #9 on: June 25, 2009 »
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Japaneseninja

  • ZX 81
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: HTML question
« Reply #10 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

Offline Japaneseninja

  • ZX 81
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: HTML question
« Reply #11 on: June 30, 2009 »
This should help to get you started..

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