Search Results for 'buddypress'
-
AuthorSearch Results
-
November 29, 2017 at 5:29 am #269216
In 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…November 24, 2017 at 6:16 pm #269152Topic: Can’t upload avatar image under 451px
in forum How-to & TroubleshootingDragoWeb
ParticipantHi, I have this error message
“There was a problem cropping your profile photo.”
when I try to upload an avatar image with a width of 450px and above. Starting to 451px it works (even with an height of 150px). I get a warning message only if I try to upload an image under 150x150px :
“You have selected an image that is smaller than recommended. For best results, upload a picture larger than 150 x 150 pixels.”
So, I suppose this problem doesn’t come from a setting option somewhere.
The problem is the same when I switch to the default theme Twenty Fifteen and I have no other plugin activated (except HideMySite). Cover image works without problem. Cropping image works with Ultimate-member plugin and in WP admin -> Media -> Edit/crop as well.
Config:
Wordpress (new install) v4.9
Buddypress 2.9.2
php 5.6
GD enabledThanks.
November 23, 2017 at 2:51 pm #269139In reply to: Groups not displaying properly
Boone Gorges
KeymasterDon’t abandon the Groups functionality or BuddyPress over this small display issue! With a plugin like this https://wordpress.org/plugins/simple-custom-css/, it is trivial to add the CSS that I gave above.
Building a child theme is more complex, and is something you should learn down the road if you plan to make extensive customizations. But if you just need to make a small change like what I’ve suggested, then a plugin like https://wordpress.org/plugins/simple-custom-css/ is more than enough.
November 23, 2017 at 1:31 pm #269132In reply to: Rebooting Activity Stream?
autox420
ParticipantNot what you are serching for but plugin BuddyPress bulk delete can delete all activity.
November 23, 2017 at 11:55 am #269130In reply to: Rebooting Activity Stream?
Renato Alves
ModeratorYou can use wp-cli-buddypress to delete the activities from the command line: https://github.com/buddypress/wp-cli-buddypress
November 22, 2017 at 2:09 am #269114roseashm
ParticipantWhere do I upload my theme to on BuddyPress?
November 21, 2017 at 3:21 pm #269101In reply to: Groups not displaying properly
Boone Gorges
KeymasterThanks for the link. It does appear that the
margin-topproperty is the culprit.Here is the CSS that should fix it:
body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-header-content, body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-actions { margin-top: 0px; }I don’t recommend that you make the change directly to your themes/parabola/style.css stylesheet, as it will be overridden on the next update. I suggest building a child theme. But you could also use a custom CSS plugin, or the Custom CSS tools in Jetpack.
November 21, 2017 at 2:32 am #269098In reply to: Whos online widget .css
Boone Gorges
KeymasterIf your theme uses bp-legacy theme templates, then the styles for the Who’s Online widget are in buddypress/bp-templates/bp-legacy/css/buddypress.css.
https://postimg.org/image/sl03lqwff/
BuddyPress does have a lot of files, but it’s organized according to pretty specific principles, and I don’t think it qualifies as “messy”. In any case, for the purposes of CSS, you can always use your browser inspector (see image above) to locate styles.
November 20, 2017 at 10:22 pm #269096Boone Gorges
KeymasterAh yes, thanks for that.
It looks like your theme is loading scripts from BuddyPress, but is using an old path for these scripts. (BP changed the paths a couple versions ago. See https://buddypress.trac.wordpress.org/changeset/11009.) Look in your theme – probably in functions.php – to see how it’s loading the cookie, caret, and atwho scripts. Then update the paths as needed (I think you can just add
/vendor/). -
AuthorSearch Results