Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#628 closed enhancement (wontfix)

Hook for post author metadata

Reported by: GTim Owned by:
Priority: normal Milestone: 1.0
Component: Front-end Version:
Severity: minor Keywords: hook
Cc:

Description

There should be a template hook for adding text below the username to the left of a post's body (in the default template).

Change History (7)

comment:1   so1o6 years ago

  • Component changed from Back-end to Front-end
  • Milestone set to 1.0

comment:2   Null6 years ago

  • Milestone changed from 1.0 to 0.8.3 & XML-RPC

I am sure anyone using the post count or avatar plugin would agree. Question is: below the username OF below the users role? (member, moderator)

Since more and more plugins need something like this, I've moved this request to 0.83 (plz don't shoot me for this :))

comment:3   Null6 years ago

Also some solution to order stuff below the username/role. Let's say I jave installed the post count and avatar plugin, which one will be on top? What if I want the post count above the avatar or vica versa?

You could just use the post_author_title filter. That's how I do it here:

http://plugins-dev.bbpress.org/browser/post-count-titles-for-bbpress/trunk/post-count-titles.php#L231

comment:5 follow-up: ↓ 6   mdawaffe6 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

The fewer the hooks there are in actual templates the easier it is to write new themes.

I think we have too many even now.

My general opinion is that plugins should ask their users to add

<?php if ( function_exists( 'bobs_whirly_gig' ) ) bobs_whirly_gig(); ?>

In their custom templates.

I do think we need to figure out exactly what and where we need hooks, but I think that needs to be done on the global scale rather than adding new hooks in piecemeal.

Please feel free to contribute more discussion (and even to reopen). I'm just closing this janitorially (is that even a word?).

comment:6 in reply to: ↑ 5   Null6 years ago

Though I agree with what you are saying, I think this hook should be there. There are like 5 plugins needing something like this (avatar, post count, etc) and I think thats enough to justify a hook for this. Also looking at WP intergration (also avatars etc) this would be handy...

Replying to mdawaffe:

The fewer the hooks there are in actual templates the easier it is to write new themes.

I think we have too many even now.

My general opinion is that plugins should ask their users to add

<?php if ( function_exists( 'bobs_whirly_gig' ) ) bobs_whirly_gig(); ?>

In their custom templates.

I do think we need to figure out exactly what and where we need hooks, but I think that needs to be done on the global scale rather than adding new hooks in piecemeal.

Please feel free to contribute more discussion (and even to reopen). I'm just closing this janitorially (is that even a word?).

  • Milestone changed from 0.8.3 & BB_Query to 1.0
Note: See TracTickets for help on using tickets.