Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-nouveau vs bp-legacy

  • @devoctopix

    Participant

    Hi,

    I was wondering if it was possible to build a theme compatible with both existing template packs (nouveau and legacy).

    For MYTHEME/buddypress/members/members-loop.php can we have MYTHEME/buddypress/bp-nouveau/members/members-loop.php and MYTHEME/buddypress/bp-legacy/members/members-loop.php ?

    And how to manage the fact that the theme can be used for BP3.0+ and BP2.9.X ?

    Thanks in advance!

Viewing 11 replies - 1 through 11 (of 11 total)
  • @vapvarun

    Participant

    @devoctopix it will be hard to keep support for both templates in a single theme. You can force Legacy via ‘buddypress-use-legacy’ on existing themes.

    @devoctopix

    Participant

    Yes I understand!

    “buddypress-use-legacy” ? I can not find anything in the documentation about this. Is it a constant?

    Thanks a lot for your feedback!

    @vapvarun

    Participant

    You can define following

    add_theme_support('buddypress-use-nouveau');

    or

    add_theme_support('buddypress-use-legacy');

    @vapvarun

    Participant

    It will help you to set default template pack for the theme, little confusing for now as site admin’s choices will not work inside BuddyPress Option after defining add_theme_support.

    @devoctopix

    Participant

    Thanks a lot @vapvarun! Very helpful!

    @djpaul

    Keymaster

    I am pretty sure themes will choose to use one template pack or another. It will be almost impossible to support multiple template packs.

    @nahummadrid

    Participant

    @djpaul but lets say we want the THEME to remain compatible with both? would it be possible to switch between the 2 template packs for a theme having a the override/buddypress folder in order to modify bp templates and still have the theme stay compatible.

    I can look for custom functions for each pack when i switch back and forth like so no? so that i can try to make them continue to work for each…

    if(class_exists('buddypress')) {
      
      if( bp_get_theme_package_id()  == 'nouveau') { 
      my custom nouveau actions, functions and stuff
      enequeue custom nouveu.css
      } else {
      my custom legacy actions, functions and stuff
      enequeue custom legacy.css
      }
    
    }

    How to do this with the theme overrides in the theme/child theme’s /buddypress folder?

    should this work?
    /bp-nouveau/buddypress/…template overrides
    /bp-legacy/buddypress/…template overrides

    So in this way my theme can continue working with both packs…

    @djpaul

    Keymaster

    Imagine a BuddyPress Template Pack as something analogous to a WordPress theme. You can’t have a child theme compatible with multiple parent themes.

    And you can’t have a template pack compatible with multiple themes. I don’t think there is anything in the template hierarchy – like the named folders that you suggest – that would let you do this. I suppose we could add something but I do not think this would be a good thing for the project at the moment.

    We have discussed a concept of multiple small template packs being active at the same time and we might want to support this sort of folder structure then. But not now.

    @nahummadrid

    Participant

    @djpaul thanks for the feedback. I’d say then that having a dropdown template pack option in the options page gives the impression that we can switch between the 2 as long as a theme supports both. In fact if I start working with BP + Twenty Seventeen or underscores, I need to stick with whichever pack i choose from the beginning if I make modifications to bp templates or have nouveau/legacy specific functions.

    concept of multiple small template packs being active at the same time

    I wouldn’t need multiple packs active at the same time just for the theme to respond to whichever pack is active. I guess I should have a child theme that works with legacy and another child theme for nouveau… should we be moving away from the legacy pac? if so, my objective of using the same theme for both isn’t needed.

    @djpaul

    Keymaster

    It’s likely that any new features will be added to Nouveau, and not Legacy.
    It’s up to you which you want to support or build from.

    @cisat

    Participant

    Hello everyone, anyone can help me, why uploading of Photo and Cover Image in the Group feature is not functioning.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Skip to toolbar