1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Using an RSS Feed (This is Easy)

Discussion in 'XML & RSS' started by yfs1, Jan 5, 2005.

  1. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #201
    It is just a snippet of php code and can be on any type of page, provided php is enabled (same as coop)

    It should be in the body, where you want it (Not in the head)
     
    yfs1, Mar 24, 2006 IP
  2. eddie0816

    eddie0816 Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #202
    I can't type thank you quick enough. I haven't tried it yet, but I am sure with your help it will work.

    Thank You
     
    eddie0816, Mar 24, 2006 IP
  3. zach2k6

    zach2k6 Peon

    Messages:
    66
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #203
    Just tried it, Had to edit my Htaccess file for it to work on my html site.

    How can I change the fonts and colours of the text?
     
    zach2k6, Mar 24, 2006 IP
  4. eddie0816

    eddie0816 Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #204
    I also just tried it, but it didn't work. I could see everything from this part of the code...

    %s", trim($link),htmlspecialchars(trim($title))); printf("
    %s

    all the way to the end of the code on the page itself.

    Please, any help would be greatly appreciated.
     
    eddie0816, Mar 24, 2006 IP
  5. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #205
    Have you tried a test piece of html to make sure php works (Like the previous poster said, you may have to add a line to your htacces)
     
    yfs1, Mar 24, 2006 IP
  6. eddie0816

    eddie0816 Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #206
    Here comes the newbie part. I have no idea what a test piece of code is.

    However, I'd love to try one.
     
    eddie0816, Mar 24, 2006 IP
  7. eddie0816

    eddie0816 Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #207
    I do have .php files on my site. Meaning some pages that end in .php. I don't
    know if that means anything.
     
    eddie0816, Mar 24, 2006 IP
  8. Rollo

    Rollo Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #208
    nice script yfs1, just wondering how would one go about display the links on a page instead of <a href> tags?
     
    Rollo, Mar 24, 2006 IP
  9. pcdoc

    pcdoc Active Member

    Messages:
    690
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    70
    #209
    You paste it where you want the output to be displayed on your page.

    Click on my sig (1stpageseo), look at my portfolio to see how I implement RSS in my customers' sites.
     
    pcdoc, Mar 25, 2006 IP
  10. greenworld

    greenworld Peon

    Messages:
    65
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #210
    could this script be any good together with rss2blog?
    sorry if it is a newbie question,
    thanks
     
    greenworld, Apr 1, 2006 IP
  11. greenworld

    greenworld Peon

    Messages:
    65
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #211
    Hello, I like to test this as well, it seems not too complicated but not working for me.

    I have pasted the whole code into the body part of a new page ( php page made in dreamweaver), saved the page as rss-test.php,
    I already have php page in mysite, so I think it should not be a problem, the only thing I did change was the rss feed,
    uploaded the file to server,
    load the page in ie browser, nothing is on the page, I did change the rss feed with new ones couple of times, but same result, nothing shows up , no error nothing,
    anyone know what possibly could go wrong?

    I did check some of the portfolio section of pcdoc site from the sig. I could not find the same script on those pages.

    thanks.
     
    greenworld, Apr 12, 2006 IP
  12. sebastya

    sebastya Well-Known Member

    Messages:
    2,449
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    138
    #212
    what's the difference between rotating and straight feeds?
     
    sebastya, Apr 13, 2006 IP
  13. deregular

    deregular Peon

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #213
    wonder if anyone knows how to echo out the actual name of the blog that the feed comes from?

    the script seems confused as there are two < title > tags in an rss feed.. one outside the < item > element (name of blog) and one inside each < item > element (the actual post)

    Id love to be able to let people know exactly where the feed comes from!!

    any help is much appreciated.
     
    deregular, May 10, 2006 IP
  14. devin

    devin Guest

    Messages:
    4,461
    Likes Received:
    449
    Best Answers:
    0
    Trophy Points:
    0
    #214
    what is i need to displya, say, 3 links only?
     
    devin, May 10, 2006 IP
  15. loyalmart

    loyalmart Guest

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #215
    good stuff.. will try this...
     
    loyalmart, May 18, 2006 IP
  16. carmen

    carmen Peon

    Messages:
    162
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #216
    Has anyone found a way to modify the original code that takes in multiple rss feeds so that what it will do is take multiple input feeds, mix them up and show x number of listings randomly on a website. X would be a predefined number.
     
    carmen, May 22, 2006 IP
  17. nufcfan

    nufcfan Well-Known Member

    Messages:
    1,147
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    128
    #217
    i run a vb forum and want to add more rss feeds but i don t know where to add this code above how do i go about it ? plz help
     
    nufcfan, Jun 2, 2006 IP
  18. billybrag

    billybrag Peon

    Messages:
    324
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #218
    How would i display say, the top storie from 5 different rss feeds?

    thanks

    Mike
     
    billybrag, Jun 12, 2006 IP
  19. nemolist

    nemolist Active Member

    Messages:
    125
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    58
    #219
    in your php script. would be nice.
     
    nemolist, Jun 12, 2006 IP
  20. nervo

    nervo Active Member

    Messages:
    1,012
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    90
    #220
    Firstly, thanks to all of you people willing to share the knowledge!! :)

    Now, does anyone have any idea why am I able to run "straight" feed script on my site but not the "rotating" one?:confused:

    Thanks!
    nervo
     
    nervo, Jun 16, 2006 IP