Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #4855, comment 26


Ignore:
Timestamp:
03/06/2013 09:13:35 PM (12 years ago)
Author:
modemlooper
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4855, comment 26

    initial v1  
    1 imath, my issue is not 100% the same as what r-a-y brought up but they are relevant. Figuring out if it's bp-default or legacy is easy as you've shown. My issue is a plugin calling plugins.php and you want to remove the from using that file and your plugin use that file instead. Yes, there has been suggestion to dehook every call to bp_template_content. But that is crazy when you want to add markup to the page with code. It just doesn't work. This is why I suggest a sub template that a theme or plugin can override.
     1imath, my issue is not 100% the same as what r-a-y brought up but they are relevant. Figuring out if it's bp-default or legacy is easy as you've shown. My issue is a plugin calling plugins.php and you want to remove the plugin from using that file and your plugin use that file instead. Yes, there has been suggestion to dehook every call to bp_template_content. But that is crazy when you want to add markup to the page with code. It just doesn't work. This is why I suggest a sub template that a theme or plugin can override.
    22
    33If I want to support every WP theme available I need to be able to put content inside plugins.php that a theme supplies, not replace it with a file that most likely will not match the theme markup. That would be like replacing sidebar.php with so I can add a widget. The theme would break if the custom template file doesn't match the markup.