Ticket #628 (closed enhancement: wontfix)

Opened 1 year ago

Last modified 1 year ago

Hook for post author metadata

Reported by: GTim Assigned to:
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

04/03/07 13:02:42 changed by so1o

  • owner changed.
  • component changed from Back-end to Front-end.
  • milestone set to 1.0.

07/22/07 17:37:09 changed by Null

  • 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 :))

07/22/07 17:40:01 changed by Null

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?

07/22/07 18:10:29 changed by sambauers

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

(follow-up: ↓ 6 ) 09/15/07 00:14:53 changed by mdawaffe

  • status changed from new to closed.
  • resolution set to wontfix.

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?).

(in reply to: ↑ 5 ) 09/15/07 08:37:31 changed by Null

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?).

09/27/07 00:37:50 changed by mdawaffe

  • milestone changed from 0.8.3 & BB_Query to 1.0.