Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 54,426 through 54,450 (of 69,016 total)
  • Author
    Search Results
  • #73853
    kriskl
    Participant

    thanks rich for reply,

    well I was as admin a member of 61 groups/forums

    but only 21 showed up,

    for some strange reason which is investigated, we had to disable the plugin completely, something kept crashing the site :(

    and forum index is a suspect :(

    if that was a case, you may hear from my developers on the forums ;) as they are trying to figure it out

    #73851
    Ron Rennick
    Participant

    Folks,

    The issue here with 3.0 is that if an existing WP 2.9.2 install with uploaded media upgrades to 3.0 and enables the network the blog option for the upload_path can’t be changed to the blogs.dir folder because the existing media becomes inaccessible.

    For now, if you are looking to go to multiple blogs after install, then you should install MU 2.9.2 and upgrade that to 3.0 instead of installing WP 2..9.2.

    #73847
    Gianfranco
    Participant

    I tried this, doesn’t print anything neaither:

    <ul id="user-menu">
    <li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>

    <?php function my_bp_adminbar_notifications_menu() {
    global $bp;

    if ( !is_user_logged_in() )
    return false;

    echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
    _e( 'Notifications', 'buddypress' );

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    <span><?php echo count($notifications) ?></span>
    <?php
    }

    echo '</a>';
    echo '<ul>';

    if ( $notifications ) { ?>
    <?php $counter = 0; ?>
    <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
    <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    <?php $counter++; ?>
    <?php } ?>
    <?php } else { ?>
    <li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
    <?php
    }

    echo '</ul>';
    echo '</li>';
    }
    ?>

    <?php if( function_exists('my_bp_adminbar_notifications_menu') ) my_bp_adminbar_notifications_menu(); ?>

    </ul>

    Is anything in there correct?

    #73846
    emiline220
    Member

    I have this same question but that thread is about something that’s a lot more complicated than I want. Basically I have a WP site that has a large community. I want to add separate subdomain that has it’s own WP install with buddypress and I want people to be able to log into both sites with the same info.

    At the top of that thread someone said just to assign custom user and user_meta tables. I’ve already tried that and when I try to log into the subdomain with a root site username, I get a message that says “Cheatin’ eh?” or “You don’t have permission to do that.” So what am I doing wrong? Does the subdomain need to be WPMU instead of regular WP?

    #73841
    3sixty
    Participant

    I think rich is a little busy right now. I’ll try turning this into a plugin now. Wish me luck.

    #73840
    lsddesign
    Participant

    When will this be available for normal WP installs :)?

    Cheers,

    Aron

    #73839
    Jeff Sayre
    Participant

    Read this thread and visit the single link in it:

    https://buddypress.org/forums/topic/where-is-my-forum

    #73838
    lsddesign
    Participant

    Looks awesome man! For sure we’re gonna use this when it comes out!

    Can’t wait!

    Cheers,

    Aron

    PS: if you need any design help, contact me @ aron@zipyourmix.com ;)

    #73834
    Gianfranco
    Participant

    @r-a-y I tried this:

    <?php function my_bp_adminbar_notifications_menu() {
    global $bp;

    if ( !is_user_logged_in() )
    return false;

    echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
    _e( 'Notifications', 'buddypress' );

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    <span><?php echo count($notifications) ?></span>
    <?php
    }

    echo '</a>';
    echo '<ul>';

    if ( $notifications ) { ?>
    <?php $counter = 0; ?>
    <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
    <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    <?php $counter++; ?>
    <?php } ?>
    <?php } else { ?>
    <li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
    <?php
    }

    echo '</ul>';
    echo '</li>';
    }
    ?>

    Which is the same funtion except for the name “my_bp_adminbar_notifications_menu”.

    It doesn’t print anything.

    Probably something with the “bp_core_get_notifications_for_user” that is desabled because of my desabling the default Admin bar?

    I admit that I php is not my strong point at all.

    #73831
    Archie Webmaker
    Participant

    Can anyone help me out to edit the profile setting page in Buddypress1.2.3

    #73827
    MrMaz
    Participant
    #73824
    agrundner
    Member

    @MrMaz Go for it. Release 0.4 with Group Links (not sure what re-links are). As for the group activity stream integration… I think we all can wait until it’s ready.

    FYI, I’d be happy to test the plugin you’ve got on my non-public development site.

    #73823
    Gianfranco
    Participant

    I’ve put the function right in the ul, like so:

    <ul id="user-menu">

    <li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
    <li>| <a id="logout" href="<?php echo wp_logout_url( get_option('home') ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></li>

    <?php bp_adminbar_notifications_menu(); ?>

    </ul>

    …to see waht it produces. It just breaks my layout. The whole ul disapeears and the layout after that is broken.

    In Firebug I can see this error: Call to undefined function bp_adminbar_notifications_menu()

    Mmm… I got BP Template Pack installed, if that makes it a hint of any kind.

    #73822
    modemlooper
    Moderator
    #73821
    Paul Wong-Gibbs
    Keymaster

    (d) And when you come across a technical issue you can’t resolve, chat up a sexy BuddyPress developer on #buddypress-dev on irc.freenode.

    #73816
    Jeff Sayre
    Participant

    @heini-

    Your basic idea is correct. The issue is the order in which each action function hooked to the bp_setup_nav action event is being triggered. Let’s look at the code you have in bp-custom.php.

    <php
    function my_groups_setup_nav() {
    [the whole function code]
    }
    remove_action('bp_setup_nav', 'groups_setup_nav');
    add_action( 'bp_setup_nav', 'my_groups_setup_nav' );
    ?>

    This fails because your custom code in bp-custom.php is executed before the code in bp-groups.php is executed. So, you are calling to remove an action that has not yet be registered by WordPress.

    I’m almost finished with an article about the intricacies of WordPress’ action and filter functions, but here is a brief explanation to try to shed some light on the issue.

    Each action and filter event when triggered by a do_action or apply_filters call sends execution to the appropriate do_action or apply_filters function in /wp-includes/plugin.php. These functions do several things, one of which is querying a very large array that contains all of the added filter functions and action functions. This array gets populated by the actions of the add_filter and add_action calls.

    To avoid getting too long winded, as each file gets loaded, any and all add_action and add_filter calls that are directly executable at the time, get triggered which builds this big array. This array is then used by the do_action and apply_filters functions to determine the sequence in which each added action of filter will be executed.

    You can read my article when it is ready for a much longer but clearer explanation.

    With that briefly described, the piece of information that applies to your situation is that when the action event for bp_setup_nav is triggered, via the do_action( ‘bp_setup_nav’ ) call on line 2025 in bp-core.php, the do_action function starts processing each action function that was “added” to it in the order in which it was added (with an important exception). This means that for your custom function my_groups_setup_nav to work, it must remove the action function in the array discussed above so that when the bp_setup_nav action event is triggered it uses your action function instead of the one added by the add_action(‘bp_setup_nav’, ‘groups_setup_nav’) call.

    So, what you need to do is trigger your remove and add action calls in the proper sequence–after the action function that creates the groups navigation menus has been added to the filter array but before the bp_setup_nav action event is triggered. I realize this may be hard to understand.

    This is what you need to do instead:

    <?php function my_groups_setup_nav() {

    /* Remove the added action from the array of functions that get run
    * when the action event for bp_setup_nav is triggered
    */
    remove_action('bp_setup_nav', 'groups_setup_nav');

    // Then replace the removed function with your custom content
    [the whole function code]

    }
    add_action( 'plugins_loaded', 'my_groups_setup_nav' );
    ?>

    A final bit of clarification. This is what happens in your current custom function:

    1. As soon as BuddyPress is initialized, it looks to see if bp-custom.php exists. If it does, it loads it.

    2. This will cause your remove_action call to be fired.

    3. But the corresponding action has not yet been added to the very large filter array since bp-groups.php has not yet been loaded.

    4. So, nothing happens as there is nothing to remove.

    5. bp-groups.php eventually gets loaded and at that point the add_action(‘bp_setup_nav’, ‘groups_setup_nav’) call is fired, resulting in the action function that you were trying to remove getting added to the filter array but after the fact.

    6. Eventually the bp_setup_nav action event is triggered.

    7. When that happens, the first function hooked to it (added to it) is your custom function. It now gets triggered.

    8. All other action functions hooked to the bp_setup_nav action event get triggered one by one including the groups_setup_nav function–the one you had tried to remove in step 2.

    9. You have a mess with two duplicate functions doing the same thing.

    #73814
    5986155
    Inactive

    no probs thanks! :o)

    #73813
    MrMaz
    Participant

    @warzan

    put this in wp-config.php

    define( ‘BP_LINKS_SLUG’, ‘yourslug’ );

    A warning. If you already have activity in the activity stream for links, they will have the old slug.

    #73812
    5986155
    Inactive

    Hi MrMAz

    Ive upgraded – how do you change the component slug?

    Cheers!

    #73810
    modemlooper
    Moderator

    %%forumtopictitle%% still does not work right.

    #73809
    rich! @ etiviti
    Participant
    #73806
    Boone Gorges
    Keymaster

    BuddyPress is still young and so it doesn’t have the same kind of rich development guides as the much more mature (and widely-used) WordPress.

    Since BP is a WP plugin, the basics of BP plugin development are the same as they are for WP. The system of hooks and filters is exactly the same (though of course the hooks themselves are different).

    At this point in the BP project, I’ve found that the best ways to get started with plugin development are (a) to find existing BP plugins that do something similar to what you’re trying to do, and to learn by dissecting them; (b) to look through official resources like the ones Jeff posted above; and (c) to search through BP codebase itself, where I think you’ll find that many of the functions you need are quite well documented.

    #73805
    ajohnson
    Member

    I am running it off a sub-folder in WP 3.0. I have been for a long time but the most recent upgrade broke my avatars. It looks as if the image uploads correctly for me, but doesn’t pull it in to crop. The path it try’s is:

    http://www.website.com/sub-folder-blog/blogs.dir/2/files/avatars/1/avatar.jpg

    when it should be

    http://www.website.com/wp-content/blogs.dir/2/files/avatars/1/avatar.jpg

    Any ideas on what I should try to change? I’ve already tried:

    if ( !$path = get_option( 'upload_path' ) )

    $path = WP_CONTENT_DIR . '/blogs.dir';

    else

    $path = ABSPATH . $path;

    Thanks!

    #73804
    Tmort
    Participant

    Well I just tested that out, and it didn’t work. Its like theres a database entry exclusive to buddypress that says “You live at domain.com/folder”. I’m not sure where or why.

    I’d like to ask the community: Does buddypress interact well with wordpress’ feature where the core files live in a folder of your domain? Maybe that is my issue?

    Thanks for the help!

    #73803
    Boone Gorges
    Keymaster

    It’s probably best to take a multi-faceted approach.

    Instead of changing the way that content appears on the way out (by the time you call the global $activities_template, the content is already written in the db), you might consider manipulating it on the way in. Less overhead that way. For group related stuff like forum posts, open up bp-groups.php and search for uses of the function groups_record_activity. You’ll notice that the arguments for this function are almost always filtered. For instance, in the function groups_new_group_forum_post, you can modify the way that the activity action is displayed – you might do something like this in your theme’s functions.php:

    function my_format_activity_action($activity_action, $post_id, $post_text, &$topic) {
    $action = $post_text->topic_poster_name . " said:";
    return $action;
    }
    add_filter( 'groups_activity_new_forum_topic_action', 'my_format_activity_action', 1, 4 );

    That’s a lot easier than after-the-fact string manipulation, both for you as a developer and for the system that has to do the processing. Fish around in the files for other places where apply_filters appears – you can build functions like the one I lay out above for any filtered output.

    As far as moving things around and putting them in different orders, you’ll definitely want to look at the activity/entry.php template file. That’s where all the markup appears, so any changes (like ordering and appearance) should happen there and in CSS.

    And if you just want to change the wording here and there, you might also consider using language files (https://codex.buddypress.org/how-to-guides/customizing-labels-messages-and-urls/). It’s a relatively future-proof way to do customization.

Viewing 25 results - 54,426 through 54,450 (of 69,016 total)
Skip to toolbar