Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-default child and plugin problem

  • Avatar of dumbothegreat
    dumbothegreat
    Participant

    @dumbothegreat

    hi, i am trying to install the buddypress wall plugin but im getting stuck with the FAQ instructions that states i must custom ise the plugin templates as of these instructions …….

    sing Child Theme of the BP Default ?

    If you use a child theme for buddypress default theme, you must costumise the plugin template for your theme.

    By copying /wp-content/plugins/buddypress-wall/includes/templates/bp-default/ to your WordPress theme you can override the template that comes with the plugin.

    The files template will be placed in the buddypress activity,groups and members directory.

    9 template should be customised :

    activity/activity-wall-loop.php
    activity/entry-wall.php
    activity/index-wall.php
    activity/post-wall-form.php

    groups/single/activity-wall.php
    groups/single/home-wall.php

    members/single/activity-wall.php
    members/single/home-wall.php

    For example, to update the activity/activity-wall-loop.php template,
    open the template file in your favorite editor or IDE and open the template
    activity/activity-loop.php (without -wall-) and replacing the template activity-wall-loop.php
    by code from activity-loop.php and keeping only the bp-wall php code (marked between <!– bp-wall-start –> and <!–bp-wall-end–>) in the activity-wall-loop.php.

    for example in activity-wall-loop.php, the
    code
    <?php bp_wall_load_sub_template( array( ‘activity/activity-wall-loop.php’ ) ); ?>

    is used to load activity-wall-loop.php instead this code
    <?php locate_template( array( ‘activity/activity-loop.php’ ), true ); ?>
    used in the default buddypress template.

    so you must replace the template content and keep the bp-wall script.

    as you can see there not very informative for a novice, i have copied the bp-deafault folder as stated to my child theme folder from the buddypress wall directory also copied it to my computer for editing with notepad++ , now this is where im getting lost, it then states i must open the activity/activity-loop.php , where do i get this file from? i looked in buddypress/plugins and there are similar files in buddypress/plugins/bp-theme/bp-default/activity folder and a buddypress/plugins/bp-theme/bp-legacy/budypress/activity , which directory should i be copying from? then this bit also confuses me

    For example, to update the activity/activity-wall-loop.php template,
    open the template file in your favorite editor or IDE and open the template
    activity/activity-loop.php (without -wall-) and replacing the template activity-wall-loop.php
    by code from activity-loop.php and keeping only the bp-wall php code (marked between <!– bp-wall-start –> and <!–bp-wall-end–>) in the activity-wall-loop.php.

    for example in activity-wall-loop.php, the
    code
    <?php bp_wall_load_sub_template( array( ‘activity/activity-wall-loop.php’ ) ); ?>

    is used to load activity-wall-loop.php instead this code
    <?php locate_template( array( ‘activity/activity-loop.php’ ), true ); ?>
    used in the default buddypress template.

    so you must replace the template content and keep the bp-wall script.

    now this bit has me totally lost again!….ok i have established that once i have the “CORRECT” two files open in notepad++, i then have to copy and replace some code from activity-loop.php to the activity-wall-loop.php…which part of the code is it i am meant to be copying and replacing? you say keep only the bp-wall code but which part is that? the whole lot? the top? the code under the top?

    please could someone help me its driving me crazy, i can do it but just cant understand his lack of detail in how to do it, the plugin author is known not to respond very often in support and i need to try solve this now to cary on working on my theme instead of putting it on hold for weeks.

    all i need is for someone to explain the above in an easier more detailed manor, i will be very greatfull, ty in advance.

You must be logged in to reply to this topic.