Search Results for 'buddypress'
-
AuthorSearch Results
-
May 23, 2015 at 8:21 am #239562
In reply to: To get help.
danbp
ParticipantThat’s normal: page can’t walk, as they have no feet ! 🙂
ça ne marche pas n’a pas le même sens en anglais. Ils disent ça ne travaille pas (does not work).You have to create these page manually. This is explained in Getting started guide, configuration section.
If you feel better in french, visit bp-fr.net
May 23, 2015 at 8:14 am #239561danbp
ParticipantYes indeed, there is a way.
Step by step tutorial with example code which you add to bp-custom.
Note: use this code as is and follow the instruction. Once you understood what it does and how it works, you will be able to modify it to your needs.First, create a new xprofile field in the first group field (aka Base Group and containing Name as default field). Only fields created in that group are visible on the register page. Call it Type, enter description and choose multiselectbox as field type. Add operator, vendor, coach as select option.
That’s all for the register part handled by BuddyPress.
Now we need to declare the whole thing to get it work on front-end.
Member-type is an additionnal functiony to select members by… type ! Not by role, not by latest, mst popular or anything else. Just (for the moment) by a custom type of your choice.We have to built a member directory for our types. We have 3 types and they will be shown on 3 new tabs on that directory.
1) we formally declare the member types
2) we count members by type (to stay correctly informative on the directory)
3) we display the tabsfunction using_mt_register_member_types() { bp_register_member_type( 'operator', array( 'labels' => array( 'name' => __( 'Operators', 'using-mt' ), 'singular_name' => __( 'Operator', 'using-mt' ), ), ) ); bp_register_member_type( 'vendor', array( 'labels' => array( 'name' => __( 'Vendors', 'using-mt' ), 'singular_name' => __( 'Vendor', 'using-mt' ), ), ) ); bp_register_member_type( 'coach', array( 'labels' => array( 'name' => __( 'Coaches', 'using-mt' ), 'singular_name' => __( 'Coach', 'using-mt' ), ), ) ); } add_action( 'bp_init', 'using_mt_register_member_types' ); function using_mt_count_member_types( $member_type = '', $taxonomy = 'bp_member_type' ) { global $wpdb; $member_types = bp_get_member_types(); if ( empty( $member_type ) || empty( $member_types[ $member_type ] ) ) { return false; } $count_types = wp_cache_get( 'using_mt_count_member_types', 'using_mt_bp_member_type' ); if ( ! $count_types ) { if ( ! bp_is_root_blog() ) { switch_to_blog( bp_get_root_blog_id() ); } $sql = array( 'select' => "SELECT t.slug, tt.count FROM {$wpdb->term_taxonomy} tt LEFT JOIN {$wpdb->terms} t", 'on' => 'ON tt.term_id = t.term_id', 'where' => $wpdb->prepare( 'WHERE tt.taxonomy = %s', $taxonomy ), ); $count_types = $wpdb->get_results( join( ' ', $sql ) ); wp_cache_set( 'using_mt_count_member_types', $count_types, 'using_mt_bp_member_type' ); restore_current_blog(); } $type_count = wp_filter_object_list( $count_types, array( 'slug' => $member_type ), 'and', 'count' ); $type_count = array_values( $type_count ); if ( empty( $type_count ) ) { return 0; } return (int) $type_count[0]; } function using_mt_display_directory_tabs() { $member_types = bp_get_member_types( array(), 'objects' ); // Loop in member types to build the tabs foreach ( $member_types as $member_type ) : ?> <li id="members-<?php echo esc_attr( $member_type->name ) ;?>"> <a href="<?php bp_members_directory_permalink(); ?>"><?php printf( '%s <span>%d</span>', $member_type->labels['name'], using_mt_count_member_types( $member_type->name ) ); ?></a> </li> <?php endforeach; } add_action( 'bp_members_directory_member_types', 'using_mt_display_directory_tabs' );We also need to sort the members list on each type tab using the loop scope.
function using_mt_set_has_members_type_arg( $args = array() ) { // Get member types to check scope $member_types = bp_get_member_types(); // Set the member type arg if scope match one of the registered member type if ( ! empty( $args['scope'] ) && ! empty( $member_types[ $args['scope'] ] ) ) { $args['member_type'] = $args['scope']; } return $args; } add_filter( 'bp_before_has_members_parse_args', 'using_mt_set_has_members_type_arg', 10, 1 );And we finally clean the cache to stay up to date with the output
function using_mt_clean_count_cache( $term = 0, $taxonomy = null ) { if ( empty( $term ) || empty( $taxonomy->name ) || 'bp_member_type' != $taxonomy->name ) { return; } wp_cache_delete( 'using_mt_count_member_types', 'using_mt_bp_member_type' ); } add_action( 'edited_term_taxonomy', 'using_mt_clean_count_cache', 10, 2 );That’s all for a members directory page showing All Members and tabed Members by type.
If you want to show the type of a member on his profile header, use this:
function using_mt_member_header_display() { $member_type = bp_get_member_type( bp_displayed_user_id() ); if ( empty( $member_type ) ) { return; } $member_type_object = bp_get_member_type_object( $member_type ); ?> <p class="member_type"><?php echo esc_html( $member_type_object->labels['singular_name'] ); ?></p> <?php } add_action( 'bp_before_member_header_meta', 'using_mt_member_header_display' );Or if you want to display the type under each user avatar on the member directory, you can use this snippet. Note: was originally made to add a geoloc shortcode below the member type. I let it as is, so you can see how it’s done.
function who_are_you_directory() { // by member_type name + geoloc (wpgeo me) $user = bp_get_member_user_id(); $terms = bp_get_object_terms( $user, 'bp_member_type' ); if ( ! empty( $terms ) ) { if ( ! is_wp_error( $terms ) ) { foreach( $terms as $term ) { echo '<p>' . $term->name . '</p>'; echo do_shortcode('[gmw_member_info]'); } } } } add_filter ( 'bp_directory_members_item', 'who_are_you_directory' );Anything inspired by Codex and heavy topics reading.
May this help.
May 23, 2015 at 4:11 am #239558In reply to: BP Member Types not displaying or working!?!?!?
maelga
ParticipantMay 22, 2015 at 5:34 pm #239549In reply to: Remove Hidden or Public type of group?
danbp
ParticipantYou can remove the creation option from the template. You have to do this from within a child theme by using a template overload.
Concerned file is bp-templates/bp-legacy/buddypress/groups/create.php
Part to remove for the “hidden” option is
<label> <input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong> </label> <ul> <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li> <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li> <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> </ul>May 22, 2015 at 4:39 pm #239547KeithMon
ParticipantI’m experiencing the same issue. After I visit BuddyPress pages and then navigate to any standard or template page, except the homepage, but including the blog, I get a 404. Sometimes a simple refresh will work. Sometimes navigating to a new page will work. Sometimes the issue will not be fixed unless I refresh Permalinks or log-out and log-in again.
WordPress 4.2.2
BuddyPress 2.2.3.1
bbPress 2.5.7 (though, the issue continues even when bbPress is deactivated)This issue was asked on another post that was closed before an answer was provided:
https://buddypress.org/support/topic/buddypress-iis-and-randomreoccurring-404-errors/This post had a resolution:
https://buddypress.org/support/topic/page-not-found-error-on-static-pages/I have checked and Mod_Rewrite is enabled through htaccess as defined here:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /higher/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /higher/index.php [L] </IfModule> # END WordPressAm I missing anything here? This appears to be an issue with BuddyPress. Does anyone have a resolution?
May 22, 2015 at 11:46 am #239532In reply to: Hide or erase Sub replies
Henry Wright
ModeratorThis comment was kind of on the right track but as most of the people pointed out in that topic, editing core files is a very bad idea.
Instead, you should take a look at this article to familiarise yourself with the Template Hierarchy. That way, you can remove the ‘reply’ link and be sure your modifications will remain after you upgrade BuddyPress.
May 21, 2015 at 9:50 pm #239518In reply to: Buddypress post problem
@mercime
Participant@ashket That could be related to a theme or a plugin issue because that’s not normal at all. What are your WP/BP versions for that installation? If you change to Twenty Fifteen theme and deactivate all plugins except BuddyPress, is the issue you reported resolved?
May 21, 2015 at 5:53 pm #239507In reply to: How to customize labels ?
PersepolisTehran
ParticipantI changed this note “Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time” to my custom note, and i changed “Blog detail” to “Profile detail”. Then i made 2 file : 1) – buddypress-en_US.mo . 2) buddypress-en_US.po and i uploaded both to /wp-content/languages/plugins/ .
May 21, 2015 at 5:14 pm #239503In reply to: Buddypress pages don’t work at all
danbp
ParticipantAnswered on similar question of yours
https://buddypress.org/support/topic/install-issue-menu-hrefs-dont-work/#post-239502May 21, 2015 at 5:12 pm #239502In reply to: [Resolved] Install issue: menu hrefs don’t work
danbp
ParticipantRead the manual …
May 21, 2015 at 2:43 pm #239493In reply to: Urgent: Turning my site into https is not working
Henry Wright
ModeratorMay 21, 2015 at 2:09 pm #239491In reply to: Urgent: Turning my site into https is not working
Hope
ParticipantYes I gave WordPress its own directory under the site root and Buddypress is working fine! My website is working fine from about a year an a half, the problem is in turning it into HTTPS which is not working :S
May 21, 2015 at 1:58 pm #239490In reply to: Extending group fields
danbp
ParticipantNothing ready to use avaible at the moment. Depends of your coding level…
An old plugin, don’t know if it is still working: bp group reviews
A different one, maybe: buddypress groups extras
And a little read of the codex:Good luck !
May 21, 2015 at 1:30 pm #239487danbp
ParticipantHave you tested this plugin ?
https://wordpress.org/plugins/buddypress-upload-avatar-ajax/May 21, 2015 at 1:12 pm #239485In reply to: Urgent: Turning my site into https is not working
danbp
ParticipantDepends where wp is installed ! Usually at site root.
See your WP settings (settings > general) if unsure.
Remember also that BuddyPress does not work on installations where you give WordPress its own directory.May 21, 2015 at 12:22 pm #239481Mickey
ParticipantLet me re-emphasize that Buddypress is awesome, but because its so awesome these little things which I would take for granted, simply stand out, at least to me an end user.
Perhaps our perspectives are different and you guys are looking at it from coding standpoint, I do not, Im the end user and I am comparing buddypress to everything else out there.
The only sites using just username are dating sites and perhaps some forum sites, sites where specifically people do not want to reveal their identities. If someone is running that type of a site than there are no issues.
However, if I want a full name, I need at least two fields, username and then something for the full name, and ideally 3 fields, username/first name/last name, and that is weird, out of hundreds of sites I have signed up for I have never had to enter a username and name, that simply makes no sense for someone signing up, its confusing. For you guys who deal with buddypress for years perhaps its normal, but its not when you look around at everything else.
Another thing is the avatar upload,again I dont think I ever encountered another site where I wasnt able to upload an avatar on registration. It may make sense from coding stand point or something else, from end user standpoint it makes no sense.
Just my 2 cents, I love buddpress and thanks for your help as always.
May 21, 2015 at 10:22 am #239476totorosk8
ParticipantRESOLVED
the problem came from the buddypress extended profil fonction.May 21, 2015 at 7:05 am #239472danbp
Participanti’m part of the one percenter who cares about well formed urls and a basic system which is working on 23% of www’s sites !
If you have enhancement ideas, feel free to post in the appropriate forum or open a ticket on Trac.
BP is only a WP plugin and doesn’t handle registration. On the other hand, WP use a very short registering form, containing 3 fields: username, email and password.
First and last name are optionnal fields on the standard WP user profile. These fields are not mandatory, never appear on the registration page and it’s in the freedom of everyone to use them or not. When BP is installed, he provides a mandatory Name field, which can be used to enter a username or a first/last name.
Even if i have no percentage to give you, i’m pretty sure that almost all users are satisfied to use a CMS which doesn’t ask them for real names at first ! And why not their address, blood group, gran’mother nickname or their mom’s phone number ?
This are privacy options, and WP is smart enough to not abuse of such things, by default. Smart enough also to use the simpliest existing register routine, like all other major web operators, a username, a valid email and an encrypted password.
Anything else is matter of flexibility, one of the major interrest to use BuddyPress. And definetly no, not all communities have members who knows each others. Don’t make you the spokeman of such behalf speculation. 😉
I think you’re confused by system requirements and your own desires. To get it clear for the register aspect, read here please.
Oh, and the answer to your question is here:
May 21, 2015 at 2:38 am #239470Mickey
Participant99% of people out there care about end functionality more than URLs, how does facebook solve it, -1-2 -3 is fine, and you can look at pictures if there are few with same name. Buddypress is a great product, no doubt about it, but it seems to cater to family style community where everyone knows each other, which probably explains lack of a basic function of blocking another member for example.
I am not the only one who complains about usernames, if you go back on these boards people have been talking about inconvenience of this system for a long time. The same goes for avatars, I dont care what some of the guys here tell me, you need at least an option to have avatar upload on registration.
May 20, 2015 at 8:46 pm #239467Mickey
ParticipantThat should not be an issue whatsoever with 2 John Smiths, two should should up and you click on whichever one you want. Most people I know actually deactivate the activity system. When they message the private message by clicking on profile, most communities are not the type everyone knows everyone, its actually the other way around, those types are in minority and buddypress seems to cater to them.
Its actually a very simple solution, implement an option, with username and another one first and last name.
May 20, 2015 at 7:51 pm #239463Henry Wright
ModeratorHi @minglonaire
This whole username, name system in Buddypress is weird
What do you think is weird about it?
May 20, 2015 at 11:23 am #239449In reply to: How to display ONLY non-friended persons.
viesii
ParticipantMay 20, 2015 at 9:15 am #239437Topic: @mention autosuggest in visual editor
in forum How-to & TroubleshootingOakCreative
ParticipantHello,
I am using WordPress’ WYSIWYG editor to enhance the What’s New textarea. That’s all working fine, however, the new autosuggest @mention only seems to work in the text editor.
Is there a way to get it working within the visual editor?
Using WordPress v4.2.2 and BuddyPress v2.2.3.1.
May 20, 2015 at 6:15 am #239436In reply to: Custom Post Type Support for Activity
milenushka
ParticipantHi @imath
I am sort of loosing my hair since I updated to the latest version of buddypress.
had searched the forum a few months back and put a LOT of time into custom coding that the activity will read my custom post types. I put that code in my functions.php file and was really happy with everything- each activity had it’s own text and it was really nice.I am not a coder, just building my site, and now, since this update, all my work is gone- all I get is the generic “posted a new item”, and a link to the post- not even the name of the post. I have 3 custom post types, and I need them all to be unique.
I don’t know what to do now, how to start over?Can I just cancel the new custom post support and go back to my own code?
Please help.May 19, 2015 at 11:51 pm #239430screampuff
ParticipantSorry, it is working, edited that post but was a moment late. The issue was I had just updated Buddypress and forgot to create a new language file from the updated .pot
-
AuthorSearch Results
