Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 31,651 through 31,675 (of 94,539 total)
  • Author
    Search Results
  • #165452
    ravibarnwal
    Participant

    I want to remove member from a group when new user registered.
    I have received group_id and user_id from database. then I want to remove all member from that group without group admin.
    I used function ‘groups_remove_member’ in my own plugin .
    I am new in wordpress and buddypress coding.
    My code is
    if (!function_exists(‘auto_join’)) {
    function update_auto_join_status($user_id) {
    global $wpdb, $bp;

    // get list of groups to auto-join.
    $group_list = $wpdb->get_results(“SELECT * FROM {$bp->groups->table_name} WHERE auto_join = 1”);

    foreach ($group_list as $group_auto_join) {
    $members_count = groups_get_groupmeta( $group_auto_join->id, ‘total_member_count’ );
    if($members_count < 5)
    {
    groups_accept_invite( $user_id, $group_auto_join->id );
    }
    else
    {
    group_auto_join_hidden_group($user_id, $group_auto_join->id);
    }
    }
    $wpdb->query(“UPDATE {$wpdb->users} SET auto_join_complete = 1 WHERE ID = {$user_id}”);
    }

    add_action( ‘user_register’, ‘auto_join’);
    }

    function group_auto_join_hidden_group($user_id, $group_id)
    {

    global $wpdb, $bp;
    $utn = $wpdb->users; // Create a shortcut variable for wordpress users table.
    $gmtn = $bp->groups->table_name . “_members”; // Create a shortcut variable for buddypress groups_members table.

    $mysql = “SELECT user_id FROM $gmtn WHERE group_id=$group_id”;
    $results = $wpdb->get_results( $mysql);
    foreach ( $results as $user) {
    groups_remove_member($user->user_id, $group_id);

    }

    }
    my auto join working well but I am not able to remove member
    Please help me what is wrong?

    darkintruder
    Participant

    @shiftyRZA i saw that u posted the issue here https://buddypress.trac.wordpress.org/ticket/4586#comment:7 again. Thanks! Boone answered and changed the milestone from 1.7 to 1.8. Does that mean, that the BP-Team is looking for the template-loading-delay solution and tries to come up with a fix until 1.8 is released?

    If so, is there any “dirty code” that might fix the problem locally until then? My problem is, that i’m close to releasing a business-site which can’t afford such phenomena in the admin area. So if the BP-Team is working on a fix, i’ll wait with my release until then. If there won’t be a fix in the next months, i’ll have to find other solutions for the features i wanna offer :-S

    Thanks again for your time … Much appreciated!

    marcoarena
    Participant

    Hi all,

    I looked for this topic here and on google but I didn’t find an answer. As the subject states, in my buddypress-based (version 1.7) community, topics/replies of hidden groups are visible to all the users in the “recent replies” (and “recent topics”) widget. Is it a known issue?

    Thanks a lot!

    Marco

    #165443
    Hugo Ashmore
    Participant

    The codex is your friend, always have a quick check there for any docs that may help.

    https://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/

    #165440
    JLent.
    Participant

    Hello,

    I am using the latest versions of WordPress and Buddypress with the default theme and the mobile plugin does not seem to work. None of my content is on there and if I deactivate it my site works but my banner repeats itself any ideas what I can do to get my site formatted for mobile? Thanks in advance.

    #165435
    Asynaptic
    Participant

    https://codex.buddypress.org/user/setting-up-a-new-installation/installing-group-and-sitewide-forums/

    a theme is a completely different thing than bbpress or buddypress. the theme gives the ‘look’ the bbpress and/or buddypress plugins give the functionality

    #165434
    Biggerplay
    Participant

    Uh? I just read about a 100 articles about how you can have forums from bbPress and group forums, the 2 themes that I’m trying to choose between mentions both…

    Theme1

    Theme2

    Is that what they do? they have installed bbPress separately ? What are the latest guides for achieving this?

    #165431
    modemlooper
    Moderator

    BuddyPress no longer bundles bbPress therefore has no forums. You can install bbPress separately. There is a setting in bbPress to have a forum for each BuddyPress group.

    #165430
    aces
    Participant
    #165429
    Ermejo
    Participant

    Hi there
    I get this Warning on the top of my site

    Warning: strstr() [function.strstr]: Empty delimiter in /home/mz2h/public_html/lezionidichitarramoderna.com/membri/wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 864

    does anyone know how to fix that?

    #165426
    Kingrammer
    Participant

    Hello all,

    I am building a multisite, with subdomains for the regional variations.

    I would like to display a page, which in addition to the text and images the page will have, it also calls and prints a users details on that page.

    This is a fairly new site, so it would be easy for me to make sure that the author for each page is the same user that I want to have the buddypress profile printed for.

    I really hope this is an easy one – what do I type in the page to pull up a specific users details? I have read alot! I really have and cannot find any bit of copy / pastable code that does this.

    The result i am trying to achieve is that I have a page which I have designed, which displays this fields as well, on the right. A registered user can update their variable details often, and this will update part of the page.

    Thank you very much ,

    #165425
    junithorn
    Participant

    Hello, I am the dev for http://www.thesojo.net and we have started integrating Buddypress into the site.

    I’ve been designing the profile/activity etc pages and noticed that the widgets in the footer that normally show up do not show, nor do the social media icons in the header that should be next to the search bar. Here is my activity stream and profile for reference.

    http://www.thesojo.net/members/jesse/profile/

    http://www.thesojo.net/members/jesse/activity/

    Any help would be greatly appreciated.

    #165424
    millo
    Participant

    Thank you,
    my version of buddypress is 1.7.1.
    The code “<?php wp_head(); ?> just before closing</head> in header.php file” Is correct.
    On header refer me to the title of the page. The authors of the theme United Themes have responded the following:

    “Hi,

    the plugin is “breaking” the layout because its using different content tags. I’m pretty sure you can easily add different content tags to buddy press itself with the use of hooks ( or an alternative file inside the theme root). Also have To look at lambda/metaboxes/lambda.It put.spec.php this is the place where you can add the sidebar management to the buddy press management ( enter the slug of buddypress to the support list of featured header and Put signpost ). These Plough only hints, you may need to tune some files in order to get it 100% compatible.

    Best
    Regards UT”

    But do not understand very well the reasoning.
    Now my main problem is the resize of the images . It does not work.

    A greeting

    #165421
    Biggerplay
    Participant

    I’m in the planning stages for a business forum/social network.

    Obviously I’ve already googled what I’m about to ask about, but couldn’t really find the kind of information I need.

    1) As I understand it, Buddypress comes with a basic form of bbPress installed? so with BuddyPress you get a social network plus a basic forum? ok so first question is, what’s the main difference between that basic forum and the forum you get with bbPress?

    2) Can you just upgrade the basic forum you get with BuddyPress to the more advanced bbPress one?

    3) BuddyPress has group forums? and bbPress has site wide forums? but essentially what does that boil down to in practical terms?

    4) What can you not do in bbPress that you can in BuddyPress?

    I’m not really seeing the need for bbPress, as BuddyPress seems to do everything bbPress does but more.

    Thanks for any help.

    #165418

    Topic: SignUp Error

    in group forum Installing BuddyPress
    Shuji Suzuki
    Participant

    Hi!
    I’ve ran into a minor problem on a clean buddypress install.

    This is how my Editing Profile Groups Fields looks like:
    http://i.imgur.com/9hE0Rjl.png

    How can i solve this?

    #165415
    modemlooper
    Moderator

    read this: https://buddypress.org/support/topic/extending-activity-how-to-store-additional-info/

    it may help you understand how to add meta to activity

    #165414

    Topic: Display Issues

    in group forum Installing BuddyPress
    bkypes
    Participant

    Hey guys,

    I just downloaded BuddyPress a few days ago and I’ve been having a pretty hard time trying to configure everything. Right now all of my pages are showing double: like this https://zoxstraps.com/discussion/.

    I’ve installed bbPress but I’ve also been having issues with that where the links on my toolbar are not being created so I have no way to edit anything.

    I’m currently on WordPress 3.5 and BuddyPress 1.7.2.

    Any help that you could give would be greatly appreciated!

    Thanks,
    Brandon

    modemlooper
    Moderator

    $user_id = get this from WordPress;
    xprofile_get_field_data( $field, $user_id );

    The way you are getting members id is only good on member pages. If you are on a blog post you can get the author id, if you want logged in user id get that.

    #165407

    In reply to: BuddyPress Scalability

    Hugo Ashmore
    Participant

    are you sure? 300,000 that is one heck of a lot of groups not sure that I can think of any circumstance where one could ever need that many or how one would ever find anything – might help describing how this works on the site – as for scaling really not sure but I would be expecting it to start slowing things down somewhat.

    #165404
    MarieTarget
    Participant

    How can we find out the scalability of BuddyPress? We have a single WP/BP site that has currently over 300000 BP groups and sub-groups (BP Group Hierarchy) and it is expected to grow to possibly 4 times this number. It is already showing signs of strain (it’s very slow) and I fear we might have taken the wrong approach. Any insight on this matter would be greatly appreciated.

    #165403
    Henry
    Member

    Once you’ve confirmed it is a bug/security issue, you can raise a ticket at BuddyPress Trac. The development team will then take a look.

    https://buddypress.trac.wordpress.org/

    #165400
    Michael
    Participant

    Hey Folks;

    Just bumping this back to the top. If anyone could assist, it would be help greatly. I’m bashing my head against he wall at this point. I could even give ftp access to the dev space and specifics if someone wanted to take a look – just really need to figure out what is going on post upgrade here.

    I created a page in the /blog path and now it goes to that page which is empty. There is no place to assign /blog to a page like there are in other buddypress instances. Perhaps since it’s a stock WordPress blog…. I’m grasping at straws pretty bad here.

    Any help is appreciated.

    Thanks;
    Michael

    #165393
    bedhead1971
    Participant

    Thanks Matt,

    I’m not a complete novice but just being a bit thick about how to apply the template like the old one.

    I had it reasonably done until upgrading and now the old templates are not there it seems to take them from your installed theme template instead.

    Anybody else have any ideas where to point?

    chriswinch
    Participant

    Hey,
    I have managed to get my custom user fields / xprofile fields to show but only when im on the profile page. I tried the groups page but they don’t seem to be showing.

    What im trying to do is pull the xprofile fields into the header so that they show site wide.
    Is this possible?

    The code im using is:
    bp-custom.php

    
    <?php 
    function custom_xprofile( $field ) {
    echo bp_custom_get_member_list_xprofile_data( $field );
    }
    
    function bp_custom_get_member_list_xprofile_data( $field ) {
    global $site_members_template;
    return xprofile_get_field_data( $field, $site_members_template->member->id );
    }
    ?>
    

    Template

    
    <?php custom_xprofile('First Name') ?>
    

    I found the above code on this forum, but dont remember what post i found it in.
    Any help would be appreciated.

Viewing 25 results - 31,651 through 31,675 (of 94,539 total)
Skip to toolbar