Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 51,626 through 51,650 (of 94,559 total)
  • Author
    Search Results
  • Philipp
    Participant

    Hi Paul!
    Thanks, but the code isn’t working. If I use the code above as a plugin I’m able to use all WP Tables from both installations. So e.g. I have access from both pages on the same articles,…
    But with the BP tables nothing happens. Maybe there is another way I could go to reach my goal. Some ideas?! :)

    #123682
    justbishop
    Member

    @adamx8, would love to know what your fix was!

    #123681
    Paul Wong-Gibbs
    Keymaster

    How many records do you have in your bp_user_blogs database table? Do they correspond with what you see on your website? Do any records look malformed?

    Paul Wong-Gibbs
    Keymaster

    I’m not sure it’s possible. It’d be more than just, for example, the main activity table. You’d have to pick up the meta tables, too, and figure out how to deal with conflicts when one site tries to update meta (or any other setting) from another site.

    #123679
    SilverP
    Member

    “Did you add any functions in theme’s functions.php or excluded some blogs in the directory listing Network Admin > Sites with that plugin?”

    No, no functions added, no blogs excluded. I’ve deactived the Blogs Directory plugin, enabled the site tracking component of BP.

    I also tried pasting the line
    bp_blogs_record_existing_blogs();
    into functions.php. No joy. Deactivating and re-activating the BuddyPress plugin sitewide with that line in functions.php also did not fix the problem.

    Any suggestions?

    Philipp
    Participant

    I would like to add the following:

    function table_prefix_switch() {
    global $wpdb;
    $options = $wpdb->options; //Save the site 2 options table
    $wpdb->set_prefix(‘wp_’); //The prefix to site 1
    $wpdb->options = $options; //Put the options table back
    }

    add_action(‘init’, ‘table_prefix_switch’);

    Maybe this could help me to hack it a little bit?!

    UPDATE: It’s just using the tables of WordPress – Not of Buddypress! Why?! :(

    leethompson
    Member

    This is a great post but what about moving sub links to a new parent item, this kinda works but if I remove the parent item the function stops. in my themes functions.php

    `function remove_blogs_nav() {
    bp_core_remove_nav_item( ‘privacy’ );
    bp_core_remove_nav_item( ‘settings’ );
    bp_core_remove_nav_item( ‘invite-anyone’ );
    }
    add_action( ‘bp_setup_nav’, ‘remove_blogs_nav’, 15 );

    function bp_add_create_group_subnav() {
    global $bp;
    $groups_link = ‘/groups-2/’;
    $settings_link = $bp->loggedin_user->domain ;

    /* Add the subnav items to the groups nav item */
    if (function_exists(‘bp_core_new_subnav_item’)) {
    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Create Clan’, ‘buddypress’ ),
    ‘slug’ => ‘create’,
    ‘parent_url’ => $groups_link,
    ‘parent_slug’ => $bp->groups->slug,
    ‘screen_function’ => ‘groups_screen_group_home’,
    ‘position’ => 40,
    ‘item_css_id’ => ‘home’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Settings’, ‘buddypress’ ),
    ‘slug’ => ‘settings’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘profile-settings’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘profile-settings’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Privacy’, ‘buddypress’ ),
    ‘slug’ => ‘privacy’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘profile-privacy’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘profile-privacy’ ) );

    }
    }
    add_action(‘bp_setup_nav’, ‘bp_add_create_group_subnav’);
    `
    If I comment out :
    `// bp_core_remove_nav_item( ‘privacy’ );
    // bp_core_remove_nav_item( ‘settings’ );`

    The sub links are in the Profile item, and functional, but still link to each original man item.

    thanks Boone you are a lot of help

    Philipp
    Participant

    Hi @ all!
    I’m going to get very frustrated soon, thats why I’m searching for some help here! :)

    I do have a Buddypress installation on WP Multisite basis. This a community for young Germans, who do a social year abroad. Now we’re going to plan a new “Alumni-Community” for our former volunteers. For that we want to use another WP-Single installation – of cause – with Buddypress. What we want is that the useres are able to login into both sites with just one username and password. So I found this solution:

    define(‘CUSTOM_USER_TABLE’, ‘wp_users’);
    define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);

    I put this into the wp-config.php of the new installation and it works perfectly. Now I’m able to login into both sites, because it shares the user tables of WordPress. But we have to go further: It should also use the same XPROFILE table, because the user registers for his social service e.g. with “In which country: Albania; How long: 12 Months; …” – and the Alumni-Community should use the same information from the same table. E.g. “Was in: Albania; For: 12 Moths;” …

    So is there a way to tell Buddypress to use a table with another prefix in the same database?! Something like:

    define(‘CUSTOM_BP_XPROFILE_DATA_TABLE’, ‘wp_bp_xprofile_data’);

    If this is possible, the two communities could be synchron in users, user xprofile data, messages,… Right?!

    I really, really hope that someone is able to help me. I’m going to get crazy with that! ;)

    Best and thanks!

    Philipp

    #25468
    leethompson
    Member

    Hello Everyone,
    I am trying to move some links around from the main Nav to the sub nav ie:
    sub of Profile
    Privacy
    Settings

    Sub of MyGroups
    Create

    I have added the following code to my themes function.php and it moves the links as I want, but the first part bp_core_remove_nav_item seems to disable the page load.

    `function boone_remove_blogs_nav() {
    bp_core_remove_nav_item( ‘privacy’ );
    bp_core_remove_nav_item( ‘settings’ );
    bp_core_remove_nav_item( ‘invite-anyone’ );
    }
    add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 );

    function bp_add_create_group_subnav() {
    global $bp;
    $groups_link = ‘/groups-2/’;
    $settings_link = $bp->loggedin_user->domain ;

    /* Add the subnav items to the groups nav item */
    if (function_exists(‘bp_core_new_subnav_item’)) {
    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Create Clan’, ‘buddypress’ ),
    ‘slug’ => ‘create’,
    ‘parent_url’ => $groups_link,
    ‘parent_slug’ => $bp->groups->slug,
    ‘screen_function’ => ‘groups_screen_group_home’,
    ‘position’ => 40,
    ‘item_css_id’ => ‘home’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Settings’, ‘buddypress’ ),
    ‘slug’ => ‘settings’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘xprofile_screen_edit_profile_mmc’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘home’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Privacy’, ‘buddypress’ ),
    ‘slug’ => ‘privacy’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘xprofile_screen_edit_profile_mmc’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘home’ ) );

    }
    }
    add_action(‘groups_setup_nav’, ‘bp_add_create_group_subnav’);
    `
    I was wondering what I am doing wrong?

    thanks in advance.

    tim-watt
    Member

    On my multiuser site Streams etc. are there but I’m getting all sorts of errors due to links pointing to incorrect pages.

    My site is at retrofitdiairies.org

    For instance a buddypress profile points to http://user.retrofitdiaries.org/members/user/

    Instead of as it should be: http://retrofitdiaries.org/members/user/

    What can explain this? Was all working fine prior to upgrade to 1.5

    Thanks

    #123662
    pcwriter
    Participant

    @fanoop

    Are you the group admin? If so, the button is not displayed.

    #123660
    crazplain
    Member

    @mcarrano Hi Mcarrano I think you might have the answer to my question. If I were to create and additional table called post_type in wp_bp_activity and only use value 1 and 2 do you think this is the location where all activity posts gets updated?

    sjohnson0424
    Member

    @n0ise This could be perfect for a site I’m working on, have you made any progress with it?

    #25461
    leethompson
    Member

    Hello all,
    This question is strange but how do I move links from the main nav to the sub nav under a specific parent_slug. i have tried this and it works kinda, except when i remove the links the function stops. In my themes functions.php i added:

    `function boone_remove_blogs_nav() {
    bp_core_remove_nav_item( ‘privacy’ );
    bp_core_remove_nav_item( ‘settings’ );
    bp_core_remove_nav_item( ‘invite-anyone’ );
    }
    add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 );

    function bp_add_create_group_subnav() {
    global $bp;
    $groups_link = ‘/groups-2/’;
    $settings_link = $bp->loggedin_user->domain ;

    /* Add the subnav items to the groups nav item */
    if (function_exists(‘bp_core_new_subnav_item’)) {
    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Create Clan’, ‘buddypress’ ),
    ‘slug’ => ‘create’,
    ‘parent_url’ => $groups_link,
    ‘parent_slug’ => $bp->groups->slug,
    ‘screen_function’ => ‘groups_screen_group_home’,
    ‘position’ => 40,
    ‘item_css_id’ => ‘home’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Settings’, ‘buddypress’ ),
    ‘slug’ => ‘settings’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘xprofile_screen_edit_profile_mmc’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘home’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Privacy’, ‘buddypress’ ),
    ‘slug’ => ‘privacy’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘xprofile_screen_edit_profile_mmc’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘home’ ) );

    }
    }
    add_action(‘groups_setup_nav’, ‘bp_add_create_group_subnav’);
    `

    I would like to create my links like this:

    Main
    Send Invites

    sub of Profile
    Privacy
    Settings

    Sub of MyGroups
    Create a group

    Boone Gorges
    Keymaster

    Sounds like you may have the activity component disabled. Check at Dashboard > BuddyPress > Components.

    kyradk
    Member

    My client “accidentally” upgraded a buddypress pack about a month ago. I posted it on the forums here and someone responded telling me to delete that file. Unfortunately, when I try to look up that post here I can’t find it. When I click the link to see my activity/posts it takes me to a page not found error.

    Sooo. That did the trick. Before I deleted that folder the entire site was broken and deleting it fixed it. However, something that we missed is that NOW when you go to the activity section of the community on the site we get this error:

    Fatal error: Call to undefined function bp_is_single_activity() in /home/kerilyn/marriedtoachef.com/wp-content/plugins/bp-moderation/classes/bpModFrontend.php on line 65

    Here’s a link: http://www.marriedtoachef.com/activity/ though I’m not sure you can see it if you’re not logged in as a user.

    Can someone please help me with this issue? Thank you so much!

    1. Which version of WordPress are you running? 3.1.3
    2. Did you install WordPress as a directory or subdomain install? In root directory
    3. If a directory install, is it in root or in a subdirectory? “
    4. Did you upgrade from a previous version of WordPress? If so, from which version? No
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
    6. Which version of BP are you running? How do I find this info??
    7. Did you upgraded from a previous version of BP? If so, from which version? No
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? Yes, many: AddToAny: Share/Bookmark/Email Buttons, Advanced Most Recent Posts Mod, AVH First Defense Against Spam, Block Bad Queries (BBQ), Buddypress Humanity, BuddyPress Moderation, BuddyPress Private Community, Buddypress Sidebar, CommentLuv, CommentLuv, Erocks Dashboard Lockdown, FD Feedburner Plugin, Feedburner Email Widget, FeedBurner FeedSmith, Feed Stats for WordPress, Google Analytics for WordPress *these were already installed when the site was working fine before the accidentally update and subsequent folder deletion
    9. Are you using the standard BuddyPress themes or customized themes? Customized
    10. Have you modified the core files in any way?
    11. Do you have any custom functions in bp-custom.php?
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    13. Please provide a list of any errors in your server’s log files.
    14. Which company provides your hosting? Dreamhost
    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Not positive but I think Linux

    #123651
    subigya
    Participant

    I have a WP multisite installation http://www.somemultisite.com and I want a buddypress installation in one of the subsite http://www.somesubsitewithbuddypress.com. So i installed the plugin, network activated and installed the theme and all.. and all is good, the problem is that buddy press changed my admin-bar throughout the multisite instead of just for the sub-site.

    Anybody familiar with this issue? I don’t want to have the subsitewithbuddypress.com to have anything to do with the primary somemultisite.com . No interference.

    I have these on the code:
    define ( ‘BP_ROOT_BLOG’, 7 ) ;
    define ( ‘BP_DISABLE_ADMIN_BAR’, true ); /* Turning this on/off only enabled or disabled the buddy press admin bar.

    So my question is where goes my main admin bar? Also, can i have this BP admin enabled only for the subsite with buddypress?

    #123650
    @mercime
    Participant

    @inhouse as @boonebgorges noted above, what I posted was essentially the same thing, and I learned it all from @boonebgorges and other BuddyPress Devs :-)

    10-4 @boonebgorges will tackle the update of relevant pages in BP Codex by this weekend latest :-)

    #123647
    Boone Gorges
    Keymaster

    > I wish Codex was written more in depth

    The Codex is written and maintained by volunteers. As @mercime was so kind as to jump in and explain what’s up, maybe you could be so kind as to edit the relevant page :)

    Also, some of these issues have been in flux through the end of the 1.5 dev cycle. In any case, what @mercime wrote is essentially the same thing that I wrote – you must have been writing the paths wrong.

    Thanks for your patience!

    #123645
    InHouse
    Member

    Wow, that is a far cry from what was posted in the Codex and what @boonebgorges posted. I still don’t understand why or how this works, but it works! Again, I wish Codex was written more in depth so new people can actually learn it. Thanks so much for your help @mercime. I appreciate it.

    #123642
    InHouse
    Member

    Thanks @mercime, I’ve already been staring at that page for over an hour. I can’t figure out what I’m doing wrong. I’ve tried every variation of the code I can think to try. Seneca County is the name of my custom child theme. What am I missing? The Codex doesn’t really explain how to modify the example. If you’ve never done it before, I don’t know how you’d look at the example and just figure it out. Please help :)

    `if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {
    wp_enqueue_style( ‘seneca-county’, get_template_directory_uri() . ‘/themes/seneca-county/style.css’ );
    }
    endif;`

    `if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {
    wp_enqueue_style( ‘my-stylesheet’, WP_CONTENT_URL . ‘/themes/my-theme/style.css’ );
    }
    endif;`

    #123640
    @mercime
    Participant
    r-a-y
    Keymaster

    Sounds like a good candidate for an enhancement ticket.

    Please create a new ticket here:
    https://buddypress.trac.wordpress.org/newticket

    Login with the same credentials you use here on bp.org.

    #123638
    @mercime
    Participant

    This could also be an issue with the Blogs Directory plugin which a friend installed. Did you add any functions in theme’s functions.php or excluded some blogs in the directory listing Network Admin > Sites with that plugin?

    #123637
    @mercime
    Participant

    @loudrake I saw this happen once or twice with a WP theme which had “ in footer.php instead of within index.php, single.php, etc. If I recall well, the solution was to create a blank sidebar-buddypress.php file and upload to that WP theme folder.

Viewing 25 results - 51,626 through 51,650 (of 94,559 total)
Skip to toolbar