Todd Daniel Woodward wrote:

> However, I was not able to modifying this code correctly to
> display the ID next to the Topic or Article link in the
> individual Topic Admin pages:

The code only displays the IDs if the name/title wasn't
set. Maybe you want

<?

if (!$action && ($t = mgd_list_topics($topic->id))) {
  ?><h3>Subtopics:</h3><p><?
  while ($t->fetch())
    printf('<a href="/topic/%d.html">%s (%s)</a><br>%s',
      $t->id, $t->name ? htmlentities($t->name) : '',
      'topic #' . $t->id,
      "\n");
  ?></p><?
}
?>

<? if (!$action && ($a = mgd_list_topic_articles($topic->id, "reverse
score"))) 
{
  ?><h3>Articles:</h3><p><?
  while ($a->fetch())
    printf('<a href="/topic/article/%d.html">%s (%s)</a><br>%s',
      $a->id,
      $a->title ? htmlentities($a->title) : '',
      'article #' . $a->id, "\n");
  ?></p><?
}
?>

Bye,
Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to