Skip to:
Content
Pages
Categories
Search
Top
Bottom

  • About
  • News
  • Codex
  • Develop
  • Make
  • Forums
  • Download

BuddyPress.org


  • All Members
  • RSS
  • Profile picture of Paul Wong-Gibbs

    Paul Wong-Gibbs commented on the post, BuddyPress 2.9.0 Release Candidate 1, on the site BuddyPress.org 8 years, 9 months ago

    A future release of BuddyPress is going to have a new set of default templates; this effort is called “Nouveau”. The option you’ve found will control whether a site wants to use the new templates or the old ones.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Warning: Illegal string offset 'slug' in the forum How-to & Troubleshooting 8 years, 9 months ago

    What code do you have at line 102 in themes/buddyapp/lib/plugins/buddypress/navigation-icons.php?

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Change member URL on members directory page? in the forum How-to & Troubleshooting 8 years, 9 months ago

    You can change the URL of that page in the admin area (see Pages).

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Can I make this Profile data any better? in the forum How-to & Troubleshooting 8 years, 9 months ago

    empty() is also useful in these situations.

    Ref http://php.net/manual/en/function.empty.php

  • Profile picture of Shmoo

    Shmoo replied to the topic Can I make this Profile data any better? in the forum How-to & Troubleshooting 8 years, 9 months ago

    Thank you,

    I just noticed it’s better to use is_null() instead of isset() because when people leave those fields empty it returns a FALSE boolean inside a var_damp().

    View post on imgur.com

    View post on imgur.com

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Can I make this Profile data any better? in the forum How-to & Troubleshooting 8 years, 9 months ago

    You could use a loop but considering there’s just 3 items, it looks readable enough to me.

  • Profile picture of Shmoo

    Shmoo started the topic Can I make this Profile data any better? in the forum How-to & Troubleshooting 8 years, 9 months ago

    I don’t have super advanced PHP skills so I made this as a start to show off only 3 profile fields (will be svg icons later) ..when their set of course.


    <?php
    $twitter = bp_get_member_profile_data( 'field=Twitter', bp_get_member_user_id() );
    $instagram = bp_get_member_profile_data( 'field=Instagram', bp_get_member_user_id() );
    $website =…
    [Read more]

  • Profile picture of Shmoo

    Shmoo replied to the topic Activity stream items filter in the forum How-to & Troubleshooting 8 years, 9 months ago

    Looks like in the codex by types the ‘updated_profile’ type is missing.

    Are those all default activity types or are there more?

    —
    Following up question
    —

    I went into the database to check what the last added activity type was and found it at the bottom, but what are those first few rows with last_activity types that belong to the members…[Read more]

  • Profile picture of Shmoo

    Shmoo started the topic Activity stream items filter in the forum How-to & Troubleshooting 8 years, 9 months ago

    Hi,

    Don’t know if this codex page is still up to date but I’m trying to exclude a bunch of activity stream items from my site.

    Posting Activity from Plugins

    So I made this.

    function dont_save_various_activities( $activity_object ) {

    $exclude = array( 'activity_update', 'new_avatar', 'new_member',…[Read more]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Conditional redirect for non-logged in users in the forum How-to & Troubleshooting 8 years, 9 months ago

    Is https://www.example.com/example/ a WordPress page? If it is you can target it with

    if ( is_page( 'example' ) ) {
    // Do something.
    }

    Also, I just added the code below and I can still access the members directory when not logged in

    Where did you add the snippet? The code should work.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Conditional redirect for non-logged in users in the forum How-to & Troubleshooting 8 years, 9 months ago

    The code should go in your bp-custom.php file.

    Ref https://codex.buddypress.org/themes/bp-custom-php/

    That looks like it would work for my members directory but what about doing this for a conditional redirect for a specific post page?

    Which post page are you referring to?

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Conditional redirect for non-logged in users in the forum How-to & Troubleshooting 8 years, 9 months ago

    Here’s an example which will redirect all unauthenticated members/ page visitors to the homepage.

    add_action( 'init', function() {
    if ( ! is_user_logged_in() && bp_is_members_directory() ) {
    bp_core_redirect( site_url() );
    } else {
    // Do nothing.
    }
    } );

    Feel free to change site_url() to the URL of your landing…

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Issue With YITH Frontend Manager Plugin in the forum Third Party Plugins 8 years, 9 months ago

    Or you can try to access to some page in WordPress admin area (e.g.: with an ajax call) ?

    BuddyPress doesn’t do this by default. Considering you can’t reproduce, I expect the client is using custom code that’s causing the problem (either in their functions.php file, bp-custom.php file or in an activated plugin). Check those 3 locations on your…[Read more]

  • Profile picture of Catatan tentang Poker Online Terpercaya Langkah demi Langkah

    Catatan tentang Poker Online Terpercaya Langkah demi Langkah's profile was updated 8 years, 9 months ago

    Catatan tentang Poker Online Terpercaya Langkah demi Langkah

    @pokerot11

    View Profile
  • Profile picture

    sakarya's profile was updated 8 years, 9 months ago

    sakarya

    @sakarya

    View Profile
  • Profile picture of Haus & Wohnung Kaufen in Berlin

    Haus & Wohnung Kaufen in Berlin's profile was updated 8 years, 9 months ago

    Haus & Wohnung Kaufen in Berlin

    @wohnungkaufenberlin

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic Issue With YITH Frontend Manager Plugin in the forum Third Party Plugins 8 years, 10 months ago

    Page 2 seems to be loading the my-account page. That’s pretty strange. How are you customising the members/ page loop?

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Notifications in the forum How-to & Troubleshooting 8 years, 10 months ago

    has someone created any CSS code that might be useful to get this done.

    This will need a PHP solution. Unfortunately CSS won’t help.

  • Profile picture of Shmoo

    Shmoo commented on the post, BuddyPress 2.9.0 Release Candidate 1, on the site BuddyPress.org 8 years, 10 months ago

    Nouveau Template Pack? So what’s this.. Are we going back to BuddyPress templates/themes again?

    I installed this RC1 version and I noticed a Template Pack picker in the BuddyPress options.

  • 's profile was updated 8 years, 10 months ago

    @panduanpoker

    View Profile
  • Load More

WordPress.org bbPress.org BuddyPress.org Matt Blog RSS

GPL Contact Us Privacy Terms of Service X

Skip to toolbar
    • WordPress.org
      • About WordPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • bbPress.org
      • About bbPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • BuddyPress.org
      • About BuddyPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
  • Log in
  • Anonymous
    • AnonymousNot Logged In
    • Register
    • Log In