Search Results for 'buddypress'
-
AuthorSearch Results
-
November 29, 2017 at 11:09 pm #269260
In reply to: How NOT to redirect users after login.
Boone Gorges
KeymasterThanks. 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; } );November 29, 2017 at 8:01 pm #269253In reply to: Locked out of my buddypress site
Boone Gorges
KeymasterHi @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
November 29, 2017 at 6:57 pm #269252In reply to: Locked out of my buddypress site
plumbingsuperstore
ParticipantBoone 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
November 29, 2017 at 4:55 pm #269246In reply to: Need some help figuring out a template problem
Boone Gorges
KeymasterHi @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.
November 29, 2017 at 3:39 pm #269242In reply to: Ordered list tag creates weird results
Boone Gorges
KeymasterGroup descriptions are filtered at the time of saving, via
wp_filter_kses(), and at the time of display usingbp_groups_filter_kses(). https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-groups-filters.php#L35It 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_savefilter, replacing withbp_groups_filter_kses, and then filteringbp_groups_filter_ksesto 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#L87November 29, 2017 at 2:07 pm #269237naomibuch
ParticipantBTW: I am running:
WP version 4.8.3
Newspaper theme 8.1
BuddyPress Version 2.9.2November 29, 2017 at 11:28 am #269227Scribit
ParticipantHere the piece of page on which there is the element with “selected” class (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.
November 29, 2017 at 9:07 am #269225In reply to: Need some help figuring out a template problem
ovizii
ParticipantI 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?
November 29, 2017 at 5:29 am #269216In reply to: Rebooting Activity Stream?
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..!
November 28, 2017 at 10:59 pm #269211Boone Gorges
Keymaster@scribit – Thanks for following up. We are getting closer π
Do you have any idea why the
homeelement has theselectedclass? 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 extraselectedclass, 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.
November 28, 2017 at 10:54 pm #269210In reply to: Special characters output in profile fields
Boone Gorges
KeymasterHi @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.
November 28, 2017 at 10:40 pm #269209In reply to: Searchable Fields with Special Characters
Boone Gorges
KeymasterThanks 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!
November 28, 2017 at 8:30 pm #269206naomibuch
ParticipantHi 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
November 28, 2017 at 4:14 pm #269202Scribit
ParticipantThank 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 π
November 28, 2017 at 3:29 pm #269200Boone Gorges
KeymasterI’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 thesearch_termselement. It’s possible that your theme, or some other plugin, is modifying the markup so that the selectors or the element hierarchy has changed.November 28, 2017 at 3:22 pm #269199Boone Gorges
KeymasterHi 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?
November 28, 2017 at 2:07 pm #269198naomibuch
ParticipantHi 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 BuddypressNovember 28, 2017 at 1:05 pm #269197naomibuch
ParticipantHi 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 = CarolUser 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
November 28, 2017 at 9:33 am #269194naomibuch
ParticipantHi Boone,
BTW: I am using Newspaper – Theme version: 8.1
WP version 4.8.3
Buddypress Version 2.9.2I always do my code editing in the Newspaper child theme (
Newspaper 7 Child theme: Theme Functions (functions.php)Thanks,
Naomi
November 28, 2017 at 2:48 am #269187In reply to: Armember badges
Boone Gorges
KeymasterI 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_idto 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.November 28, 2017 at 2:43 am #269184In reply to: How NOT to redirect users after login.
Boone Gorges
KeymasterIt 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_toparameter.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-groupIf, 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.comor in a subdirectoryexample.com/buddypress/?November 28, 2017 at 2:38 am #269183In reply to: Groups not displaying properly
Boone Gorges
KeymasterLooking more closely at your styles, the problem might be the width of your
#item-meta. Remove themargin-topdeclaration 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
November 28, 2017 at 1:46 am #269177In reply to: Rebooting Activity Stream?
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 π
November 27, 2017 at 10:24 am #269166In reply to: How to make “whats new button” always visible
Nur Zakaria
ParticipantI found this solution :
https://www.buddyboss.com/support-forums/topic/recent-buddypress-update-hiding-whats-new-options/
it fixed my problem.
thank you anyway
November 27, 2017 at 8:53 am #269163In reply to: Armember badges
patricktank
Participantis 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… -
AuthorSearch Results