Hello,
I'm still hoping to get some help :-) so I post this one again,
slightly modified:
> reset ($showlist);
> while (list(, $id) = each ($showlist)) {
> $article = mgd_get_article($id);
Now I have several problems. First of all an error message:
Parse error: parse error in ROOT on line 3
line 3 would be: $topic_id = 26;
but I doubt that the counting is correct. Why should there be a
problem?
Then this whole construction shows only 3 lines (= 3 articles/topics)
and it lists stuff that is old, very old. Actually the only new thing
that is listed comes from my root (26). That's ok, it should be listed
on top anyway. But I need four lines and in the 2nd it should show the
newest stuff from 28, in the 3rd from 59 and in the fourth from 62.
Content from 62 is not shown at all. I really don't know what's going
on there.
Here's the whole construct:
<?
$showlist = array();
$article = mgd_list_topic_articles_all($topic_id); $displayed = 0;
--------- was 26 before, but
doesn't change anything, of
course.
while ($displayed == 0 && $article && $article->fetch()) {
if (mgd_is_article_in_topic_tree(94, $article->id)) { continue; }
if (mgd_is_article_in_topic_tree(111, $article->id)) { continue; }
if (mgd_is_article_in_topic_tree(28, $article->id)) { continue; }
if (mgd_is_article_in_topic_tree(62, $article->id)) { continue; }
if (mgd_is_article_in_topic_tree(59, $article->id)) { continue; }
$displayed++;
$showlist[] = $article->id;
}
$topics = array(28, 59, 62); reset ($topics);
while (list(, $topic) = each ($topics)) {
$article = mgd_list_topic_articles($topic, "reverse created");
if ($article && $article->fetch()) { $showlist[] = $article->id; }
}
reset ($showlist);
while (list(, $id) = each ($showlist)) {
$article = mgd_get_article($id);
?>
Thanks for help, greetings
Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]