Forum Index PD-Downloads Block mit Downloads einer Kategorie |
Re: Block mit Downloads einer Kategorie
|
||||
---|---|---|---|---|
Webmaster (O.M.A.)
|
hm ich hätte da eine spontane aber statische lösung dH du müsstest ganz genau wissen aus welcher kategorie du die downloads anzeigen willst lassen, dazu musst du die cid der gewünschten kategorie wissen
dann gehst du ins pd-downloads/blocks verzeichnis und rufst die PDdownloads_top.php auf. in dieser suchst du folgenden eintrag Quote: $result = $xoopsDB->query("SELECT a.lid, a.cid, a.title, a.$options[0], b.* FROM " . $xoopsDB->prefix("PDdownloads{$mydirnumber}_downloads") . " a, ".$xoopsDB->prefix('group_permission')." b WHERE a.lid = b.gperm_itemid AND a.offline = 0 AND (a.published > 0 AND a.published <= $time_cur) AND (a.expired = 0 OR a.expired > $time_cur) AND b.gperm_modid = $module_id AND b.gperm_name = \"PDDownFilePerm{$mydirnumber}\" AND b.gperm_groupid = $groups[0] ORDER BY " . $options[0] . " DESC", $options[1], 0); diesen edierst du wie folgt Quote: $result = $xoopsDB->query("SELECT a.lid, a.cid, a.title, a.$options[0], b.* FROM " . $xoopsDB->prefix("PDdownloads{$mydirnumber}_downloads") . " a, ".$xoopsDB->prefix('group_permission')." b WHERE a.cid = 0 AND a.lid = b.gperm_itemid AND a.offline = 0 AND (a.published > 0 AND a.published <= $time_cur) AND (a.expired = 0 OR a.expired > $time_cur) AND b.gperm_modid = $module_id AND b.gperm_name = \"PDDownFilePerm{$mydirnumber}\" AND b.gperm_groupid = $groups[0] ORDER BY " . $options[0] . " DESC", $options[1], 0); du hast also "a.cid = 0 AND" hinzugefügt, die nummer 0 ist die kategorie mit der cid 0 dH du schreibst statt null einfach die cid rein du gern hättest. habs aber nicht ausprobiert, aber theoretisch müssts funktionieren.
Posted on: 2006/6/13 19:46
|
|||
The Solution Provider
_________________________________ _________________________________ ------ krobi@power-dreams.com |
||||
|
You can view topic.
You can start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.