PEAK XOOPS - sitemapにおけるsubcategoryのずれ(pico 0.98) in englishin japanese

sitemapにおけるsubcategoryのずれ(pico 0.98)

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2007/2/13 22:50
starck  伍長   Posts: 42
GIJOEさん、こんにちは

前回一緒に報告できればよかったのですが・・。
sitemapモジュールの一般設定にて「サブカテゴリも表示する」が「はい」となっている場合、sitemapにpicoのサブカテゴリも表示されると思うのですが、サブカテゴリが、異なる親カテゴリにぶら下がって表示されます。

↓こんな感じ

■picoでの表示
category1
-category1のsubcategoryA
category2
category3

■sitemapでの表示
category1
category2
category3
-category1のsubcategoryA


環境:
SERVER : Apache
PHP : 4.3.11
register_globals = 1
MySQL : 4.0.24-standard-log
XOOPS : XOOPS 2.0.15 JP
Theme : default
sitemap : Ver1.3

お手すきのときにでも確認ください。
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/2/14 3:45
GIJOE  先任軍曹   Posts: 4110
starckさん、こんにちは。

おお〜、渋いバグをみつけましたね

include/sitemap.plugin.php 14行目
	$sql = "SELECT cat_id,cat_title,pid,cat_depth_in_tree FROM ".$db->prefix($mydirname."_categories")." WHERE ($whr_category) AND ($whr_pid) ORDER BY cat_order_in_tree" ;

上の、ORDER BY 以下の書き忘れです。
アーカイブの方へは次回更新時に一緒に反映させます。
Votes:3 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/2/15 19:42
starck  伍長   Posts: 42
GIJOEさん、こんにちは。

返信がだいぶ遅くなりましたが、該当ファイルの修正でsitemapが正しく表示されるようになりました。どうもありがとうございます。
Votes:2 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!