Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,251 through 8,275 (of 68,936 total)
  • Author
    Search Results
  • #263663
    Slava Abakumov
    Moderator

    Sure, you will need to filter out the $arguments variable in my code for the required by you activity_type.

    You can put the resulting code into a separate custom plugin or in https://codex.buddypress.org/themes/bp-custom-php/

    #263653
    r-a-y
    Keymaster

    Not sure what your issue is, but after going through the removal steps, did you deactivate BuddyPress and reactivate it?

    If you have an object cache plugin active, you should purge your entire cache after removing the DB options so BP can reinstall its tables properly when you reactivate BuddyPress.

    #263652
    Slava Abakumov
    Moderator

    Super easy solution is to do like this:

    1) find or create a buddypress/activity/post-form.php file in your theme
    2) find in that file a textarea with id="whats-new" and add maxlength="143" to its attributes so it will become something like this:
    <textarea class="bp-suggestions" maxlength="143" name="whats-new" id="whats-new" cols="50" rows="10"....
    3) save and done.

    It will limit globally, though. If only in groups (not modifiying activity directory and profiles) – wrap it in a p_is_group() like this
    <textarea class="bp-suggestions" <?php echo bp_is_group() ? 'maxlength="143"' : '';?> name="whats-new" id="whats-new" cols="50" rows="10"....

    #263651

    In reply to: Group join the Group

    Slava Abakumov
    Moderator

    Team is a BuddyPress group.
    League – is the group type, read about it here: https://codex.buddypress.org/developer/group-types/

    This might be helpful for you too: https://codex.buddypress.org/add-custom-tab-to-groups-directory/ (leagues as tabs in groups/teams directory).

    #263649
    snorklebum
    Participant

    I migrated from Ning to Buddypress last year roughly following a very old guide. I had to manually tidy up the json exports and it only imported basic user information, posts and groups. We primarily used ning for events and I moved those in to events-manager myself.

    It took a lot of trial and error and if you’re not that technical I’d recommend paying someone to carry out the process, I just wouldn’t expect miracles.

    #263648
    Slava Abakumov
    Moderator

    I think, you can’t do that easily.

    Reason: BuddyPress activated and is working on subsite 1, where all of its tables created. Subsite 2 is completely independent site with even own list of users.

    To fix this: you will need to write quite heavy bridge, that will query the subsite 1 and asks each time whether user has there what you need on subsite 2.

    #263645
    Slava Abakumov
    Moderator

    Your task is a compilation of several steps.

    1) You need to add a custom field to BuddyPress registration form
    See this https://buddypress.org/support/topic/how-to-display-a-custom-field/ or similar (just google).

    2) You need to get the list of users by a member type to display in a <select> field created in 1).
    See https://codex.buddypress.org/developer/member-types/ and its “Querying by member type” section.

    3) In 1) you created and it’s also written how to store that data, I suggest using usermeta (update_user_meta()). You should store not the teachers names, but their ids in metas.

    4) Now you need to display this info in user profile.
    Investigate wp-content/plugins/buddypress/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php file, you will see there several hooks that may be useful for you. There you will just echo what you need.
    Example: get_user_by('id', get_user_meta(bp_displayed_user_id(), 'teacher_id'))->display_name; or similar using BuddyPress functions.

    #263643
    Slava Abakumov
    Moderator

    Currently there is no such plugin. Introducing this feature is quite heavy for the server, so it’s more like a custom solution, ideally with websockets.

    We use heartbeat functionality, that gives ability to show a notification about new activity records, but there are no plans to actually update old records due to lots of technical issues and time availability (all BuddyPress core devs are volunteers).

    #263642
    Slava Abakumov
    Moderator

    You can check this plugin: https://premium.wpmudev.org/project/ning-to-buddypress-user-importer/

    But before buying it’s better to contact their support and ask about compatibility.

    #263629
    manishn
    Participant

    It’s too late for answering this question but will help someone else 🙂

    just put this code on your /plugins/buddypress/bp-activity/bp-activity-template.php file within this function bp_get_activity_action()

    if($activity_arr->type == 'rtmedia_comment_activity'){
    			global $wpdb;
    			$query = "SELECT activity_id FROM ".$wpdb->prefix."rt_rtm_media WHERE id='".$activity_arr->item_id."'";
    			$activity_id = $wpdb->get_var( $wpdb->prepare($query));
    			$activity = bp_activity_get_specific( array( 'activity_ids' => $activity_id ) );
    			$activity = $activity['activities'][0];
    			$action .= $activity->content;
    			
    		}

    Hope this help

    #263621
    Md Sadiqur Rahman
    Participant

    You should activate “Site Tracking” from Settings/Buddypress/. For me, it is working fine.

    #263620
    r-a-y
    Keymaster

    Can you follow up on Paul’s suggestion?

    Do you have NOBLOGREDIRECT defined anywhere? Check wp-config.php or check if a plugin or theme is defining it somewhere.

    I’ve added a patch that should fix this issue if NOBLOGREDIRECT is defined, but is running from single site:
    https://buddypress.trac.wordpress.org/attachment/ticket/7441/7441.01.patch

    Can you test this out and let us know if this fixes things for you?

    #263617
    warezit
    Participant

    Hello!

    I am having an issue with BP, that I caused myself. I intentionally deactivated, then deleted, BP (on a 5 day old site) thinking that I wasn’t going to use it. Then I ran ‘WP Optimize’ which removed all the unused tables from the plugins I had installed, and removed unused transients, etc… This is what caused the problem.

    Some time later, I went to re-install BP – which succeeds with no issues. Here’s where the issues crop up… Next, I went to create a new Group on the BP front-end, and it reports an error:
    There was an error saving group details. Please try again.

    Enabling WP debug mode in “wp-config.php” reports this:

    WordPress database error: [Table 'wordpress.wp_bp_groups' doesn't exist]
    SELECT id FROM wp_bp_groups WHERE slug = 'create'
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SHOW FULL COLUMNS FROM <code>wp_bp_activity</code>
    WordPress database error: [Table 'wordpress.wp_bp_notifications' doesn't exist]
    SELECT * FROM wp_bp_notifications n WHERE user_id IN (1) AND component_name IN ('friends','messages','activity','groups','blogs') AND is_new = 1
    WordPress database error: [Table 'wordpress.wp_bp_messages_recipients' doesn't exist]
    SELECT SUM(unread_count) FROM wp_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0
    WordPress database error: [Table 'wordpress.wp_bp_friends' doesn't exist]
    SELECT id FROM wp_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC
    WordPress database error: [Table 'wordpress.wp_bp_groups_members' doesn't exist]
    SELECT COUNT(DISTINCT m.group_id) FROM wp_bp_groups_members m, wp_bp_groups g WHERE m.group_id = g.id AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = 1
    WordPress database error: [Table 'wordpress.wp_bp_messages_notices' doesn't exist]
    SELECT id FROM wp_bp_messages_notices WHERE is_active = 1

    I have been trying to find a solution for this online, for the last 4+ hours… and I have gotten nowhere… So, I am humbly asking for help here, on how to recreate these tables – WITHOUT DELETING AND RECREATING MY ENTIRE SITE. I have nearly 100 hours into this site so far, and I am NOT starting over. Starting over is NOT an option, so please save everyone’s time and skip suggesting this.

    I have reviewed all of these links, and followed all of their respective directions, when applicable:

    Deleting BuddyPress


    https://buddypress.org/support/topic/reinstall-should-i-delete-old-tables-from-db/

    repair buddypress database


    and, many many many many more links, that I am not going to go back and try to find…

    Any help with this would be great – I’d really like to use BP again… I have seen a number of other people online with this issue, so I know I am not the only one. There has to be some elegant solution to re-create the required SQL tables for the plugin, right?

    I have tried running this, after I reinstalled BP the 4th time (with my TDL inserted, ofc):
    https://xxxxxx.com/wp-content/plugins/buddypress/bp-core/bp-core-update.php?f=bp_update_to_2_7_4
    But, it didn’t seem to do anything…

    Ubuntu 16.04.1
    Apache 2.4.18
    PHP 7.0.13
    WP 4.7.2
    BP 2.7.4
    no other BP extension/plugins have been installed since the 1st time removing BP

    I am more than happy to provide any requested log files!

    Thank you a TON in advance!! I look forward to getting this working again.

    Humiges
    Participant

    Dear Paul – @djpaul,

    thank you for your kind reply.
    Works like a charm.

    Please, is there any way I can add the link to the comment too? The activity just says:
    for example “Paul posted a new activity comment” but no actual link to it 🙁

    …. maybe this is the answer:

    activity->id, $activities_template->activity ) ?>
    <a href="” class=”button acomment-reply bp-primary-action” id=”acomment-comment-“><?php printf( __( 'Comment %s‘, ‘buddypress’ ), bp_activity_get_comment_count() ); ?>

    from: https://buddypress.org/support/topic/resolved-single-activity-url/

    However, I’m not sure where I should actually have it?

    Thank you very much 🙂

    #263589
    shanebp
    Moderator

    You can remove it by creating a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\index.php

    Remove this code:

    	<?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
    	<?php if ( has_filter( 'bp_directory_members_search_form' ) ) : ?>
    
    		<div id="members-dir-search" class="dir-search" role="search">
    			<?php bp_directory_members_search_form(); ?>
    		</div><!-- #members-dir-search -->
    
    	<?php else: ?>
    
    		<?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
    
    	<?php endif; ?>
    porubcansky
    Participant

    Difficulty with friend requests: we changed settings on WangGuard which seems to have restored users’ ability to see friend requests. A quick search didn’t show me much back material concerning WangGuard interactions with BuddyPress. This site didn’t behave that way before. Is it possible WangGuard is interfering more with BuddyPress 2.7.4 than with previous versions of BP?

    #263567
    djmazi12
    Participant

    Hi Paul

    You’ve been a great help!

    I managed to find the correct buddypress index file.

    If it isn’t too much I would like your help to one last thing.
    So i created my div, however i want it to be visible to only the administrator.

    I found a code i can use:

    <?php
    if (current_user_can(‘edit_users’)){
    ?>
    <div class="opretbruger">Opret bruger</div>
    <?php
    }
    ?>

    however it doesn’t seem to work – it simply hides the div for every user even though my administrator role has the right to edit users. I also tried with ‘administrator’. Am i doing anything wrong?

    #263564
    Paul Wong-Gibbs
    Keymaster

    You might be running a theme with BuddyPress-specific files. Have a hunt around your theme, look for a similar structure. etc

    #263555
    Paul Wong-Gibbs
    Keymaster

    Go to /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/. The four files — activate, index, members-loop, and register — are templates used for the Members Directory. Ignore the single subfolder; that’s used for individual member pages.

    You will want the index.php file.

    In your theme, create a buddypress/members subfolder. e.g. /wp-content/themes/my-theme/buddypress/members/. You’ll need to create both directories if they’re missing. Copy that index.php we found earlier into this new directory.

    e.g. you’ll end up with /wp-content/themes/my-theme/buddypress/members/index.php. You’ll want to play around in this file to find where you want to add your custom CSS, which I’ll leave to you to figure out.

    #263551
    Paul Wong-Gibbs
    Keymaster

    We used to have testbp.org which last a few years until spam and DOS attacks forced us to take it offline.

    Your best best is probably looking through https://wordpress.tv/tag/buddypress/ for recent WordCamp videos, and see if you can find one.

    #263548
    telesemana
    Participant

    I can probably disable Buddypress on muy dev site and try to register to see what happens. I will do that today and let you know @djpaul

    Many thanks to both of you for your replies!

    #263545
    Paul Wong-Gibbs
    Keymaster

    I don’t think we’ve consciously changed this behaviour (if this indeed happens as you say) in the last couple of years. It’s possible that something in WordPress changed the behviour with however BuddyPress adds sites internally.

    I think I just about recall some conversation from four or five years ago about this, but I’m struggling to remember what it was about precisely, or even where to look. If I were to start investigating this, I’d set up an otherwise identical multisite (without BuddyPress) and add users via the wp-admin, and see if those users becomes subscribers or not. etc.

    #263542
    Paul Wong-Gibbs
    Keymaster

    Page Builders are not be compatible with BuddyPress (at least, I don’t know of any support).
    You would need to manually edit the template files. If you know basic CSS/HTML/PHP, I can give you some instructions and link to some docs.

    #263539
    Paul Wong-Gibbs
    Keymaster

    The original reporter has submitted a bug report https://buddypress.trac.wordpress.org/ticket/7436

    The language used in that report is much more constructive than that of this forum thread, so I’m going to close this.

    #263537
    Wilson
    Participant

    Hello. but how do I let my users view the photos you have uploaded to their profile BuddyPress completely disabling gravatar? thank you for support

Viewing 25 results - 8,251 through 8,275 (of 68,936 total)
Skip to toolbar