Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 7,801 through 7,825 (of 69,044 total)
  • Author
    Search Results
  • Henry Wright
    Moderator

    You can add items to the activity stream using bp_activity_add().

    See here https://codex.buddypress.org/developer/function-examples/bp_activity_add/

    #267596

    As far as I know, there’s no way to do that with BuddyPress’ built-in tools.

    However, it is possible with plugins such as the one you identified.

    I had a similar requirement and ended up doing it by utilising BP’s Member Types functionality (which require a plugin or custom code to set up), a plugin called BuddyPress Xprofile Member Type Field to map that to an xprofile field (so that the user can change it herself… it was the easiest way I found to add that to the user’s profile, although there might be a better way), all tied together with custom code to patch in to the xprofile_updated_profile action to check what the change is and then use the groups_accept_invite() and groups_remove_member() functions to change the membership accordingly.

    I know that’s not very detailed, but due to lots of other functionality, such as adding to email lists, my code ended up being quite complex, so it’s not possible to paste it here.

    Hope that helps

    #267591
    khappamj
    Participant

    Hi man , the Buddypress version i use is 2.9.0 and this problem is about every images. Its working but the cropping image tool is very very small, just 1×1 or 2×2 pixels, so its unusable for users.
    I dont think the issue is about images,
    so what can i do?

    #267587
    r-a-y
    Keymaster

    What version of BuddyPress are you using?

    Can you upload the avatar that you wanted to use somewhere so we can test?

    Henry Wright
    Moderator

    Hi @gyrus

    You can de-queue BuddyPress styles like @r-a-y suggested in that thread (see #202777). This won’t break anything functionality wise although, of course, it will change your theme’s look and feel because all of the styling information will be gone.

    #267534
    webizone
    Participant

    Hi, I realize this is an old thread. However, I thought of posting my solution, just in case someone finds it helpful. (tried posting it three times.., it just disappears from here)

    Solution:

    1. Copy the the contents of the bp-templates/bp-legacy/buddypress/members/register.php into the new registration page template

    2. At this point, the registration form will show up, but nothing will happen when we submit the form.

    3. To solve that, we need to add a custom function to the “bp_screen” hook. In the custom function, we will paste the contents of the “bp_core_screen_signup” function. (located in bp-members/bp-members-screens.php)

    4. Then, in our custom function, we will remove this

    if ( ! bp_is_current_component( 'register' ) || bp_current_action() )
    
    		return;

    and put this

    if ( !is_page( 'your-page-slug' ) || bp_current_action() )
            
            return;

    5. Next, we’ll remove these lines
    bp_core_load_template( apply_filters( 'bp_core_template_register', array( 'register', 'registration/register' ) ) );
    It will work now.
    Here is the pastebin of the custom function created in bp-custom.php

    #267527
    Henry Wright
    Moderator

    Hi @franckw

    This is a question you should ask WC Vendor Pro. BuddyPress doesn’t handle reviewing.

    r-a-y
    Keymaster

    bbPress handles its integration into BuddyPress, not the other way around.

    You should look into what it would take in bbPress to alter the slugs for BuddyPress groups. I don’t believe this is possible at the moment from what I remember though.

    You might want to check out the bbPress forums as well:
    https://bbpress.org/forums/

    #267515
    Henry Wright
    Moderator

    Hey @udarmo

    Thanks for the report. Can you open a Trac ticket for this so it can be investigated?

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

    ygagnon2016
    Participant

    I like your idea about calling a function from the php for the modal window.

    Just FYI .. this is what I have set up for colorbox (which isn’t a real ajax call, you’ll see):

    echo '<a class="ajax cboxElement launch-dashboard" href="' . get_stylesheet_directory_uri() . '/buddypress/members/single/dashboard.php?username=' . $row->username . '" title="Dashboard">Launch Dashboard</a>';

    If you aren’t familiar with how colorbox works … note that the modal window is being enabled by simply adding the “ajax” class to the link … similar to how a lightbox popup works.

    Ideally .. it’d be great if I didn’t have to call these 2 lines in my dashboard.php file either:

    require("../../../../../../wp-blog-header.php");
    require('../../../../../../wp-load.php'); 

    It’s my understanding that this is a terrible approach anyways .. since the WordPress engine is supposed to be already loaded in the background (making it redundant).

    So how would I implement something like what you’ve suggested? Could you show me an example, maybe? I’m assuming that if I don’t load the WordPress engine in my dashboard.php file, that I wouldn’t be able to call a function that’s been added to my functions.php file, right?

    Here’s a dumb question. Should I maybe just place my dashboard.php file in a different location within my child theme directory structure, perhaps? I ask because I’m starting to think that I might need to treat this as a normal WordPress template file .. instead of a standalone PHP script. Any thoughts?

    vgvidscom
    Participant

    Dear R-A-Y,

    Thank you for the support, appreciate it, and sorry I did not check google myself to find out you need to create bp-custom.php in case it does not exist yet.

    It seems there is a conflict with my theme after extra review of my theme builders’ team.

    Once they update the theme it hopefully works with the updated wordpress and buddypress. If I need your help afterwards, I will send a new request.

    Only issue left is that I don’t know why the lines of coding don’t match in my buddypress version, I never changed code in the core buddypress files.

    Thanks for the support,

    Bart

    VGVIDS

    #267500
    r-a-y
    Keymaster

    You’ll want to see a very similar thread to yours:

    Template modification not shown on website

    r-a-y
    Keymaster

    You can check the “Users > Pending Accounts” page in the WordPress admin dashboard. Then, you should be able to just delete them from there.

    It might be worthwhile for BuddyPress to have a built-in script that removes pending accounts that are older than a month or so.

    Also, just to get some clarity, would inactive users be causing BuddyPress to slow down all functions on my website, such as loading a member profile, or the activity page?

    Not really.

    If you indeed do have a popular website with many users that are concurrently logged in and performing operations, then this will slow down your site. You will need to utilize object caching plugins and the like (I believe WPEngine already has something built in for this). You might also need to consider upgrading your WPEngine plan.

    We’re also thinking of doing some performance enhancements in the next version of BuddyPress that will decrease the amount of code that needs to run on non-BuddyPress pages.

    jaykdoe
    Participant

    Also, just to get some clarity, would inactive users be causing BuddyPress to slow down all functions on my website, such as loading a member profile, or the activity page? Because the entire site loads incredibly slow on every page, until I disable buddypress. Then it seems to function well.

    jaykdoe
    Participant

    Thank you both for your responses. My website is quite popular, and like most popular online communities there are definitely quite a few accounts that have not been activated for one reason or another. I would have cleaned these up already but I don’t see an easy way to do that with BuddyPress, and honestly wouldn’t really expect that do break the site altogether. How exactly do I go about batch processing the deletion of inactive users? If BuddyPress doesn’t function well with a large number of inactive accounts, I would think there would be an efficient way to manage them in order to prevent the entire site slowing down to a crawl because of them. Simply deleting them manually would take an insane amount of time. I have to believe there’s a better way. Thanks again!

    #267493
    r-a-y
    Keymaster

    I’m guessing you have disabled Search Engine Visibility in WordPress.

    If you have, view the following:
    https://github.com/boonebgorges/buddypress-group-email-subscription/wiki#1-bbpress-doesnt-record-its-forum-posts-into-the-group-activity-stream--why

    r-a-y
    Keymaster

    The problem is with the function used to generate the active member count.

    On your site, you have a ton of inactive users, which is causing the SQL query to be very large. I’m guessing you installed BuddyPress on a really big site recently and your users haven’t logged in yet? I’m guessing your site has a ton of pending users that you haven’t deleted yet?

    BuddyPress can do better here, but in the meantime, one way to mitigate this SQL query is to generate a script that will backfill an activity timestamp for all your inactive users one way to mitigate this query is to delete all your pending users (the ones that haven’t completed registration) like Shane mentioned. This will stop WPEngine from killing the query.

    r-a-y
    Keymaster

    Your line numbers do not match up with v2.9’s, which is why I recommend re-installing. Not sure how re-installing will cause problems unless you have directly modified core files in the past.

    Regarding bp-custom.php, a quick search on Google would have explained what to do with it. Regardless, here’s the link to find out more:

    bp-custom.php

    If the code snippet I provided didn’t work in your theme’s functions.php, it most likely will not work in bp-custom.php either.

    The other potential issue is there might be a plugin conflict.

    vgvidscom
    Participant

    Dear r-a-y,

    I have the latest version v.2.9.0. I did not re-install yet, since that can maybe cause problems with my setup.

    I found the spot where I have to add your code, see image: http://prntscr.com/g6uoav

    However, I don’t see it fix the problem unfortunately.

    I also added the code you’ve provided again as your second solution under childe theme functions.php –> the code does not seem to the trick either, also not in combination with the 1 above. See image:
    http://prntscr.com/g6usss

    I don’t know yet what you mean with: wp-content/plugins/bp-custom.php , do you mean wp-content/plugins/buddypress/bp-custom.php? Anyways, also in this location I can’t find bp-custom.php

    Hopefully you can help me out now.

    Best regards,

    Bart

    VGVIDS

    #267486

    In reply to: Site Tracking

    shanebp
    Moderator

    Did you try un-checking the ‘Blog & Forum Comments’ option
    in wp-admin > Settings > BuddyPress > Options

    #267464
    Humiges
    Participant

    Dear @sbrajesh
    Sorry to bother you.
    Please, is there any chance you know how to remove this activity from Buddypress profile?

    Mike “posted a new activity comment”

    This is without url to the actual blog post so it’s useless. I tried to remove it from bp-activity-functions but it actually removes even the posted a new activity comment in a group.

    Thanks a lot:)

    #267463
    r-a-y
    Keymaster

    What would you need specific documentation for?

    I would just recommend doing a file search within the /bp-templates/bp-legacy/buddypress/ folder for certain things that you need to modify.

    That way, you’ll be able to know what file to edit for template mods.

    #267462
    r-a-y
    Keymaster

    Cannot duplicate this.

    You might have a javascript conflict.

    Try disabling all plugins except BuddyPress and try again. If it works, then it’s a plugin conflict somewhere. If you’re running a custom theme that has purported BuddyPress support, also switch to a default WordPress theme.

    r-a-y
    Keymaster

    What is the “latest buddypress version” for you?

    If you were using v2.9.0, then the patch I linked to should apply cleanly. There should be no changes between your copy of /bp-core/bp-core-avatars.php and v2.9’s /bp-core/bp-core-avatars.php.

    If your version is v2.9.0, then I would recommend re-installing BuddyPress from the wordpress.org plugins repository.

Viewing 25 results - 7,801 through 7,825 (of 69,044 total)
Skip to toolbar