I want to add Subscibe to Comments under every blog. I installed the CommentRSS module and now I want to add a link Subscribe to Comments under every blog. Thats why I tried to change the blog-node.tpl.php

<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
  <?php print $picture ?>
  <?php if ($page == 0): ?>
    <h1 class="title"><a href="<?php print $node_url ?>"><?php print $title ?></a></h1>
  <?php endif; ?>
    <span class="submitted"><?php print $submitted ?></span>
    <span class="taxonomy"><?php print $terms ?></span>
    <div class="content"><?php print $content ?></div>
     <?php if ($links): ?>
    <div class="links">&raquo; <?php
    global $user;
    print ('<a href = "http://weblog.stranger.nl/crss/node/'. print $node->nid. '>Subscribe to Comments</a>');
?></div>
    <?php endif; ?>
</div>

But this is not correct. I do not get the right link. What I'm I doing wrong.

Regards,
Stefan

Comments

sstrange’s picture

I'm a little bit further with the code but now I don't see the other links anymore.

<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
  <?php print $picture ?>
  <?php if ($page == 0): ?>
    <h1 class="title"><a href="<?php print $node_url ?>"><?php print $title ?></a></h1>
  <?php endif; ?>
    <span class="submitted"><?php print $submitted ?></span>
    <span class="taxonomy"><?php print $terms ?></span>
    <div class="content"><?php print $content ?></div>
     <?php if ($links): ?>
    <div class="links">&raquo; <?php
    global $user;
    print '<a href = "http://weblog.stranger.nl/crss/node/' . $node->nid . '">Subscribe to Comments</a>';
    ?></div>
    <?php endif; ?>
</div>

Any help appreciated!
Regards,
Stefan

beginner’s picture

Version: 4.6.x-1.x-dev » 5.x-1.0
Status: Active » Closed (won't fix)

Is this still relevant for Drupal 5?
In any case, the issue doesn't seem relevant to blogtheme: we are only dealing with changing the theme.