Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 851 through 875 (of 1,585 total)
  • @boonebgorges

    Keymaster

    As I stated above, the problem is not with the BuddyPress software, it is with the environment in which the buddypress.org website is hosted. It is a universal truth that websites will not allow you to upload files (like avatars) unless their permissions have been properly configured. In the case of buddypress.org, they are not (and they cannot be at the moment). It sounds like something similar is happening on your server.

    @boonebgorges

    Keymaster

    For a new tab, check out the BP Skeleton Component. It’ll show you how to create a new tab, how to register a new component (for a top-level URL like http://example.com/custom-forum-page), and how to use a screen function to display the content.

    @boonebgorges

    Keymaster

    It’s a problem with buddypress.org’s hosting situation. As @crashutah alludes to, buddypress.org shares user database with wordpress.org, which at the moment has pretty severe restrictions on the kinds of files that can be uploaded.

    I’ve spoken with some of the staff at Automattic about the problem, and they’ve informed me that the general restrictions on uploads at wordpress.org will be lifted relatively soon. At that time, the avatar problem here will be fixed.

    I can’t implement any other fixes on buddypress.org at the moment because of the fact that it’s running a WP 2.9.x installation, which must be upgraded before any more fixes go up. That upgrade process is going to be very complicated. I’m working on it.

    In the meantime, I agree that it’s not a great first impression, but I encourage you to download the software and check it out.

    @boonebgorges

    Keymaster

    You shouldn’t need more functions, just conditional checks inside of the plugins. Something like:

    `function bbg_save_extra_group_details() {
    global $bp;

    if ( ‘yes’ == groups_get_groupmeta( $bp->groups->current_group->id, ‘is_this_group_a’ ) ) {
    // do some group A stuff
    } else {
    // do some group B stuff
    }
    }`

    You don’t have to use groupmeta to distinguish between the groups, but you will definitely have to have some way of distinguishing between them.

    @boonebgorges

    Keymaster

    Make sure it’s /wp-content/plugins/bp-custom.php (‘bp’ as in ‘BuddyPress’, not ‘bg’ as in ‘Boone Gorges’) :)

    It’s fine to keep it in your functions.php if it works for you, though.

    @boonebgorges

    Keymaster

    It’s hard for me to guess without seeing the markup. Keep in mind that the css that you’ve posted is looking for a *child* of div.activity-list with the class name “red”. Make sure that the activity item markup still has its CSS class rendered by the following code (in entry.php of your child theme):
    `class=””`
    or else the filter won’t do anything.

    As an aside, I’m not sure what you can do with divs that you can’t do with ul/lis. With a software like BP, in my view it’s better to make changes with CSS if possible, so that your child theme doesn’t override too much of the default theme (thereby making upgrades easier for you).

    @boonebgorges

    Keymaster

    Basically, you’ll need two functions to make it happen. One will create the form markup, and the other will process the data. Here’s a skeleton:

    `function bbg_extra_group_fields_markup() {
    // Put your form markup here, eg:
    ?>

    <?php
    }
    add_action( ‘groups_custom_group_fields_editable’, ‘bbg_extra_group_fields_markup’ );`

    That’ll insert the fields into the group admin page. Keep in mind that you might want to echo the current value in the value=”” field. Then:

    `function bbg_save_extra_group_details() {
    // Grab the $_POST data and do something with it. Simplified example:
    global $bp;
    if ( isset( $_POST ) )
    groups_update_groupmeta( $bp->groups->current_group->id, ‘country’, $_POST );
    }
    add_action( ‘groups_group_details_edited’, ‘bbg_save_extra_group_details’ );
    add_action( ‘groups_create_group_step_save_group-details’, ‘bbg_save_extra_group_details’ );`

    That’s untested, so you might need to do some finagling to make it work for both group creation and editing. But that should give you an idea.

    @boonebgorges

    Keymaster

    No, you’re not doing anything wrong – this appears to be intended behavior. Check out bp_activity_get_permalink() in bp-activity.php. The primary_link is used for the View href only when the activity type is new_blog_post, new_blog_comment, new_forum_topic, or new_forum_post.

    Would you consider opening an enhancement ticket on trac.buddypress.org for this issue? It seems to me that if a primary_link is provided by a custom component like yours, that it should be used in bp_activity_get_permalink().

    @boonebgorges

    Keymaster

    Thanks for the note about the API key. I removed it from the original post.

    The kind of sorting you’re talking about is possible but is quite a bit trickier. I have successfully used https://wordpress.org/extend/plugins/buddypress-geo/ is a starting point for that kind of filtering, but the repo version of the plugin is broken, and I’ve modified it fairly heavily to make it work for my projects. One day I hope to release a cleaned-up and improved version of BP Geo.

    The basic gist is that you need to (a) use Google’s geocoding to turn location info into lat/long which you then store, and (b) use some fancy math (nicely defined in bp-geo) to do the proximity filtering.

    @boonebgorges

    Keymaster

    It uses the Google Maps API and a piece of xprofile data (“Current Location”). Here’s a pared down version of what’s used on the site:

    `function bporg_insert_profile_info_column() {
    global $bp; ?>

    displayed_user->id ) ) : ?>

    Location ยท <a href="”>Edit

    var map = null;
    var geocoder = null;

    function initialize() {
    if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById(“map_canvas”));
    map.setCenter(new GLatLng(0, 0), 35);
    geocoder = new GClientGeocoder();
    }
    }

    function showAddress(address) {
    if (geocoder) {
    geocoder.getLatLng(
    address,
    function(point) {
    if (point) {
    map.setCenter(point, 11);
    var marker = new GMarker(point);
    map.addOverlay(marker);
    map.addControl(new GSmallMapControl());
    }
    }
    );
    }
    }
    jQuery(document).ready( function() { initialize(); showAddress(”); } );

    <?php }
    add_action( ‘bp_before_member_activity_post_form’, ‘bporg_insert_profile_info_column’, 9 );
    add_action( ‘bp_before_member_groups_content’, ‘bporg_insert_profile_info_column’, 9 );
    add_action( ‘bp_before_followers_loop’, ‘bporg_insert_profile_info_column’, 9 );
    add_action( ‘bp_before_following_loop’, ‘bporg_insert_profile_info_column’, 9 );
    add_action( ‘bp_before_profile_content’, ‘bporg_insert_profile_info_column’, 9 );
    add_action( ‘bp_before_member_messages’, ‘bporg_insert_profile_info_column’, 9 );`

    [EDIT: Removed the API key and replaced with ‘KEYKEYKEY’. You’ll have to get your own from Google]

    In reply to: Editing the blog loop

    @boonebgorges

    Keymaster

    Check out bp-blogs/bp-blogs-templatetags.php. Those are generally the functions that are called directly in the blog loop.

    In your case, you’ll want to filter bp_get_blog_permalink. Something like:
    `function my_change_url_function( $permalink ) {
    return $permalink . ‘/category/blog’;
    }
    add_filter( ‘bp_get_blog_permalink’, ‘my_change_url_function’ );`

    @boonebgorges

    Keymaster

    Please don’t bump your post more than once per day, especially on the weekend.

    The Base button corresponds to the Base profile fields group. There is no easy way to turn this off at this time.

    @boonebgorges

    Keymaster

    The problem is that you’re using email addresses as user names. BuddyPress must usernames to make up URLs. Usually usernames are chosen by the user, so there is no issue with exposed emails as in your case. Are you using a plugin to allow this?

    @boonebgorges

    Keymaster

    Check out the template file `register.php`, located in `buddypress/bp-themes/bp-default/registration/register.php`. You have a couple possible strategies:

    1) Copy register.php to your child theme and add hidden inputs directly in the markup
    2) Hook to one of the many do_actions littered through the code to add your fields. Eg
    `function bbg_add_reg_field() {
    echo ”;
    }
    add_action( ‘bp_before_registration_submit_buttons’, ‘bbg_add_reg_field’ );`

    Then you’ll have to catch the data being sent. I recommend doing something like this
    `function bbg_grab_reg_data() {
    if ( isset( $_POST ) ) {
    // do something with the custom data
    }
    }
    add_action( ‘bp_complete_signup’, ‘bbg_grab_reg_data’ );`

    @boonebgorges

    Keymaster

    I’m not aware of any documentation outside of the software itself. The functions that do the sync are pretty short and easy to understand. Check out `xprofile_sync_wp_profile()` and `xprofile_sync_bp_profile()` in buddypress/bp-xprofile.php to get a sense of just what’s being synced.

    @boonebgorges

    Keymaster

    @clarklab Do you have access to the database? Have the wp_bp_ tables been created properly? If not, try deactivating BP and then switching it back on.

    @boonebgorges

    Keymaster

    It’s not possible with a default installation of BuddyPress. While it could be built without too much trouble, I am not aware of a plugin that allows admins to receive these kinds of notifications, either.

    @boonebgorges

    Keymaster

    Try switching off BP, and registering a new user through WP’s normal signup procedure wp-signup.php. Are WP emails being sent? If not, then this is probably not a BP problem, but is a problem with the configuration of your WP installation.

    @boonebgorges

    Keymaster

    For the first stage of the process (blog, feeds, twitter integration) BuddyPress is overkill. WordPress by itself will be great for this purpose.

    If you want forums and other social features, BuddyPress will be a good option. The best place to start is by installing BP on a test installation, playing around with it and asking questions in these forums. Good luck!

    @boonebgorges

    Keymaster

    I learned PHP by trying to build something. Find a BuddyPress or a WordPress plugin that does something small but interesting, and pick it apart. Try to modify it to do something similar.

    @boonebgorges

    Keymaster

    If you’ve got a system with lots of people, you may very well have more than one person named “John Smith”. That’s why you need unique identifiers like usernames. The regular name “John Smith” then acts like a piece of profile data. This works the same way in WP as in BP, though WP and BP (for a variety of reasons) store that full name info in different places.

    The BP-WP profile syncing is basically a syncing mechanism for full names and email addresses. That’s because WP doesn’t have very extensive built-in profiles. On the vast majority of BP installations, users will never have any contact with their WP profile data – all of their profile management will happen through BP, with changes automatically synced back to WP.

    @boonebgorges

    Keymaster

    You can’t bypass usernames altogether, as they’re needed for (among other things) BP URLs like example.com/members/boonebgorges/profile. But you could autogenerate them from the user’s fullname. You’d need to hijack the registration process by filtering ‘bp_core_validate_user_signup’, unsetting the error that comes from not having a username, and then generate your own username with a bit of PHP. I’ve done specialized versions of this for clients, but a more generalized one would make for a nice plugin. Any volunteers? :)

    @boonebgorges

    Keymaster

    Nope, this isn’t possible at the moment. With a bit of template and filter wizardry, you could designate a single group as the “public forum” group and then use bp_has_groups( ‘slug=’ . $group_slug ) to display that group in a more forum-ish way.

    @boonebgorges

    Keymaster

    Thanks, Roger.

    @boonebgorges

    Keymaster

    The problem seems to be that user_nicenames aren’t getting transfered over properly. Are you running any other plugins? https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/when-asking-for-support/

Viewing 25 replies - 851 through 875 (of 1,585 total)
Skip to toolbar