Skip to:
Content

bbPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1971 closed defect (bug) (wontfix)

introduce page-bbp.php

Reported by: alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1.2
Component: Appearance - Theme Compatibility Keywords:
Cc: jared@…

Description

if this file will be in the theme directory than use this instead of page.php for displaying everything...

page.php is used if the theme has no support or the template files does not exist.

All these files (24 of them) are too many, id a user what a custom sidebar or a custom template for all files...

Change History (5)

#1 @alexvorn2
9 years ago

sorry for my bad English

#2 @alexvorn2
9 years ago

Correction: page.php is used if one of 15! files does not exist.
My options is so:

  • adding 1 file page-bbp.php for first 4 (archives files)
  • and single-bbp.php for last 11 (single named files)
Last edited 9 years ago by alexvorn2 (previous) (diff)

#3 follow-up: @jaredatch
9 years ago

  • Cc jared@… added
  • Component changed from General to Theme Compatability
  • Resolution set to wontfix
  • Status changed from new to closed

We can't replace/override the theme's page.php with our own because there is no way to predict the format.

Every theme handles their template files differently, so we can't just use our own globally.

#4 in reply to: ↑ 3 @alexvorn2
9 years ago

Replying to jaredatch:

We can't replace/override the theme's page.php with our own because there is no way to predict the format.

Every theme handles their template files differently, so we can't just use our own globally.

For a easiest way to customize a new theme with bbPress this feature would be very handy...

#5 @johnjamesjacoby
9 years ago

  • Milestone Awaiting Review deleted

Still not understanding. 'page-bbp.php' would mean needing a page with the slug 'bbp' for it to work. What's the point of that?

bbPress can't manipulate existing themes, so any new template files need to stay inside bbPress. If that's the case, we can't reliably hijack a full page, because we'll never know what the mark-up is.

I fully understand the problem, but I'm fuzzy on your proposed solultion.

Note: See TracTickets for help on using tickets.