here is solution for rss2 with vbulletion 3.5
example feed:
http://www.wranglerforum.com/external.php?type=rss2
go to your publisher home, click ad setup, rss ad layout.
publisher platform: moveable type
type in your url and generate rss ad code
you will get the following code:
PHP:
<![CDATA[<!-- begin(Yahoo ad) --><a href="http://ypn-rss.overture.com/rss/32061/<$MTEntryID$>/click/"><img src="http://ypn-rss.overture.com/rss/32061/<$MTEntryID$>/img/?url=<$MTEntryLink encode_xml="1"$>&pid=1972918117" alt="Ads by Yahoo!" border="0"/></a><!-- end(Yahoo ad) -->]]>
copy from the "<!-- begin" to the "end(yahoo ad) -->"
you should now have this
PHP:
<!-- begin(Yahoo ad) --><a href="http://ypn-rss.overture.com/rss/32061/<$MTEntryID$>/click/"><img src="http://ypn-rss.overture.com/rss/32061/<$MTEntryID$>/img/?url=<$MTEntryLink encode_xml="1"$>&pid=1972918117" alt="Ads by Yahoo!" border="0"/></a><!-- end(Yahoo ad) -->
now to edit our feed code, change all instances of <$MTEntryID$> to "1" and <$mtEntryLink ecode_xml="1"$> to " http3A%2F%2Fwww.Yoururl.com%2F%3Fp%3D2 "
now escape all quotes in the string with \
You should end up with something like this:
PHP:
<!-- begin(Yahoo ad) --><a href=\"http://ypn-rss.overture.com/rss/32009/1/click/\">
<img src=\"http://ypn-rss.overture.com/rss/32009/1/img/?url=http3A%2F%2Fwww.dropfeed.com%2F%3Fp%3D2&pid=1972918117\" alt=\"Ads by Yahoo!\" border=\"0\"/></a><!-- end(Yahoo ad) -->
vbulletin code change...
open external.php
find the following code:
PHP:
case 'RSS2':
echo "\r\n\t<item>\r\n";
echo "\t\t<title>$thread[title]</title>\r\n";
echo "\t\t<link>" . $vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]&goto=newpost</link>\r\n";
echo "\t\t<pubDate>" . gmdate('D, d M Y H:i:s', $thread['dateline']) . " GMT</pubDate>\r\n";
replace next echo line with this ( the code between the "<!-- begin" to the "end(yahoo ad) -->" should be the code you generate for yourself from above)
PHP:
echo "\t\t<description><![CDATA[". htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], false, true), $vbulletin->options['threadpreview'])) ."<!-- begin(Yahoo ad) --><a href=\"http://ypn-rss.overture.com/rss/32009/1/click/\">
<img src=\"http://ypn-rss.overture.com/rss/32009/1/img/?url=http3A%2F%2Fwww.dropfeed.com%2F%3Fp%3D2&pid=1972918117\" alt=\"Ads by Yahoo!\" border=\"0\"/></a><!-- end(Yahoo ad) --> ]]></description>\r\n";
save and close.
your feed should now be display a yahoo ad in body of your rss feed.
I will be working up additional implementation this week for rss 1.0 and rss .xx