Ticket #122 (closed defect: fixed)

Opened 10 months ago

Last modified 7 months ago

Comments link not displayed

Reported by: Massimiliano Owned by: freakerz
Priority: minor Milestone: Undetermined
Component: Themes Version: SVN
Keywords: K2, comment, theme, has_patch Cc:

Description

What you were attempting to do: viewing the homepage of my blog, default K2 set as theme.

What you expected to happen: to see "% comments" right of the balloon icon.

What did happen: nothing is displayed, page source reads "<span class="commentslink"></span>".

Any other information: running r1305; ThemeHelper plugin installed, both activated and not.

Change History

Changed 10 months ago by tinyau

$theme->fn(), using filter_theme_call_*() hook, is broken after r1303. Besides comment link, atom feed link, jquery link is not shown as well in default K2 theme with themehelper plugin enabled.

Changed 10 months ago by cid

Hi, I replaced

<span class="commentslink"><?php echo $theme->comments_link( $post, 'No Comments', '%s Comment', '%s Comments' ); ?></span>

with this (old) one:

<span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?>
<?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span>

Seems to workaround this problem. It is just the line from 0.3.3 release.

PS: I'm sorry for not knowing this trac software, but I just wanted to tell you how I fixed this temporarily :)

Changed 9 months ago by Massimiliano

  • keywords theme, has_patch added; theme removed

cid's patch works (thanks!). It affects entry.multiple.php, entry.single.php, home.php, page.single.php, search.php, tag.php in the k2 folder.

It should be reverted when $theme->fn() is fixed.

Changed 9 months ago by miklb

was this not addressed in r1348

Changed 9 months ago by miklb

comments links changed in r1355. Are the other issues resolved, can this be closed as fixed?

Themehelper function should be new issue.

Changed 9 months ago by ringmaster

This should go back to the way it was with the theme functions working properly.

Changed 9 months ago by dmondark

  • milestone changed from 0.4 to Undetermined

Changed 9 months ago by michaeltwofish

comments_link is currently in the ThemeHelper plugin, so with the plugin activated and the comments code reverted to call $theme->comments_link, this should work. However, we do not currently have a mechanism for describing dependencies, so K2 shouldn't rely on it.

Changed 9 months ago by freakerz

  • owner set to freakerz
  • status changed from new to assigned

So should we have ThemeHelper active by default, add that function to core Theme:: or simply leave it as-is?

Changed 7 months ago by freakerz

  • status changed from assigned to closed
  • resolution set to fixed

This has been fixed for a while, therefore closing.

Thanks to all!

Note: See TracTickets for help on using tickets.