Opened 14 years ago
Last modified 11 years ago
#1298 new enhancement
Better post author layout management
Reported by: | Nightgunner5 | Owned by: | |
---|---|---|---|
Milestone: | Future Release (Legacy) | Priority: | normal |
Severity: | normal | Version: | |
Component: | General - Administration | Keywords: | has-patch tested |
Cc: | pippin@… |
Description
With so many plugins trying to override each other and change post_author_title to insert things that aren’t the post author’s title, it just makes sense to let users choose where everything goes.
It's also easier on forum admins that don't know how to use PHP or don't want to edit their theme's files, but want to change the layout of the post author box.
It's simple for a plugin or theme to work both ways:
if ( function_exists( 'bb_post_author_layout' ) ) { // Old logic, same as always. } else { // THEMES: bb_post_author_layout(); // PLUGINS: function my_plugin_section_foo() { echo 'Foo'; } function my_plugin_section_bar() { echo 'Bar'; } function my_plugin_post_author_sections_add( $sections ) { $sections[] = 'my_plugin_section_foo'; $sections[] = 'my_plugin_section_bar'; return $sections; } add_filter( 'bb_post_author_layout_sections', 'my_plugin_post_author_sections_add' ); }
Attachments (3)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Additionally, plugins that only use the old method will still work, but they won't be separate from the author title block (assuming they use that one).
For plugins like Post Count Plus that remove the title, this simply turns the title block into a Post Count Plus block.