RSS フィードを出力するためにJQuery Google Feed プラグイン (gFeed)を使用しています。以前にこの代替手段をうまく使用したことがありますが、残念ながら、ちょっとした問題に遭遇しました。RSS フィードは、指定された div への出力を拒否します。フィード https://www.phpbb.com/community/feed.php?mode=newsが Google Reader で正しく表示されることを確認しました。
私のサイトはhttp://removed/index
[Google Feed API 開発者ページ][3] も参考にしました。
これは私のコードです:
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<!-- include this plugin -->
<script type="text/javascript" src="jquery.gfeed.js"></script>
<script type="text/javascript">
// when the DOM is ready, convert the feed anchors into feed content
$(document).ready(function() {
// add a feed manually
$('#feeds').gFeed({
url: 'https://www.phpbb.com/community/feed.php?mode=news',
title: 'A List Apart Feed (Added by Brute Force)'
});
});
</script>
<div id="feeds">
</div>