Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 3,501 through 3,525 (of 31,071 total)
  • Author
    Search Results
  • #264802
    zo1234
    Participant

    That seems beyond the scope of buddypress, you may want to search for a gamification plugin. Also, don’t hold your breath on getting an answer here. For such a popular plugin, the support sucks and I’m becoming less and less of a fan of buddypress. The solutions aren’t straight forward, it’s “Here modify 20 files and create this new child theme and create 1000 lines of code”. Not a very user-friendly plugin compared to others.

    #264783
    shanebp
    Moderator

    Put it in your theme/functions.php

    #264779
    shanebp
    Moderator

    Since you don’t want to use the child theme / template approach, you could set the update to an empty string…

    function filter_bp_get_member_latest_update( $update_content, $r ) { 
        $update_content = '';
        return $update_content; 
    }; 
    add_filter( 'bp_get_member_latest_update', 'filter_bp_get_member_latest_update', 10, 2 ); 
    #264709
    shanebp
    Moderator

    If a member has not logged in at least once, they are not considered ‘active’ and will not show in the count.

    You could run this once in your theme/functions.php and then remove it. It will create an activity timestamp for all members with the role: subscriber.

    function pp_add_last_activity() {
    
      $subscribers =  get_users( 'fields=ID&role=subscriber' );
      
      foreach ( $subscribers as $user_id ) {
            bp_update_user_last_activity( $user_id, bp_core_current_time() );
      }
    
    }
    add_action('bp_init', 'pp_add_last_activity' );
    #264700
    travisrcampbell
    Participant

    Never mind! it works 🙂 I just realized that I was saving the functions file in my main directory and not my child theme 🙂

    #264699
    travisrcampbell
    Participant

    Hi Henry – I pasted this at the bottom of my functions.php file in my child theme and emails are still sent from wordpress@jamsession.dk.

    #264686
    Slava Abakumov
    Moderator

    Just sent a new issue!

    BuddyPress Newsletter – #24 – BP security release, Community Hosting, BuddyApp Theme, BP with WooCommerce etc

    https://www.getrevue.co/profile/bpmail/issues/24-bp-security-release-community-hosting-buddyapp-theme-bp-with-woocommerce-etc-48208

    #264657
    r-a-y
    Keymaster

    Actually, what hnla points out is correct. Disregard what I previously wrote, I was thinking of something entirely different!

    index-directory.php has to be a full template with get_header() and get_footer().

    You should copy your theme’s page.php template and rename it to index-directory.php. Then move this file to wp-content/themes/YOUR-THEME/buddypress/groups/index-directory.php.

    Please note that template hierarchy means modifying the surrounding elements of the page. If you just want to modify the group loop itself, then just copy /groups/groups-loop.php and make your changes to that file.

    #264655
    kalico
    Participant

    Hi @r-a-y, Thank you for the reply. My parent theme doesn’t have that file, and yes I am using a child theme already, and I do understand that it doesn’t work with bp-default themes, but it SHOULD work with bp-default templates – no?

    For reasons I don’t understand,

    /bp-templates/bp-legacy/buddypress/groups/index.php

    does not work as the index.php file when copied to

    /community/groups/index.php

    Now, if you’re saying I should not expect it to, then….what should I use as my template for the groups index?

    If I’m reading correctly, @hnla says I should just use a regular page template from my theme, and strategically add in the contents of /bp-templates/bp-legacy/buddypress/groups/index.php (which, as he points out, is not a complete file with header, etc) and call it index-directory.php. (And thank you, @hnla for the reply as well 🙂 )

    I can do that. However, I haven’t found any documentation to that effect, and it seems to be much more complicated than the template hierarchy documentation implies:

    Therefore, you can modify any bp theme compatibility template by copying it over from:

    /bp-templates/bp-legacy/buddypress/

    To:

    /my-theme/community/ or /my-theme/buddypress/

    That is what I have always done, and I’ve never had this much trouble with it before.

    I have other template modifications to make, and if Hugo’s instructions are correct, it would be really helpful to know where the documentation is, in case I have further issues.

    If the template hierarchy page is correct, then something is wrong with my site, because I’m following those instructions (in spite of my original faux pas of using “themes” instead of “templates”).

    Thanks in advance for any further clarification you can provide.

    #264652
    r-a-y
    Keymaster

    @kalicoTemplate hierarchy doesn’t work for bp-default themes or older-style BuddyPress themes that are derivatives of bp-default.

    In your situation, I would just modify /themes/YOUR-THEME/groups/index.php directly.

    If this doesn’t exist in your theme, that means you are using a child theme, so copy /themes/PARENT-THEME/groups/index.php to your child theme and make your mods.

    I’m so wrong! Read my updated reply below.

    #264647
    tommyhares
    Participant

    Thanks Henry, I have been trying to use that. However, I need to iterate through blog posts, not display the same content repeated. Also, tried directly modifying the activity-loop in a child theme, but it only cycles until the next ajax query. Any other solutions?

    #264636
    Hugo Ashmore
    Participant

    @kalico when you create thse template files for index they must be full templates not partials i.e they must include the WP get_header(), get_footer() and any other markup structures representing your themes structure.

    #264632
    kalico
    Participant

    I’m now trying to re-word my original response, so hopefully it will get past whatever filter is preventing me from reposting the dropped message.

    Thanks @danbp. Unfortunately, this wasn’t the solution I needed. Partly, perhaps, but not entirely.

    As you pointed out, I was wrongly copying files from bp-themes rather than bp-templates (a codeblind mistake on my part). But I was doing everything else correctly, in terms of file structure and use of /community/ according to your write up.

    I went through my steps again, this time copying

    /bp-templates/bp-legacy/buddypress/groups/index.php

    over to

    /community/groups/index.php

    with zero impact. (I test this by adding a bit of text in a spot that should display on the live site, and it does not show up. Tried several different places, no effect.)

    This would seem to demonstrate that BP is not reading that index.php file at all. It’s only reacting to the template change if it is called “index-directory.php”.

    I changed the file name (without moving the file) from index.php to index-directory.php, just as I did before, but again, it did not work as expected. The groups directory page picked up the new template, but it displayed a completely stripped-down version of the page, with no CSS at all (white background, default font, everything left-aligned, etc).

    I have been assuming that the index.php file would be a proper starting point (a template) to create custom modifications to the groups directory page (i.e., index-directory.php), but clearly that does not hold true.

    This seems very strange, because in looking at the php code in index.php, it’s got all the elements I see in the source for my live groups directory page. So it appears to be getting that exact same information from “somewhere else” within the plugin structure, but I can’t figure out where.

    My question is now: What file should I use as a starting point to duplicate my existing groups directory, so I can make custom modifications?

    I do hope you (or someone) can point me in the right direction. Thanks in advance!

    #264627
    Henry Wright
    Moderator

    Try doing the same thing using a different theme to see if your theme is causing the issue.

    #264613
    danbp
    Participant

    bp-default theme is the old mandatory theme. BP doesn’t use it anymore since 1.9. This historical theme is only in for backpat compatibility perhaps still in use on some very old installs…

    Actually, BP fits to almost any modern theme, correctly formated and respecting WP’s code standarts.

    What you can try is to create in your child theme, a directory called “community” or “buddypress”.
    If you need to alter a bp template, you copy the original file from here:
    /plugins/buddypress/bp-templates/bp-legacy/buddypress/

    You copy only the file you need and you respect the folder structure who starts from /buddypress/.../

    Note that you if you want to use /community/ in the child, this folder is equal to /buddypress/ in the original template folder. You copy (for ex.) group’s index.php file.
    From:
    /plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/index.php
    To:
    /themes/my_child/community/groups/index.php

    #264582
    danbp
    Participant

    Avatar upload path is: ../wp-content/uploads/avatars/user_ID

    Have you modified something in your htaccess file ?
    Have you added some custom function to your theme or to bp-custom.php ?

    Control also all your media settings on dashboard and don’t forget to check the permalinks.

    Finally, go to your server and check the wp-content/uploads/ permissions, including sub-folders.
    (ie. 755, 705)

    danbp
    Participant

    Deactivate the mail plugin and add this snippet into your (child)theme functions.php file and give a try:

    add_filter('wp_mail_from','custom_email_from');
    function custom_email_from( $mail ) {
    	$mail = 'noreply@example.com'; // Replace the email address here //
    	return $mail;
    }
    #264566

    In reply to: fatal error message

    paripari
    Participant

    Thank you guys.

    This one did the trick.

    Your theme is using an older BuddyPress function – bp_is_member().

    Switch that out for bp_is_user().

    Theme author will update

    /Hamid

    #264548
    danbp
    Participant

    BuddyPress doesn’t use breadcrumbs. This belongs to bbpress and sometimes to a theme or a plugin.

    Ask on respective support. Or try out this plugin.

    #264510

    In reply to: fatal error message

    Hugo Ashmore
    Participant

    🙂 we might have spotted that – regardless you’ll need to approach the theme authors to update their theme or find a new theme.

    #264509

    In reply to: fatal error message

    r-a-y
    Keymaster

    Your theme is using an older BuddyPress function – bp_is_member().

    Switch that out for bp_is_user().

    #264506

    In reply to: fatal error message

    Hugo Ashmore
    Participant

    @paripari it’s the weekend so help is likely to be a little slower.

    Based on what you show it’s going to be quite hard to suggest what’s wrong apart from the obvious & from a jpg without any other detail of the events surrounding the problem almost impossible.

    I can just about see that your using a custom theme ( I have quite good eyesight but that text is really small!) and that you have the issue referenced as occurring from the sidebar.php of the theme, I’m guessing a custom bp loop or widget. You’ll need initially to approach the theme authors and ask them if they can help out, if not then re-post here but supply a little detail about your setup and the sidebar file contents.

    #264499
    coolhunt
    Participant

    Ok. Im a dummy..

    I need to use bp_has_members

    bp_has_members("search_terms={return-users-with-term-from-get_search_query}")

    my goal is to have a code snippet that i can use inside my theme so that anytime theres a search – it also returns a list of bp members.

    any ideas? (p.s. i really have no clue what im doing)

    <p>members <?php echo bp_has_members("search_terms={return-users-with-term-from-get_search_query}"); ?>" . these are members </p>
    
    <p>normal post " <?php echo esc_html( get_search_query( false ) ); ?> ". Here are the results:</p>
    
    #264484

    In reply to: Compatible with Enfold

    I don’t know what this means? Link?

    I just see in the page of enfold that retirano

    I don’t see how it loses compatibility with BuddyPress. AFAIK out of the box, Enfold doesn’t really have it. It needs to be customized in the child theme.

    #264431
    Henry Wright
    Moderator

    Take a look at the Template Hierarchy article. The register.php template is the one you’ll need to modify.

    Template Hierarchy

Viewing 25 results - 3,501 through 3,525 (of 31,071 total)
Skip to toolbar