Ypn Rss

Discussion in 'Publisher Network' started by pcunix, Jan 16, 2006.

  1. #1
    I decided to give YPN a try in my RSS feed. It hasn't done all that well for me in my pages, but I'll try it here..

    Problem: I must have done something wrong, because the ads don't show up.

    Here's the feed: feed://aplawrence.com/aplawrence.rss or http://aplawrence.com/aplawrence.rss

    Anyone see what I bollixed?
     
    pcunix, Jan 16, 2006 IP
  2. kscaldef

    kscaldef Peon

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In your feed, it's showing up like:


    <!-- begin(Yahoo ad) --><a href="http://ypn-rss.overture.com/rss/30042/<?php the_ID() ?>/click/"><img src="http://ypn-rss.overture.com/rss/30042/<?php the_ID() ?>/img/?url=<?php echo urlencode(get_permalink()) ?>&amp;pid=2002732469" alt="Ads by Yahoo!" border="0"/></a><!-- end(Yahoo ad) -->


    I.e., you seem to be displaying the raw ad code, without it being processed by Wordpress to insert the correct values. Those PHP tags are why the ads don't display.
     
    kscaldef, Jan 16, 2006 IP
  3. pcunix

    pcunix Peon

    Messages:
    121
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, raw tags in CDATA don't seem to bother anything else. But I just escaped all of them (&lt; &gt;) and it still doesn't work..
     
    pcunix, Jan 16, 2006 IP
  4. kscaldef

    kscaldef Peon

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, you misunderstood. The <?php> tags are the problem. Browsers don't know what to do with them. Your weblog application (i.e. wordpress) is supposed to execute them to generate the correct content to serve to the user.
     
    kscaldef, Jan 16, 2006 IP
  5. pcunix

    pcunix Peon

    Messages:
    121
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ahhh!

    I see.. I'm not using Wordpress, but that should let me figure this out..

    Thanks!!
     
    pcunix, Jan 17, 2006 IP
  6. pcunix

    pcunix Peon

    Messages:
    121
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Followup: it's all set now. Stupid of me not to notice that Php in the Yahoo setup code.

    I do see that it's always displaying the SAME ad.. perhaps I need to include more context. I really hate putting a lot of text into an rss feed because so many readers just stupidly download it over and over again..

    Thanks again!
     
    pcunix, Jan 17, 2006 IP