Using a child theme in BP Daily

Hi Tammie,

I am patching my forums to display in reverse order by using this Patch here:,

http://trac.buddypress.org/ticket/2354

The patch requires the topic.php file in BP Daily to be modified pass a new ‘order’ parameter to bp_has_forum_topic_posts().

It works fine when I patch the file in Bp Daily but what would I have to place in the child theme if I didn’t want to alter the parent daily theme?

The patch is designed for topic.php to be placed in a child theme, but I don’t know where it would go exactly and in what form. Do I just need the topic.php file in there or does it need to be in a folder or directory within the theme?

Any help would be great.

Cheers

Ross :slight_smile:

  • Tammie
    • WordPress Wizard

    @rossagrant: Then you need to have in the child groups/single/forum – you need all the folders – you need to literally have as I said all the file structure the same. Perhaps this video and tutorial will help you a little in understanding child and parent themes it’s not 100% related but explains some of the concepts:

    http://buddydress.com/2010/05/parent-and-child-themes-explored/

    I will note I have not tried what you are but the theory ‘should’ work – let me know though if there is an issue with it and it’s in the correct path.

  • Tammie
    • WordPress Wizard

    EDIT: That isn’t a patch for the theme it’s a patch for buddypress I think you’re mistaken on that yes? I haven’t a clue if that will work in the child theme it should but they have designed it for the core. I’m fairly sure I’m missing a part of the conversation on that one as I see a trac note.. yet you are saying about the order maybe there is a forum post you’re involved in?

  • rossagrant
    • The Incredible Code Injector

    The patch itself is for BP but the call to change the order happens in the topic.php file which is in the theme/groups folder

    The patch places a ‘ASC’ order function in the BP structure which can be called to ‘DESC’ in the topic.php file in a theme to alter the order.

    I originally edited the main parent theme and it worked fine but I wasn’t sure if you could just place the topic.php file into the child theme.

    If the entire structure has to come across I suppose it’s no easier than just editing the main theme? I just thought initially it might stop me from having to do the edit on every theme update you release but it’s no big deal.

    Thanks!

  • Tammie
    • WordPress Wizard

    @rossagrant: Well it does save overwriting however you do need to put it in the right folder structure. I’d still go with the child theme everytime myself. Just wasn’t sure what it related to as knew hadn’t seen it in 1.2.4 list :slight_smile: – sorry 1.2.4 has been my focus these few weeks with that releasing.