SSブログ
Q&Aトップ » その他トラブル » Yahoo!オークションの商品が表示され..

Yahoo!オークションの商品が表示されない

2009年9月7日以前に記事のHTMLを編集している場合、Yahoo!オークション商品がブログに表示されません。下記のいずれかの方法でHTMLの修正をお願いします。

方法1.HTMLを初期状態に戻す

  1. 管理ページのタブメニューから、[デザイン]→[レイアウト]を選択します。
  2. 次に、コンテンツ配置にある、記事カラムの[記事]を削除して、ページ左側にある基本コンテンツから新たに[記事]をドラッグ&ドロップで配置します。

方法2.Yahoo!オークション商品紹介機能を表示するためのHTMLを追記する

  1. 管理ページのタブメニューから、[デザイン]→[レイアウト]を選択します。
  2. 次に、コンテンツ配置にある、記事カラムの[記事]をクリックして、さらに右上にある[コンテンツHTML編集]をクリックします。
  3. 下記のとおり、赤字部分のHTMLソースを追加します。
    <以上、略>
    
    <div class="articles-body">
    <% article.first_body | bodyfilter(article_info,blog) %>
    <br clear="all" />
    <% if:list_tag %><div class="tag-word">タグ:<% loop:list_tag %><a href="<% blog.tag_url(tag) %>"><% tag.word | html %></a> <% /loop %></div><% /if %>
    
    <% if article.have_yahoo_auction %>
    <script type="text/javascript" language="javascript" src="<% site_info.blog_url %><% article.yahoo_auction_js_url %>" charset="UTF-8"></script>
    <script type="text/javascript" language="javascript"><!--
    document.write('<link rel="stylesheet"href="<% site_info.blog_url %>/_common/css/user.css" type="text/css" />');
    document.write('<div class="yahoo-auction">');
    document.write('<div class="yahoo-auction-by">「<a href="' + get_keywords_url() + '">' + get_keywords() + '</a>」関連のオークション <span style="font-size:10px; padding-left:7px;">[powered by Yahoo!オークション]</span></div>');
    if(items.item.length){
      document.write('<table cellpadding="0" cellspacing="0" class="yahoo-auction-body">');
      document.write('<tr>');
        for (var i in items.item){
          if(i == '3'){document.write('<tr>');}
          document.write('<td>');
          document.write('<a class="sponsor" href="' + items.item[i].url + '"><img border="0" class="class" src="' + items.item[i].img + '"/></a>');
          if(get_view() == '0'){
            document.write('<div class="yahoo-auction-text">' + items.item[i].price + '円<br />' + items.item[i].bids + '入札 残り' + items.item[i].endtime + '</div>');
          }
          document.write('</td>');
          if(i == '2'){document.write('</tr>');}
          if(i == '3'){if(items.item.length == '3'){document.write('</td><td> </td><td> </td>');}}
          if(i == '4'){document.write('</td><td> </td>');}
          i++;
        }
      document.write('</tr>');
      document.write('</table>');
    } else {
      document.write('<div style="padding:7px 0;">');
      document.write('「' + get_keywords() + '」に一致する商品は見つかりませんでした。<br />');
      document.write('<a href="http://auctions.yahoo.co.jp/">Yahoo!オークションへ</a>');
      document.write('</div>');
    }
    document.write('</div>');
    //--></script>
    <% /if %>
    
    </div>
    
    <以下、略>
    

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。