Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 7,576 through 7,600 (of 69,109 total)
  • Author
    Search Results
  • #269260
    Boone Gorges
    Keymaster

    Thanks. I’ve just installed the combination of rename-wp-login and lh-private-buddypress, and I’m unable to reproduce the problem – after logging in, I’m being redirected to the originally-requested page. It may still be worth a test on your end; if temporarily disabling rename-wp-login fixes the problem, it would at least narrow down what’s going on.

    If it were my site, the next thing I’d do is to debug the redirection chain, but I’m unsure how familiar/comfortable you are with debugging PHP functions. Try adding the following settings to your wp-config.php:

    
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );
    

    After a few pageloads, WP should have created a file at wp-content/debug.log. Once you’ve confirmed this, drop the following into a bp-custom.php file, and then run through the login redirect process. It’ll dump some info into your debug.log file, which we can use for further debugging.

    
    add_filter( 'wp_redirect', function( $redirect ) {
        error_log( print_r( debug_backtrace(), true ) );
        return $redirect;
    } );
    
    #269253
    Boone Gorges
    Keymaster

    Hi @plumbingsuperstore – Oof, sorry to hear about the problems, but glad your hosting provider had a way to roll back.

    BuddyPress doesn’t touch user credentials, so it’s highly unlikely that BuddyPress itself would be the cause of your admin creds not working after BP was installed. I’m guessing that either there’s some user error here, or there’s another plugin interfering with the process. To reiterate, logging into WP should be exactly the same before or after the activation of BP.

    Regarding the 404 error when activating your account: When you install BuddyPress, it should create pages called Register and Activate. It sounds like this worked for Register (since you were able to register a new account), but didn’t for Activate. If you try this again, take careful note of the URLs you see in your browser when registering, the URL that appears in the activation email, and the URL you see in the browser after clicking the activation link. There could be a clue here.

    One final tip: You can stay logged in as an admin in your browser and still test as another user. Open a private browsing window: Firefox https://support.mozilla.org/en-US/kb/private-browsing-use-firefox-without-history, Chrome https://support.google.com/chrome/answer/95464?co=GENIE.Platform%3DDesktop&hl=en, Safari https://www.macworld.com/article/1133941/software-web/safariprivate.html

    #269252
    plumbingsuperstore
    Participant

    Boone howzit bud! πŸ™‚ Thanks for the reply! Much appreciated!!!

    I went into my cpanel, fortunately these guys I’m hosting with have auto saves on and I could restore my site to a previous time. WHOOOOHOOOO!!!!! So happy I chose them as my host provider!!!!

    There is the fear though that this might occur again!… so running the neglected back up on my side will occur before every plugin installed or major settings change…. discipline is the way forward!

    Ok prevention is better than cure right!?

    So here goes the story as good as I can explain in my no programmer/developer language…

    I was in wordpress… Installing Buddypress… I opened a second browser tab so I can view all the changes etc. that I made tweaking and installing Buddyp. (..aaand gloating cause I actually followed instructions to the letter and it all worked out just peachy!) Buddypress installed even downloaded the fake content plugin to see the end result in all it’s glory.. πŸ™‚

    I had to take it just one step further to satisfy this little voice in my head!

    To test Buddyp. as a potential new register.

    I logged out as admin….

    Unknowingly
    all Sh*t broke loose just then….

    I created a new account as a new user… completed in the registration form with a fresh email account… Buddyp. sent me the verify link to my email account.

    Clicking on the verify email account link… gave me a – page not found – and re-directed be back to the login up page, once there telling me in red highlight – there is no account with those details…

    Frantically entering the new registration details just kept me in the same loop…

    Then deciding ok… to use my admin credentials to get back into either Buddyp. or my site backend…

    To no avail… admin credentials did not do the trick… I was locked out completely…!

    My std WordPress email credentials meant squat!

    My main concern is, I need to to fix this…
    I a new user register with my site the same think will occur to them…

    Being redirected back to the login and password block after clicking and confirming their email address….

    I am not sure how to fix this!

    I hope this makes sense… ?

    Once again… thank you for the response to help out… would you know how to fix said issue?

    Regards

    W

    #269246
    Boone Gorges
    Keymaster

    Hi @ovizii – Changing to a separate theme just because of a single styling issue is a pretty big step. If you’re generally happy with the way your site looks and works, it may be worth putting a bit of time into solving the specific issue, rather than looking for a larger switch.

    If you do want to change, BuddyPress now supports a feature called “theme compatibility”, which means that it works well in most WordPress themes – whether or not they have specific support for BuddyPress. A nice place to start is the WP default themes (Twenty Sixteen, etc), some of which are particularly well suited to running a BuddyPress site.

    #269242
    Boone Gorges
    Keymaster

    Group descriptions are filtered at the time of saving, via wp_filter_kses(), and at the time of display using bp_groups_filter_kses(). https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-groups-filters.php#L35

    It seems like a bug that we do different things at the time of save vs the time of display, but there you have it.

    I’d suggest removing the groups_group_description_before_save filter, replacing with bp_groups_filter_kses, and then filtering bp_groups_filter_kses to add allowed tags (as @r-a-y describes above). https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-groups-filters.php?marks=117#L87

    #269237
    naomibuch
    Participant

    BTW: I am running:

    WP version 4.8.3
    Newspaper theme 8.1
    BuddyPress Version 2.9.2

    #269227
    Scribit
    Participant

    Here the piece of page on which there is the element with “selected” class (HOME button).
    Home button
    Home button is a standard Buddypress element. I don’t add it for myself.

    Removing the selected class from Developer tools, and submitting the search form, it works but don’t use the “ajax mode”: It reloads the page adding search term as GET parameter (?members_search=test&members_search_submit=Cerca) and retrieving the correct results.

    #269225
    ovizii
    Participant

    I just checked the tempalte’s css file and it says:

    /**
    * Theme Name: BuddyPress Default
    * Theme URI: https://buddypress.org/extend/themes/
    * Description: [NOTE: except for security issues, BuddyPress Default is no longer being actively maintained by the BuddyPress team.]

    so is there another default theme available?

    #269216
    mbfit
    Participant

    @mbfit If by β€œunsearchable” you mean that they don’t show up in the directory anymore, then the problem is probably that the plugin deleted the β€˜last_activity’ activity items for each user. As such, BP doesn’t show them as active users.

    Yes you nailed it.

    Tech support copied the file members-loop.php from the main theme to the child theme, so it looks like this childtheme/buddypress/members/members-loop.php

    and code:
    <?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘&per_page=’.sq_option( ‘buddypress_perpage’ ) ) ) : ?>

    to:

    <?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘&type=alphabetical’ . ‘&per_page=’.sq_option( ‘buddypress_perpage’ ) ) ) : ?>

    In case anyone else every happens to run into this..!

    #269211
    Boone Gorges
    Keymaster

    @scribit – Thanks for following up. We are getting closer πŸ™‚

    Do you have any idea why the home element has the selected class? Does this mean that, when you view the group nav tabs, both Home and Selected have the “current” styling? BuddyPress doesn’t do this out of the box, so I wonder if perhaps there’s something in your theme that’s causing it to happen. Figuring out what’s causing that extra selected class, and disabling it, would probably fix the problem you’ve described.

    It is also the case that this JavaScript is quite fragile. I wonder if we could use the body class or something like that as a more reliable way of deterimining which tab we’re looking at. On the other hand, the JS for the new, upcoming template packs (bp-nouveau) is totally different here, so maybe it’s not worth fixing.

    #269210
    Boone Gorges
    Keymaster

    Hi @Sander – Thanks for reporting this. It looks like a legitimate bug. I’ve opened a ticket to track it: https://buddypress.trac.wordpress.org/ticket/7631

    While we try to figure out a way to make this work better, you can work around the issue by disabling autolink for the field in question. Dashboard > Users > Profile Fields > Edit, and look for the Autolink metabox at the right.

    #269209
    Boone Gorges
    Keymaster

    Thanks for the report, @onedevstudios. This sounds like it’s probably a bug. Could you please open a ticket at https://buddypress.trac.wordpress.org with detailed instructions to reproduce? Thanks!

    naomibuch
    Participant

    Hi Again,

    If I understand https://buddypress.org/support/topic/how-do-i-make-the-comment-button-read-only-in-the-activity-stream/#post-269197 correctly, you mean that users ought to be able to leave a single *top-level* reply to a given activity item, but they should be able to leave as many replies-to-comments as they want. Is that correct?

    Correct. That’s exactly what I want. Similar to Facebook.

    Thanks,

    Naomi

    #269202
    Scribit
    Participant

    Thank boonebgorges.
    First of all buddypress.min.js is correctly loaded in the page and it is not part of the theme but the plugin is installed indipendently.

    I’m using version 2.8.2. I load not minified js to debug it. Look at this part of code:

    if ( target.attr('type') === 'submit' ) {
    	css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
    	object = css_id[0];
    	template = null;
    	search_terms = target.parent().find( '#' + object + '_search' ).val();
    
    	// The Group Members page specifies its own template
    	if ( event.currentTarget.className === 'groups-members-search' ) {
    		object = 'group_members';
    		template = 'groups/single/members';
    	}
    
    	bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras'), null, template );
    
    	return false;
    }

    when it create “item-list-tabs li.selected” class to populate css_id array it takes the first one div in DOM with that class, and the corresponding array is [home, groups, li]. So it searches for #home_search to set value of search_terms…but home_search element doesn’t exists on the page!

    To correctly search terms it should search for #members_search. What can I do? I don’t want to hardcode some javascript πŸ™‚

    #269200
    Boone Gorges
    Keymaster

    I’m unable to test with the proprietary Magnum theme, but with the free version of Optimizer, I’m unable to reproduce the problem. Group member searches are working as expected: https://postimg.org/image/axag5nsjr/

    Here’s the relevant part of BP’s JavaScript: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-templates/bp-legacy/js/buddypress.js?marks=863#L848 The first thing to check is that your theme is actually requiring buddypress.js (or buddypress.min.js) out of the buddypress theme directory; if not, it’s possible you’re running an out-of-date version bundled with a theme or something. Then, you may need to deminimize (or set define( 'SCRIPT_DEBUG', true );) to debug. Then, check to see whether this bit of script is actually able to find the search_terms element. It’s possible that your theme, or some other plugin, is modifying the markup so that the selectors or the element hierarchy has changed.

    Boone Gorges
    Keymaster

    Hi Naomi – Thanks for the additional details.

    I’m afraid I still don’t understand what you mean by “the comment input box” and “the reply area”. Here’s what the activity commenting area looks like on Twenty Sixteen: https://postimg.org/image/yzra0j1h3/ I assume that “the comment input box” is the field at the bottom, just above the ‘post’ and ‘cancel’ buttons. But I’m unsure what in this screenshot represents “the reply area”, and I don’t see any overlap at a glance. If possible, perhaps you could upload a screenshot to a third-party service like https://postimg.org/ and drop the URL here, so that we could better understand the display problem.

    The problem I am currently experiencing is that each unique user can make multiple comments on a single post. They should only have the capability to make 1 comment to each post.

    And when a user makes a second comment (which they are not allowed to do) that’s when the malfunction occurs and the input box overlaps the reply box.

    I’m unclear on what’s happening here. You say that users “are not allowed to” leave a second comment on a post, but I guess what you mean is that you don’t *want* them to be able to do it?

    I don’t know of a ready-made plugin that would allow you to limit commenting in the way you’ve described. It would probably be possible to write a small bit of code that would make it work, but I’d need a clearer understanding of what you’re trying to accomplish. If I understand https://buddypress.org/support/topic/how-do-i-make-the-comment-button-read-only-in-the-activity-stream/#post-269197 correctly, you mean that users ought to be able to leave a single *top-level* reply to a given activity item, but they should be able to leave as many replies-to-comments as they want. Is that correct?

    naomibuch
    Participant

    Hi Again,

    This is a list of all my plugins:

    WP Mail SMTP
    WP Crontrol
    WP All Import Pro
    WordPress Mass Email to users
    WordPress Importer
    W3 Total Cache
    tagDiv Social Counter
    tagDiv Composer
    SiteOrigin Widgets Bundle
    Shortcodes Ultimate
    rtMedia for WordPress, BuddyPress and bbPress
    RSS Importer
    Remove Dashboard Access
    PushLive – Staging Site to Live Site in One Click
    Page Builder by SiteOrigin
    Newsletter
    Knowledge Base for Documents and FAQs
    Invite Anyone, by Boones πŸ™‚
    iframe
    Hide This
    Hide Admin Bar
    Easy Affiliate Links
    Contact Form 7
    Buddypress Shortcodes
    Buddypress Friend of a Friend (FOAF)
    BuddyPress Follow
    BuddyPress Extended Friendship Request
    BuddyPress Edit Activity
    BuddyPress Block Activity Stream Types
    BuddyPress Activity ShortCode
    BuddyPress Activity Privacy
    BuddyPress Activity Filter
    BuddyPress Activity Autoloader
    BuddyPress
    BP Show Friends
    Amazon Auto Links
    All In One SEO Pack Pro
    Akismet Anti-Spam
    Advanced Profiles Plugin 2.0 for BuddyPress
    Activity Reactions For Buddypress

    naomibuch
    Participant

    Hi Boone,

    I deactivated all plugins like you suggested and the problem is still occurring with the comment input box overlaying the the reply area.

    It only happens when I have 1 comment or more, ideally once a user makes a comment, in a muti user web environment they can’t make any more comments. Only a new user who hasn’t made a comment can comment on a new post, think facebook type posts.

    See example below:

    User A = Josh
    User B = Nancy
    User C = Carol

    User A starts a post.
    User B make the first comment on User A post , User C replies to User B comment on User A post.

    Only 1 unique User can comment on a post one at at time, but they can reply multiple times within a post.

    Currently the Activity Stream (BuddyPress) doesn’t have this functionality built in, or is there is plugin that performs this functionality?

    The problem I am currently experiencing is that each unique user can make multiple comments on a single post. They should only have the capability to make 1 comment to each post.

    And when a user makes a second comment (which they are not allowed to do) that’s when the malfunction occurs and the input box overlaps the reply box.

    Thanks so much for your help in this matter.

    P.S. I am so thankful for you Boone and the original developers of BuddyPress for being here to support the community.

    Naomi

    naomibuch
    Participant

    Hi Boone,

    BTW: I am using Newspaper – Theme version: 8.1
    WP version 4.8.3
    Buddypress Version 2.9.2

    I always do my code editing in the Newspaper child theme (
    Newspaper 7 Child theme: Theme Functions (functions.php)

    Thanks,

    Naomi

    #269187

    In reply to: Armember badges

    Boone Gorges
    Keymaster

    I don’t have access to the proprietary ARMember plugin, so I can’t say anything about that.

    Here’s one way to show arbitrary content in a BP user’s profile header:

    
    add_action( 'bp_before_member_header_meta', function() {
    	$user_id = bp_displayed_user_id();
    	echo 'Here is the badge for user ' . $user_id;
    } );
    

    You’ll need to use the $user_id to fetch the ARMember badge and display it.

    See https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-templates/bp-legacy/buddypress/members/single/member-header.php for other hooks you could use instead of bp_before_member_header_meta.

    #269184
    Boone Gorges
    Keymaster

    It looks, at a glance, like the LH Private BuddyPress plugin ought to be doing what you’re asking for. https://plugins.trac.wordpress.org/browser/lh-private-buddypress/trunk/lh-private-buddypress.php#L101

    If it’s not working, it’s either because of an error in the plugin logic, or because something on your server or WP setup is interfering with the redirect_to parameter.

    Can you share the format of the URL at various points of the process? For example, when visiting example.com/groups/my-private-group as a logged-out user, you should be redirected to:

    example.com/wp-login.php?redirect_to=/groups/my-private-group

    If, after login, you’re being redirected back to wp-login.php, what is the format of the URL then?

    What is the URL format of your BP/WP installation? Are you installed at the top level of a domain example.com or in a subdirectory example.com/buddypress/?

    #269183
    Boone Gorges
    Keymaster

    Looking more closely at your styles, the problem might be the width of your #item-meta. Remove the margin-top declaration you entered before, and try this instead:

    
    #buddypress div#item-header div#item-meta {
        width: 200px;
    }
    

    Your next step is to start getting familiar with CSS πŸ˜€ https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS

    #269177
    Boone Gorges
    Keymaster

    @mbfit If by “unsearchable” you mean that they don’t show up in the directory anymore, then the problem is probably that the plugin deleted the ‘last_activity’ activity items for each user. As such, BP doesn’t show them as active users.

    If you retained a backup before you ran the delete process, then you should restore the last_activity items from it. If not, you can run a script that will set last_activity for all users that don’t have it set – though note carefully that it won’t really be *accurate*.

    
    function bbg_set_last_activity() {
        global $wpdb;
        $user_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->users}" );
        foreach ( $user_ids as $user_id ) {
            if ( bp_get_user_last_activity( $user_id ) ) {
                continue;
            }
    
            bp_update_user_last_activity( $user_id );
        }
    }
    

    As to your original question, there is no single UI or command you can run to delete activity items based on date. wp-cli-buddypress would be part of a good solution, but it would take additional scripting to delete based on date range. If you have some familiarity with bash scripting or PHP scripting, I will point you in the right direction, but I don’t want to just give you stuff to copy and paste, because deleting stuff is dangerous πŸ˜€

    #269166
    Nur Zakaria
    Participant
    #269163

    In reply to: Armember badges

    patricktank
    Participant

    is there someone who can help me out here…
    i just need the arm badge in the profile header and the overview of the buddypress profile…

Viewing 25 results - 7,576 through 7,600 (of 69,109 total)
Skip to toolbar