> printf(' / <a href="%s?topic_id=%d">%s</a> ',
> $midgard->uri, $t->id, htmlentities($t->name));

Yes, I did it. But my problem is:
It doesn't link correct 
I got:
http://mydomain/topic/46.html?topic_id=12
I should have:
http://mydomain/topic/?topic_id=12 (that's works fine)

And two more things:
when I open any article All links change like this
http://mydomain/topic/article/?topic_id=12
It doesn't matter if It links to topic or article :((((

The second problem is that sometimes i loose my location, when I open 
third topic I loose it but it appears in fourth. Here's my code for this

<?  
 function twalk($id) {  
     if ($id && !mgd_is_in_topic_tree(7, $id)) $id = 0;   
     if (!$id || !($t = mgd_get_topic($id))) return;  
     twalk($t->up);  
     printf(' / <a href="?topic_id=%d">%s</a> ', 
     $t->id,  htmlentities ($t->name) ); 
  
     } ?> 
    
<?  
 if ($article) {twalk($topic);}   
 else   
 if ($topic) { twalk($topic->up) ; ?> / &(topic.name); <? } ?> 




--
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