Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 58,551 through 58,575 (of 68,949 total)
  • Author
    Search Results
  • #62483
    Michael Berra
    Participant

    You are fast – buit I think that some files are missing in the zip… no subfolders in it and now it shows no page at all :-)

    #62482
    grosbouff
    Participant
    #62481
    grosbouff
    Participant

    @nexia : there has been core modifications.

    Update to BuddyPress 1.2-beta REV 2608 and BuddyPress Classifieds 1.003-beta.

    —-

    Also, the theme is now included in the plugin, so you can remove the classifieds directory from your current theme.

    #62477
    josephtravers
    Participant

    Okay… maybe I mispoke. :)

    What can we add to one of the php files so that html tags like “img”, “em”, “strong”, etc will work?

    I’m one of the many php/buddypress newbies who are still learning. :)

    #62471
    D Cartwright
    Participant

    Okay, I’ve implemented the fix Boone suggested. The plugin download should update shortly.

    In the meantime, if anyone wants to quickly fix the the files they’ve already downloaded, do the following:

    In “bp-activity-subscription-main.php” change line 3 to the following:

    require_once( WP_PLUGIN_DIR.'/buddypress-group-activity-stream-subscription/bp-activity-subscription-functions.php' );

    #62470
    Mike Pratt
    Participant

    so here’s a tweaked version and the latest in my custom tab efforts, fyi:

    // passes MyClass scope into ajax query for custom Class Year activity filter
    function bn_ajax_querystring_activity_filter( $query_string, $object, $filter, $scope, $page, $search_terms, $extras ) {

    global $bp;

    if ( !is_user_logged_in() || $object != 'activity' )
    return $query_string;

    $args = array();
    parse_str( $query_string, $args );
    $args['object'] = $bp->groups->id;

    switch ($scope){

    case 'myclass':

    $slug = "usma-". bp_get_profile_field_data( array('field'=> 'Class Year', 'user_id' => $bp->loggedin_user->id));
    $groupid = BP_Groups_Group::get_id_from_slug($slug);
    $args['primary_id'] = $groupid;
    break;

    case 'mycadetco':

    $slug = bp_get_profile_field_data( array('field'=> 'Cadet Company', 'user_id' => $bp->loggedin_user->id));
    $groupid = BP_Groups_Group::get_id_from_slug($slug);
    $args['primary_id'] = $groupid;
    break;

    case 'mybranch':

    $slug = sanitize_title(bp_get_profile_field_data( array('field'=> 'Branch', 'user_id' => $bp->loggedin_user->id)));
    $groupid = BP_Groups_Group::get_id_from_slug($slug);
    $args['primary_id'] = $groupid;
    break;

    default:

    return $query_string;
    }

    return http_build_query( $args );
    }
    add_filter( 'bp_dtheme_ajax_querystring', 'bn_ajax_querystring_activity_filter', 1, 7 );

    and the action:

    function bn_add_activity_tab() {

    if ( !is_user_logged_in() )
    return false;
    ?>
    <!-- default item-list-tabs activity-type-tabs

    <ul> -->

    </div><!-- default item-list-tabs activity-type-tabs -->

    <div class="item-list-tabs activity-type-tabs" id="bn-tabs">

    </ul>
    <ul>
    <li id="activity-myclass">
    <a>" title="<?php _e( 'Activity for my Class Year', 'buddypress' ) ?>">
    <?php printf( __( 'My Class', 'buddypress' ) ) ?>
    </a>

    <li id="activity-mycadetco">
    <a>" title="<?php _e( 'Activity for my Cadet Company', 'buddypress' ) ?>">
    <?php printf( __( 'My Cadet Company', 'buddypress' ) ) ?>
    </a>

    <li id="activity-mybranch">
    <a>" title="<?php _e( 'Activity for my Army Branch', 'buddypress' ) ?>">
    <?php printf( __( 'My Branch', 'buddypress' ) ) ?>
    </a>

    <?php
    }
    add_action( 'bp_activity_type_tabs', 'bn_add_activity_tab', 1, 2 );

    A few things to note:

    1. use the WP function sanitize_title() if you have a field that might return more than one word e.g. the group ‘Military Police’ returns ‘military police’ but transforms into ‘military-police’ (a pretty slug0 which gives you a correct slug now.

    2. I added addl markup to force my new tabs into their own element.

    3. Don’t be shy to make suggestions and keep improving this technique. I think many will use it to customize their installs.

    #62467
    Boone Gorges
    Keymaster

    D Cartwright – Great plugin. The problem is that the plugin name in the repo is buddypress-group-activity-stream-subscription, while all of your includes assume that the plugin folder will be called bp-group-activity-stream-subscription. I renamed my plugin folder and all’s well.

    I think this is going to be huge for my community, btw, so thanks.

    #62462
    Paul Wong-Gibbs
    Keymaster

    bp_has_friendships was removed in BP 1.2 and put into the backwards compatibility update. Try something like:

    if ( bp_has_members( ‘user_id=’ . $user_id . ‘&type=alphabetical&per_page=0’ ) ) {

    while ( bp_members() ) : bp_the_member();

    #62461
    gpo1
    Participant

    Where’s the T&C for it?

    #62457

    Ok so that middle part of the code with the avatar section didn’t paste in correctly, but you get the idea. …

    #62456
    Nick Watson
    Participant

    Does anyone know how to implement this into the profile fields on buddypress?

    #62454
    modemlooper
    Moderator
    #62452
    alextababa2
    Participant

    Hi Etiviti

    Thanks for the follow up, it’s really appreciated. The issue seems to have been only related to my admin username which was created before buddypress was installed.

    Also, it wasn’t the spaces that were throwing if off… it might be some other vauge incompatibility between wmpu and buddypress names.

    I’ll double check before I ask for some more info next time, but I’m sure someone with the same issues as you will benefit from your effort.

    peterverkooijen
    Participant

    @snark, I simply removed the function bp_core_disable_welcome_email() from bp_core_activation.php. But then the password in the welcome email is wrong, as discussed here. Haven’t been able to come up with an explanation/solution for that… :-(

    #62449
    angophora
    Member

    “The default theme isn’t intended to be used on hosted blogs on a WPMU install, so the links do break as you’ve found.”

    Oh… I see. Thank you! With that information, I have now found this and will give it a shot (I guess it’s obvious, but I was just confused about how it was supposed to work):

    https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    paulhastings0
    Participant

    The comments are <i>not</i> in moderation, I just checked.

    In the file: wp-content/plugins/buddypress/bp-activity/bp-activity-widgets.php

    I made the following change around line 30:

    <?php if ( /*bp_has_activities( 'type=sitewide&max=' . $instance['max_items'] . '&per_page=' . $instance['per_page'] )*/ bp_has_activities( 'object=blogs&action=new_blog_comment' ) ) : ?>

    And the unregisterd user comments are still not showing up. This is the “site wide activity” widget I’m using. Any ideas?

    peterverkooijen
    Participant

    1) By default, an email isn’t sent to the user because the user password is sent via plain text (not a good thing security-wise).

    That makes absolutely no sense. If you use the forgot password feature, the password is sent via plain text as well. Why is that OK and sending a password upon registration not?

    Most big sites, Facebook, LinkedIn, newspapers, have no problem sending passwords via plain text. Online security is always a balance between security and convenience.

    Buddypress is a social network. It’s not a banking website. If you start using credit card payments or paid membership, those scripts usually come with the own security.

    Who is going to steal a password to someone’s account on a blog network? Has that ever happened? What would they do with it?

    Just my 2 cents. Flame away…

    #62442
    alextababa2
    Participant

    Okay so it works with a new user – even with a space in the name, because the admin bar hyperlinks point to the username eg:

    http://bcosuluvit.com/alistarbright/members/alistarbright/

    Not

    http://bcosuluvit.com/alistarbright/members/Ali starbright/

    But the user created before Buddypress was installed still won’t get correct hyperlinks.

    snark
    Participant

    Still not working. I did find the filter itself in the file /plugins/buddypress/bp-core/bp-core-activation.php:

    add_filter( ‘wpmu_welcome_user_notification’, ‘bp_core_disable_welcome_email’ );

    I suppose I could just delete that line to remove the filter, but then every time BP is updated it’ll probably get overwritten and I’ll forget all about it. Not sure why your filter hook didn’t work. Any ideas?

    Thanks a million for your help — I really appreciate it.

    snark
    Participant

    Re: 1) I tried this and it didn’t work (no error, but didn’t fix the problem). What directory exactly should the bp-custom.php file be put in? I tried it in two places —

    /wp-content/plugins/bp-custom.php (where you said to put it, though that seems odd)

    and

    /wp-content/plugins/buddypress/bp-custom.php

    — and neither worked.

    Re: 2&3) Will do. Thanks.

    r-a-y
    Keymaster

    1) By default, an email isn’t sent to the user because the user password is sent via plain text (not a good thing security-wise).

    You can re-enable this welcome email by adding the following code to /wp-content/plugins/bp-custom.php (create this file if you don’t have one – be sure to add PHP open and closing tags as well):

    remove_filter( 'wpmu_welcome_user_notification', 'bp_core_disable_welcome_email' );

    2) Please post the avatar bug on BuddyPress Trac:

    https://trac.buddypress.org/newticket

    Login with the same credentials you use on buddypress.org.

    3) WP-reCAPTCHA is not compatible with BuddyPress.

    BuddyPress uses a different registration mechanism.

    You might want to try one of these solutions listed here:

    http://www.bp-tricks.com/tips_and_tricks/stopping-the-sploggers/

    #62430
    Peter Anselmo
    Participant

    On the 2nd, Andy worked on this by trimming all whitespace from newly entered values. You can see the changes here:

    https://trac.buddypress.org/changeset/2547

    I tested this on http://testbp.org/, and yes, it does keep the problem from happening for new members. There are two outstanding issues with this however.

    1. It silently trims the whitespace, so you have no way of knowing that your username is not what you entered. At a minimum, it should send you an updated username with the confirmation email. Only after looking at the site activity, and seeing my username with the space trimmed, did I realize why I wasn’t able to log in.

    2. It doesn’t help any of the existing users with spaces in their names (such as myself on this forum).

    Admittedly, this is a tough problem to solve for existing users, but yes, AFIK, it is still unsolved.

    #62428
    Peter Anselmo
    Participant

    This may or may not be your problem, but Buddypress has some issues with spaces in names. Try clicking on the right of this post to view my profile. It uses my actual name “Peter Anselmo” instead of my username “peter-anselmo”. It won’t work. Fun.

    #62427
    r-a-y
    Keymaster

    Here you go!

    <?php
    //CUSTOM CODE FOR BUDDYPRESS
    //PUT YOUR CODE HERE
    ?>

    What can you put in bp-custom.php?

    Lots of things!

    Check out this codex article:

    https://codex.buddypress.org/how-to-guides/changing-internal-configuration-settings/

    #62426
    Peter Anselmo
    Participant

    Yeah, the command line conversion is a barrier for a lot of people, as they either don’t have command line access, or if they do, gettext is not installed on the server.

    You can find some alternate ways to generate .mo files here:

    https://codex.wordpress.org/Translating_WordPress

    Also, there is no bp-custom.php file by default. You just create it as a new file, and put it directly in the plugins folder. BuddyPress will automatically check there for it.

    Yeah, it’s a bit of work to change strings, but anything simpler would likely not be upgrade-proof, or would be much slower.

Viewing 25 results - 58,551 through 58,575 (of 68,949 total)
Skip to toolbar