I am implementing the phpbb2 styling ideas found here:

http://www.drupalart.org/phpbb

in conjunction with the flatform module:

http://drupal.org/project/flatforum

I want the mini post icon to be an anchor link to the individual posts within the forum topic. This is the way it works in phpbb2. However, even though the method at drupart.org shows how to insert the mini post icon, it doesn't provide the linking code.

I have tried using $node_url but that only works for the topic post and not the replies (comments). I have searched extensively and can't find a solution. Could someone please point me in the right direction. Here is the code I am using in my current node-forum.tpl.php:

<td class="forum_node_title">
    Post subject: <?php print $title ?> &nbsp; &nbsp; 

    Posted: <a href="/<?php print $node_url ?>"><img src="/misc/icon_minipost.gif"></a>
	<?php print $date ?>
  </td>

Thanks,

gtoddv

Comments

sethcohn’s picture

You need to know the comment # (it's listed in an id tag)
and add it to the URL as #comment-XX

You might need to add a comment.tpl.php or comment-form.tpl.php
to do that.

Keep the rest of us in the loop, sounds like a nice improvement.