Forum Replies Created
-
In reply to: Looking for a list of BP plugins
Here’s a full list of plugins in the WordPress repository tagged “buddypress”
In reply to: is_404() triggered on every BuddyPress pageIn reply to: Change username to descriptionIn WordPress there’s
user_login,user_nicenameanddisplay_name.In general,
display_nameis used on the front end to display the user’s name. This might be the same asuser_loginbut more often it’s the user’s first name and last name.user_loginis the string used to authenticate the user when logging in.user_nicenameis usually the same asuser_loginbut it is a sanitised version used in URLs so it may be different ifuser_logincontains special characters.Using your description field in place of
user_nicenameshould be possible but it’s likely you’ll need to use custom code. I’m not aware of a plugin that will get this done for you.Hope this helps.
In reply to: Change username to descriptionYou’ll want to sanitise your descriptions before using them in the URL.
sanitize_title_with_dashes()will be helpful. You’ll also need to make sure they’re unique (user’s can’t have the same URL).https://codex.wordpress.org/Function_Reference/sanitize_title_with_dashes
In reply to: Import Might Network to BPI’m not aware of a plugin that can do this. You might need to use a custom solution.
In reply to: Will BuddyPress work for me?@fifthhouse it’s certainly possible using BuddyPress. We actually have a Jobs Board here if you wanted to post your requirements?
In reply to: Will BuddyPress work for me?@fifthhouse when I suggested data be added against the event’s meta I didn’t mean the host or facilitator do it manually. WordPress and BuddyPress have a pretty extensive action system which you can hook to. The code will run automatically when the action happens.
Here’s the Plugin API documentation in case you need it:
In reply to: Show & Tell: VeloHive.comI run Trusty at home and the best version that distro offers is 5.x. I had to add a PPA to get 7.x package(s).
In reply to: Show & Tell: VeloHive.comCool site!
**There are a lot of plugins I’d also like to try out and use… but the problem is im on php 5.3.5 (which i know i need to upgrade)
You should try to upgrade as soon as possible to PHP 7+, the performance improvement alone is worth the effort.
In reply to: Hiding admins activity and profile errorsI’ve tried pasting … at the top of my current code and it is still the same showing an fatal error message and allowing me to view the admins profile.
You will need to have a basic understanding of the code to get this done. The code you copied and pasted just limits the activity stream to 5 entries per page. It doesn’t filter admin entries or hide the admin’s profile.
In reply to: Hiding admins activity and profile errorsI recommend using the
bp_after_has_activities_parse_argsfilter to modify the activity stream (remove admin items). Check out this helpful article:In reply to: Will BuddyPress work for me?Can Buddypress accomplish this? If so, would it be a complicated and labour intensive process to implement?
WordPress and BuddyPress should be able to handle this. The 2 levels of members you speak of could be either BuddyPress member types, or WordPress roles.
However, there is one tricky part. People need to be able to search for each event type, and also whether the event is hosted by either a “Facilitator,” or a “Host.”
This part is easy to solve. You would save either “facilitator” or “host” against the event’s meta when the event is created or updated. Then when you build your custom search, you can use the
pre_get_postshook to output matched posts, using both the search and meta query parameters inWP_Query.In reply to: Comments and HtmlIt’s likely the comment area is plain text, which is why you will see HTML instead of links, images and so on. You will need to use something like TinyMCE to provide your site users with rich text editing.
In reply to: User DatabaseAnd here’s the BP database diagram
In reply to: User DatabaseTake a look at this article
https://codex.wordpress.org/Database_Description%23Multisite_Table_Overview
In reply to: PROFILE HELPHow many profiles am I able to make with buddypress on my website, enough for a school community ?
This should be fine. BuddyPress can handle a huge number of profiles quite easily. Note though, your server hardware will need to be good if there’s lots of site activity.
Is it possible to create PREMADE accounts for all these people (students) ?
Yes but you will need to custom code this.
When people post on the main stream, is it possible for them to post anonymously BUT still logged into their accounts ? Just like ask.fm if anyone remembers that.
Not by default. Each activity item is associated with a member. That said, what is displayed on the front end is entirely up to you (or more specifically, entirely up to your theme author).
In reply to: Cannot find functions defined somewhere in BP coreI wouldn’t recommend changing core files because when you update BuddyPress, you’ll lose all of your modifications.
In reply to: Member countA member doesn’t become “active” until they sign in for the first time. Have all members logged in after they registered?
In reply to: Adding sidebar to messages pagesCan you paste your code?
I should have been clearer. You should post on the plugin’s support forum because there’s a chance Brajesh won’t see this here. Hope you’re able to get the issue resolved.
In reply to: How to add all members on the mapHi @olegator1
Which map are you referring to?
Hi @coolhunt
Have you notified the plugin author of the problem?
In reply to: Cannot find functions defined somewhere in BP core@artempr yes you can but it’s recommended you use the
messages_message_before_saveaction instead of the individual filters:messages_message_sender_id_before_save messages_message_thread_id_before_save messages_message_subject_before_save messages_message_content_before_save messages_message_date_sent_before_saveYou can use it like this:
add_action( 'messages_message_before_save', function( $message ) { // $message->sender_id // $message->thread_id // $message->subject // $message->message // $message->date_sent } );I believe the
$messageobject is passed by reference so you can modify the properties inside your function.In reply to: Cannot find functions defined somewhere in BP coremessages_message_subject_before_saveisn’t a function which is probably why you had trouble finding it. It’s a filter inside class-bp-messages-message.php. The full path to the file is bp-messages/classes/class-bp-messages-message.php.In reply to: Pulling from buddypressYou don’t need this:
if ( !function_exists( 'xprofile_get_field_data' ) ) { require_once '/bp-xprofile/bp-xprofile-functions.php'; }If BuddyPress is active then
xprofile_get_field_data()should be available.