on 3/5/01 4:01 AM, John P . Looney at [EMAIL PROTECTED] wrote:
> It's quite simple, and I'm using it for generating the navbar in my
> style for http://midgard.linux.ie if you want to see how it turns out;
>
> <?php
> $topic = mgd_list_topics(0, "reverse score");
>
> if(!$topic) {
> echo "mgd_list_topics(0) failed.<br>";
> echo "reason: " . mgd_errstr();
> }else{
> while($topic->fetch()){
> $this_topic= mgd_get_topic($topic->id);
> if($this_topic->sitegroup) {
> echo "<TR><TD><IMG alt=\"\" src=\"/blobs/images/grad.gif\" border=0></TD><TD>
> \n";
> echo "<A
> href=\"/articles/$this_topic->name\">$this_topic->name</a></TD></TR>";
> }
> }
> }
> ?>
>
> (Next of course, is to come up with nice navigation code once you *get*
> to "/articles/$this_topic->name/"!
>
> Should this be annotated to the midgard manual ?
Kate,
This is great! I love the way you are setting up linux.ie! The user
interface is simple and easy to navigate. The style is also beautiful!
I tried this code on http://www.accollarts.net/example/example5 and did get
the page to display. However, the link to /articles/$this_topic->name/ did
not work :-( I guess that I need the navigation code for it. Do you have
something simple which can be added to the example?
Since I am hoping to have some documentation to these examples, I would like
to add a comment to the code as to who contributed it. Will it be ok to add
something like "// code contributed by Kate of linux.ie" If there is
something else you would like to add instead, please let me know.
Thanks for the sample code!
enrique
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]