Search Results for 'buddypress'
-
AuthorSearch Results
-
November 29, 2015 at 7:31 pm #247266
Henry Wright
ModeratorIs there a table in the DB that deals specifically with notifications?
Yes. That’d be
bp_notifications
If so, I guess I could just empty it before I emptied the stream and stream meta tables.
Shout up if anyone thinks that could be a problem.
Instead of deleting directly from the database, you should use these functions:
bp_notifications_delete_notifications_by_type()
bp_notifications_delete_notifications_by_item_id()
bp_notifications_delete_all_notifications_by_type()
bp_notifications_delete_notifications_from_user()
Alternatively, if none of these quite suit your need, go straight for the class method:
BP_Notifications_Notification::delete()
November 29, 2015 at 12:44 pm #247257In reply to: Extra White Space In Groups
dwsowash
ParticipantAdd these additions to your style.css for a fix.
#buddypress div#item-header #item-header-cover-image #item-actions { margin-top: 0px !important; margin-left: 0px; clear: all !important; max-width: 80% !important; }
November 29, 2015 at 12:34 pm #247256In reply to: Private Pages Glitch?
Brajesh Singh
ParticipantThis may be considered as bug in current behavior. Currently, BuddyPress only looks for published pages when looking for component associated pages in bp_core_get_directory_pages().
You may want to report it on the BuddyPress trac and the core developers and weigh their opinions on this.
November 29, 2015 at 10:40 am #247253In reply to: Extra White Space In Groups
dwsowash
ParticipantI have the exact same problem.
Newest wordpress Newest Buddypress using 2014 theme.
November 28, 2015 at 7:42 pm #247243In reply to: Problem with the send button in Buddypress comment
r-a-y
KeymasterWhen you click inside the textarea box, the textarea should expand and show the submit button.
Does that work?
If not, it might be related to the Sahira theme. Since Sahira is a premium theme, we do not have access to it. What happens when you switch to one of the WordPress Twenty themes?
Do you have the BuddyPress Activity Privacy plugin activated? If so, read this:
https://buddypress.org/support/topic/buddypress-2-4-0-and-buddypress-activity-privacy/#post-246630November 28, 2015 at 6:39 pm #247242tstrickland415
ParticipantSorry for keeping you guys in the dark but what I’ve discovered is that BP’s implementation of member types is pretty underwhelming since it’s only an xprofile field. In regards to my original use case, I discovered I was better off defining custom user roles (AKA member types) and adding appropriate permissions. This can easily be achieved with a few simple lines of code in your functions.php or your custom plugin. If coding isn’t your thing then there are a bunch of freemium plugins available for you to use. Why the Buddypress team elected not to leverage WordPress’ built in User Roles for this feature is beyond me, but if anybody is still looking for an answer to this then I highly recommend checking out the WordPress Codex on User Roles and Capabilities. Hope this helps!
November 27, 2015 at 6:56 pm #247232In reply to: Dynamically Display HTML depending on User
Henry Wright
ModeratorYes, that sounds right. Getting the user ID is slightly different in BuddyPress depending on the context. See the Playing with the user’s ID in different contexts article for details.
November 27, 2015 at 4:43 pm #247229In reply to: Can’t upload Group Avatars
Pietro117
ParticipantHi, we’re having exactly the same problem with not being able to upload avatar photos, and we have the repeated path in the error message, e.g.: Upload Failed! Error was: The uploaded file could not be moved to wp-content/uploads/avatars/9/avatars/9.
We are on a fresh (< 1 week old) 1-click WordPress installation, with BuddyPress, bbPress and a few other plugins.
Did you have any joy with resolving this issue please?
Many thanks
PeterNovember 27, 2015 at 3:08 pm #247228shanebp
ModeratorYou can use multiple filters with commas:
&action=activity_update,new_blog_post
See the comments here for other info:
Using bp_parse_args() to filter BuddyPress template loopsNovember 27, 2015 at 2:59 pm #247227In reply to: opt out of directory
shanebp
ModeratorThere are a couple of ways to do that.
Try:function iresource_exclude_ids( $retval ) { global $wpdb; $field_id = xprofile_get_field_id_from_name( 'FIELD NAME GOES HERE' ); $query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id . "AND value = 'FIELD VALUE GOES HERE'"; $exclude_ids = $wpdb->get_col( $query ); $retval['exclude'] = implode(",", $exclude_ids); return $retval; } add_filter( 'bp_after_has_members_parse_args', 'iresource_exclude_ids' );
More info:
November 27, 2015 at 2:47 pm #247226Henry Wright
ModeratorJust to add, if you are looking for something to delete, old notifications might be a good place to start. The usual way (in BuddyPress) is to keep all of these, but many places around the web nuke them after they’re ~7 days old.
November 27, 2015 at 2:42 pm #247225Henry Wright
ModeratorAm I okay to just clear the db table for bp_activity and bp_activity_meta
I wouldn’t do this because if anyone has notifications which point to the items you delete, then the member will be taken to a broken link.
I’m also guessing stream items DON’T get indexed by Google? I’m not going to create loads of broken results?
There’s nothing in BuddyPress which would stop Google indexing the single activity page. In fact, I bet that page does get indexed, not sure how popular it’d be in the results list though.
Hope this helps?
November 27, 2015 at 11:01 am #247219Topic: Incorrect all member number count
in forum How-to & TroubleshootingJrzwv
ParticipantPlease i need help, all member count on my website is showing 3 instead of 1. i am the only registered member. i have checked my database to see that i am the only one registered. i have deactivated all plugins and changed my theme to Twenty Fifteen but still showing the wrong number. Please i need help i am going crazy here
wordpress version: 4.3.1–en_GB
buddypress version: 2.4.0November 27, 2015 at 12:13 am #247213In reply to: Add profile fields groups to registration
@mercime
Participant@shmk profile fields you add in the Base Field Group shows up in the Registration Form https://codex.buddypress.org/administrator-guide/extended-profiles/
November 26, 2015 at 6:03 pm #247207In reply to: Problem with language/translate
r-a-y
KeymasterTry downloading the following:
- https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/de/default/export-translations
- https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/de/default/export-translations?format=mo
Rename the files to
buddypress-de_DE.po
andbuddypress-de-DE.mo
respectively.Then, move the files to
/wp-content/languages/plugins/
.Since the translation is not 100% complete, you might see some English strings.
Let me know if that works for you.
November 26, 2015 at 11:53 am #247202_natty_
Participantgreetings to all,
I put the code suggested @danbp on my bp-custom and everything ok but no mapping trough the extra Xfield type… then I add the suggested plugin ( https://github.com/mottolini/buddypress-xprofile-member-type-field ), but I can’t see any setting page or a guide to edit the file from the plugin for mapping the Xfield.
how can solve it?
Thanks in advanceNovember 25, 2015 at 7:46 pm #247192r-a-y
KeymasterThis bug will be fixed in BP v2.4.1.
If you want to temporarily fix this issue manually, see:
https://buddypress.org/support/topic/profile-field-visibility-enforced-but-members-can-override/#post-246690November 25, 2015 at 7:44 pm #247191In reply to: Problem with language/translate
r-a-y
KeymasterI think the German translation is not fully 100% translated, which is preventing WordPress from fetching the latest German translation for BuddyPress.
If you are able to help translate the remaining strings, please visit:
https://translate.wordpress.org/locale/de/default/wp-plugins/buddypressAlso, read the following guide to find out how to contribute towards the translation:
November 25, 2015 at 6:57 pm #247189In reply to: php fatal error $message->send()
r-a-y
Keymaster@garprogram – This fatal error is due to some changes we made in BP v2.4.0 to give users proper feedback messages when a private message fails to send.
It looks like we might have to add some additional hooks so plugin devs can set the error message.
In the meantime, here are two things I would recommend:
1. Use the
'bp_messages_recipients'
filter instead of using the'messages_message_before_save'
action:
https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-messages/bp-messages-actions.php?marks=77-84#L772. As Henry mentioned, if you have to unset one recipient, you should unset all of the recipients to avoid the message from sending. The default error message will probably not suit your needs, so you might have to filter the error message with the
'gettext'
filter temporarily until we introduce better error handling for plugin developers.November 25, 2015 at 5:52 pm #247187In reply to: Dynamically Display HTML depending on User
shanebp
ModeratorYour question now seems to be about s2member, not BuddyPress.
How are you setting this variable:
$s2member_level1
?If you want to display the paybox based on s2member level, then use an s2member function to set
$s2member_level1
or use a constant.if( 2 == S2MEMBER_CURRENT_USER_ACCESS_LEVEL ) // etc
https://www.s2member.com/codex/stable/s2member/api_constants/package-globals/#src_doc_S2MEMBER_CURRENT_USER_ACCESS_LEVELNovember 25, 2015 at 3:41 pm #247181Henry Wright
ModeratorBut where is the text “Vendor registration is currently closed. If you have an existing account, you may login and apply to become a vendor” coming from? I did’t find that anywhere in BuddyPress code when I just ran a search.
November 25, 2015 at 3:39 pm #247180In reply to: Does Buddypress even work?
shanebp
ModeratorBuddyPress does not include forums.
You can use bbPress for forums.
bbPress is designed to integrate with BuddyPress.Be sure to read this page in the Documentation ( aka codex ):
November 25, 2015 at 2:31 pm #247178lifeisgood134
ParticipantHi Henry,
yes, I am very sure it is created by BuddyPress. It only appeared right after I’ve done those mentioned (installed, deactivated, and then tried to remove BuddyPress’s all files). I didn’t install any plugin during this period.
November 25, 2015 at 2:26 pm #247177Henry Wright
ModeratorVendor registration is currently closed. if you have an existing account, you may log in and apply to become a vendor
Are you sure this line of text is associated with BuddyPress? What plugins do you have activated? And also what theme? It could be coming from one of those?
November 25, 2015 at 2:17 pm #247176lifeisgood134
ParticipantHi,
That’s what I did, but it is still showing the error “Vendor registration is currently closed. if you have an existing account, you may log in and apply to become a vendor”. How do I fix this? I think the code is not completely removed from WordPress even when I delete BuddyPress in Plugins.
-
AuthorSearch Results