Curio Studio

The Home of GreatNews
It is currently Mon Sep 01, 2014 8:38 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: one problem...
PostPosted: Mon Mar 06, 2006 11:22 am 
Offline

Joined: Sun Mar 05, 2006 3:55 pm
Posts: 7
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 06, 2006 3:15 pm 
Offline

Joined: Fri Feb 17, 2006 3:47 am
Posts: 28
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 :-)


Top
 Profile  
 
 Post subject: OK
PostPosted: Tue Mar 07, 2006 3:57 am 
Offline

Joined: Sun Mar 05, 2006 3:55 pm
Posts: 7
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 07, 2006 7:41 am 
Offline

Joined: Tue Feb 21, 2006 1:56 pm
Posts: 137
Location: Tyneside, UK
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


Top
 Profile  
 
PostPosted: Tue Mar 07, 2006 8:56 am 
Offline

Joined: Sun Mar 05, 2006 3:55 pm
Posts: 7
Hey MysteryFCM,
I am on ASP....


HIT ME
:)

_________________
---------------------------
Go With Your FLOW
http://www.frisbee.co.il


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 07, 2006 2:20 pm 
Offline

Joined: Tue Feb 21, 2006 1:56 pm
Posts: 137
Location: Tyneside, UK
hehe, here you go ;)

Code:
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


Top
 Profile  
 
 Post subject: Got it thanks
PostPosted: Wed Mar 08, 2006 4:34 am 
Offline

Joined: Sun Mar 05, 2006 3:55 pm
Posts: 7
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


Top
 Profile  
 
 Post subject: Re: Got it thanks
PostPosted: Wed Mar 08, 2006 8:33 am 
Offline
Site Admin
User avatar

Joined: Fri Feb 18, 2005 12:05 am
Posts: 3470
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


Top
 Profile  
 
 Post subject: Oh MAMA
PostPosted: Wed Mar 08, 2006 8:49 am 
Offline

Joined: Sun Mar 05, 2006 3:55 pm
Posts: 7
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 6:54 pm 
Offline
Site Admin
User avatar

Joined: Fri Feb 18, 2005 12:05 am
Posts: 3470
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group