one problem...

Everything else

Moderators: justauser, MysteryFCM

Dori Yaniv
Posts: 7
Joined: Sun Mar 05, 2006 3:55 pm

one problem...

Postby Dori Yaniv » Mon Mar 06, 2006 11:22 am

thanks for this answer,
one thing missing though....

where is the auto update?
will this badge update itself when i upload new pics.

As far as i remember the links to the pics inside the code badge are hard coded.

I gave the flickr story just as an exmple, the general need is to show any RSS stream on a webpage.

Help anyone?

For example check this out
http://www.pageflakes.com
---------------------------
Go With Your FLOW
http://www.frisbee.co.il

orchid
Posts: 28
Joined: Fri Feb 17, 2006 3:47 am

Postby orchid » Mon Mar 06, 2006 3:15 pm

I'm assuming you're still talking about the Flickr badge here.

Yes, it will update itself as you load more pictures, as long as you choose the option to use the newest photos only (in step 3 of creating your badge).

It doesn't answer your questions about rss in general, of course, but I hope it helps anyway :-)

Dori Yaniv
Posts: 7
Joined: Sun Mar 05, 2006 3:55 pm

OK

Postby Dori Yaniv » Tue Mar 07, 2006 3:57 am

Thanks,
I will check the badge code again.....

Anyhow, does anyone have a more comprehensive answer about combining rss in websites?
---------------------------

Go With Your FLOW

http://www.frisbee.co.il

MysteryFCM
Posts: 143
Joined: Tue Feb 21, 2006 1:56 pm
Location: Tyneside, UK
Contact:

Postby MysteryFCM » Tue Mar 07, 2006 7:41 am

I'm at work so can't give a more comprehensive example at the moment but, you can use MSXML to do this.

If you can tell me what language your site's are using (ASP, PHP), I can either write an example for you (if ASP) or point you to one.
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Dori Yaniv
Posts: 7
Joined: Sun Mar 05, 2006 3:55 pm

a light at the end of the tunnel

Postby Dori Yaniv » Tue Mar 07, 2006 8:56 am

Hey MysteryFCM,
I am on ASP....


HIT ME
:)
---------------------------

Go With Your FLOW

http://www.frisbee.co.il

MysteryFCM
Posts: 143
Joined: Tue Feb 21, 2006 1:56 pm
Location: Tyneside, UK
Contact:

Postby MysteryFCM » Tue Mar 07, 2006 2:20 pm

hehe, here you go ;)

Code: Select all

If URLExists([URL_To_Feed]) Then
   Response.Write GetURLInfo([URL_To_Feed])
Else
   Response.Write "Sorry, that URL does not exist"
End If

   Function UrlExists(sURL)
      set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP") 
      on error resume next
      objXMLHTTP.open "GET", sURL, False
      objXMLHTTP.setRequestHeader "User-Agent", "Ur I.T. Mate Group vURL - http://mysteryfcm.co.uk/?mode=vURL"
      objXMLHTTP.send ""
      if err.number <> 0 or objXMLHTTP.status <> 200 then
         URLExists = False
      else
         URLExists = True
      end if
      set objXMLHTTP = nothing
   End Function

   Function GetURLInfo(sURL)
      set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP") 
      on error resume next
      objXMLHTTP.open "GET", sURL, false
      objXMLHTTP.setRequestHeader "User-Agent", "Ur I.T. Mate Group vURL - http://mysteryfcm.co.uk/?mode=vURL"
      objXMLHTTP.send
      if err.number <> 0 or objXMLHTTP.status <> 200 then
         GetURLInfo = "<font color=""#ff0000""><b>Error: " & objXMLHTTP.StatusText & "</b></font>"
      else
         GetURLInfo = objXMLHTTP.ResponseText
      end if
      set objXMLHTTP = nothing
   End Function


I've not included the code to actually parse the feed .... I'll leave that to you ;)
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Dori Yaniv
Posts: 7
Joined: Sun Mar 05, 2006 3:55 pm

Got it thanks

Postby Dori Yaniv » Wed Mar 08, 2006 4:34 am

So basically this is just a regular XML handling.

I have to learn how the RSS is built (in which standard, i know there are some) and to attach the right xsl to it, right?

I have not done this in years....

Do you have a basic XSL for rss 2.0???
just somthing that transform it to an HTML table.
I think that i will be able to continue by my own after seeing it.

Thanks a lot.

Dori

PS
I just tossed one frisbee for you as promised.
:)
---------------------------

Go With Your FLOW

http://www.frisbee.co.il

User avatar
Jack
Site Admin
Posts: 3472
Joined: Fri Feb 18, 2005 12:05 am

Re: Got it thanks

Postby Jack » Wed Mar 08, 2006 8:33 am

Dori Yaniv wrote:So basically this is just a regular XML handling.

I have to learn how the RSS is built (in which standard, i know there are some) and to attach the right xsl to it, right?

I have not done this in years....

Do you have a basic XSL for rss 2.0???
just somthing that transform it to an HTML table.
I think that i will be able to continue by my own after seeing it.

Thanks a lot.

Dori

PS
I just tossed one frisbee for you as promised.
:)


For example:

http://feeds.feedburner.com/~d/styles/rss2full.xsl

Dori Yaniv
Posts: 7
Joined: Sun Mar 05, 2006 3:55 pm

Oh MAMA

Postby Dori Yaniv » Wed Mar 08, 2006 8:49 am

oh my god,
i am old.....

it seems that i don't remember even 50% from what is written over there....

anyhow, i am sure it does much more than just an HTML table with.

Can you please add few lines of code to help me remember how do i combine cause the XSL to do his job on the XML.

I do remember you can do it either client side or server side.

Another q' - the XSL example you gave, is it good for any RSS 2.0?
I mean, will the elements' names will be the same in any RSS 2.0?

Thanks

Dori

PS
for the last reply i am throwing an MTA frisbee throw. It is a very strong throw to the sky in order to Maximize Time Aloft for the disc. World record is about 17 secs in the air (and cathing afterwards).

So the XSL example was too much for me (a big throw) but i remain with the frisbee in my hands (still have a problem)
:)
---------------------------

Go With Your FLOW

http://www.frisbee.co.il

User avatar
Jack
Site Admin
Posts: 3472
Joined: Fri Feb 18, 2005 12:05 am

Postby Jack » Wed Mar 08, 2006 6:54 pm

if you google with keyword "rss xsl" (no quotes), you will find quite a few samples, like the one here:

http://interglacial.com/~sburke/stuff/pretty_rss.html


Return to “General”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests