Skip to:
Content

Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#1971 closed defect (wontfix)

introduce page-bbp.php

Reported by: alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1.2
Component: Theme Compatability 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)

comment:1 alexvorn219 months ago

sorry for my bad English

comment:2 alexvorn219 months 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 19 months ago by alexvorn2 (previous) (diff)

comment:3 follow-up: jaredatch19 months 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.

comment:4 in reply to: ↑ 3 alexvorn219 months 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...

comment:5 johnjamesjacoby19 months 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.