First of all this module is a great idea. But for me it doesn't work.
Drupal 6.15 fresh install. After instaling your module I renamed example_block.tpl.php to block.tpl.php and put this file to my theme folder. I have Block Title Link settings section with "Title Path" field in block settings page. After I put url and hit save button, block's title becomes a link, but link is
mylocalsite/admin/build/<? print $block->title_link ?> if I on mylocalsite/admin/build/block
or
mylocalsite/node/<? print $block->title_link ?> if I'm on mylocalsite/node/2
tested on Garland - the same. Please help

Comments

AlexanderPop’s picture

I used code from http://drupal.org/node/662294 post and it works.

geoff3jones’s picture

yup, had this issue too but realise that the clue is in the error notice that it is thinking that <? ....?> is the link it is meant to be linking to and is the same for all of the blocks you enable, this module on. Take a peak at the php of the example on line 5 the <? print $block->title_link ?> is slightly different to the other time that this command pops up (line 9) <?php print $block->subject; ?> now it should be easy to spot that the thing that is stopping the block working with it super desirable slickness is the missing letters 'php' after the initial <? that way the line is read as php instead of plain txt try the following snippet adjustment

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>">
  <?php if ($block->subject): ?>
    <h2 class="title">
      <?php if (isset($block->title_link)): ?>
        <a href="<?php print $block->title_link ?>">
          <?php print $block->subject; ?>
        </a>
      <?php else: ?>
        <?php print $block->subject; ?>
      <?php endif; ?>
    </h2>
  <?php endif; ?>
  <div class="content">
    <?php print $block->content; ?>
  </div>
</div>

this fixed it for me hope it does for you too.

ngmaloney’s picture

Assigned: Unassigned » ngmaloney
Status: Active » Closed (fixed)

New release should resolve. Be sure to update tpl.php