Search Results for 'buddypress'
-
AuthorSearch Results
-
November 15, 2016 at 2:32 pm #261031
In reply to: Problem with message for all users
ico33
ParticipantUPDATE
No, there is not the problem of users deleted with the same name.
Now after having deactivated and reactivated buddypress, private messages are working. The only issue, at the moment, is that strange sentence. You send a message to a user named ABCDEFG
and after sending, it says
Conversation between Deleted User, Deleted User, ABCDEFG and you.
I can’t understand who are the deleted user, and how to fix the issue
November 15, 2016 at 2:26 pm #261030In reply to: How To Activate Existing Members
danbp
ParticipantDeactivate https://fr.wordpress.org/plugins/smart-countdown-fx/, activate 2016 theme and give a try
It seems that this plugin throws an error.
You may also deactivate all plugins, but BP and search for an issue by reactivating them one by one.
And if nothing found for plugins, you have to debug the theme.https://buddypress.org/support/topic/when-asking-for-support-2/
November 15, 2016 at 2:24 pm #261029In reply to: Problem with message for all users
ico33
ParticipantOk after deactivating and reactivating Buddypress plugin…. the user receiver seems to receive the messages, again with the strange sentence
Conversation between Deleted User, Deleted User, XXXX and you.
Could it be that there was other user with the same name XXX, that then was deleted? And in someway the system find 2 deleted user and user XXX?
November 15, 2016 at 2:12 pm #261027In reply to: Problem with message for all users
ico33
ParticipantI deactivated PRIVATE MESSAGE in Buddypress options, and then re-activated.
How strange… now I can send a message to a user named XXX
When I send the message, after that it appears below as “Conversation between you e DELETED USERS, DELETED USERS, XXXX”
Then if you refresh the page, the message count is 0, as it disappeared. My god, I just opened I new website, it worked till yesterday. It’s a great problem and I don’t think it’s simple to understand
November 15, 2016 at 1:26 pm #261024In reply to: How To Activate Existing Members
Bingo Bongo
ParticipantThanks Dan –
Profile Sync is checked in Settings –
Went through each checkbox in Tools > Buddypress one by one. All completed, didn’t notice any errors.
Haven’t done the BBPress Tools yet – but I noticed something, so I think BBpress is irrelevant here.
If I order the list Alphabetically on the members page (http://www.zetaunit.com/members/) – then all 129 Members show up, with pagination to page through them….
At least it seems Buddypress is recognising all registered Users.
Maybe I’m missing something simple again, or using the wrong terminology.
But I can’t find a setting for that page / select drop-down, though, to select alphabetically by default, or to ‘display all registered users by default’.
November 15, 2016 at 11:17 am #261020In reply to: Incorrect password (even when it is right)
mashauri
ParticipantI tried to de activate buddypress so I could re-activate t nd see if it made a difference. Bt I was unable to do as as I receved the following error:
Fatal error: Call to undefined function bp_core_get_user_displayname() in /home/mashauri/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1416Please NOTE: this is input to my main query – not the issue itself of incorrect passwords
November 15, 2016 at 10:08 am #261018In reply to: Group header file problems
jaumearagay
ParticipantI have:
a.- Updated to BP 2.7.2. <– Still same problems but warnings hidden by my code.
b.- Removed the buddypress folder in my theme with edited files and checked. <– Still same problems: Warnings (as my code did not hide them), “Moderators” tag and “no mods” string.
c.- Downloaded and activated Twenty Sixteen theme. <– Same as in previous step.
And I get the same warning explained in the first entry in this post so it’s not about my modified files and it’s not about a theme problem.
There are still two problems:
1.- The warning points to get_group_moderator_ids( $group_id ) in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php
I don’t have (or have had) moderators in any group so, “Creating default object from empty value” <– What default object from what empty value?
2.- The problem is somewhere else: In line 33 of the group-header.php file (in groups/single/ ) we find this line:
if ( bp_group_has_moderators() ) :where “bp_group_has_moderators()” is giving a false “true” value as I don’t have moderators in any group so it should not execute in the first place. And after the Moderators tag it says “no mods”, so it on a later step recognizes there are no moderators!!!
Has the bp_group_has_moderators() function or get_group_moderator_ids( $group_id ) function been altered? Or the data about mods and/or admins in the groups?
Because one of them creates two warnings (one before listing the admins and one before listing the mods) that were not there before and also shows a “Moderators” tag that did not appear as the
if ( bp_group_has_moderators() )returned the FALSE value my no-mods groups “deserve” (which it later recognizes when adding the “no mods” string) that now returns this “buggy” TRUE value and shows the tag.November 15, 2016 at 6:30 am #261012bcanr2d2
ParticipantI currently have used the example shown in the following post https://buddypress.org/support/topic/custom-avatar-upload-page/ and then edited bp-core-template.php to change the function that lets it know when to load the full avatar loading page.
My issue is now that the crop image is not functioning, any help?
November 15, 2016 at 5:34 am #261009In reply to: How To Activate Existing Members
danbp
ParticipantHi,
wherever your members registered from (wp, bbp or bp), they are all in the same table: wp_users. To be counted on BP’s member directory, these members must have been loggedin at least once.
Did you synchronized WP and BP members (see BP settings) ?
Once done, go to Tools > BuddyPress and run all options one by one. Do also the same for Forums.November 15, 2016 at 5:25 am #261008In reply to: Error 404 for non logged in users
danbp
Participantif you’ve found a bug, please refer it on Trac.
Login with same credential as on this forum, describe the issue and give any details to reproduce it.November 15, 2016 at 4:28 am #261006In reply to: Error 404 for non logged in users
dkelm
Participant@henrywright This is a valid bug…
Please fix this issue.
Only happens when users are not logged in
The site isn’t doing a redirect to login screenDo I have to rollback to 2.5.3?
Reproduce the bug by logging out then entering in the url…
This should be an issue for every BuddyPress site!!
November 14, 2016 at 7:48 pm #261001Venutius
ModeratorHave you thought about just using BP Registration Groups?
November 14, 2016 at 7:03 pm #260998In reply to: Registration problems
Venutius
ModeratorTaking a look at it you do not have a register page by the looks on things, are you sure you have created a register page and associated that to the BuddyPress Register component?
November 14, 2016 at 6:50 pm #260996In reply to: Registration problems
Venutius
ModeratorHave you logged out in order to try to register?
Did you set up the registration page as a menu item? If so what happens when you are logged out and try to access it?
I’m setting up a website for people looking to set up BuddyPress social networks, you might want to take a look. It includes a guide to setting up and using BuddyPress for the first time:
November 14, 2016 at 4:42 pm #260994In reply to: Lost Buddypress Menu Item
valleev
ParticipantThanks @modemlooper, I tried changing the members page to something else, then changing it back but the “Members” item still does not appear in Appearance/Menus/Buddypress.
November 14, 2016 at 8:28 am #260984In reply to: Remove Login & Register Links From Toolbar
danbp
ParticipantI don’t understandd this paranoïd question: So this is another case where they decided to leave out any option.
– Who are “They” ?
– What are the other case ?
– Which options are leaved out ?Really mysterious, unless the truth is elswhere ? May be in the Twilight Zone ?
You have the option to disable the Toolbar under Settings > BuddyPress > Options.
You have the possibility to use BP’s login widget under Apparence > WidgetsNovember 14, 2016 at 8:18 am #260982In reply to: How to make Buddypress support my Theme completely
danbp
ParticipantHi @vickievik,
the right question here would be how to make my theme compatible with buddypress.
The thing to understand is that BP use dynamic content for its page and that these page are NOT ordinaty WP pages.
For each content, BP fires a so called template-part.
Lets take as example a profile pageThe slug is /members/ which exist as “page” on wp’s page list. This wp page has no content and also no model or template. It’s just a “slug” in the wp ecosystem.
When you’re on a profile you have the page(aka /members/) but also many template parts, depending what you’re doing on that profile. Aside the common parts header – content – footer, you’ll find also personnal activity, frineds, groups, mentions, notifications, messages and not the worst, profile settings. All this on the same “page”.
Most theme mistakes are at this point. People try to design the page, instead to work the template parts.
When you design a theme, you usually design something for a page, independantly from any plugin. This structure is used by any Twenty Theme and you can follow them as model, because these themes are bullet proof and systematically used by all wp devs when building (in our case) BuddyPress
BP can be used with almost any existing theme, so far this theme is respecting WP’s coding standarts.
If you have brocken elements, and specially thoose using JS, it could be due to missing ID or class or even more simple, some missing instructions/conditionnals in your theme.
BP’s template parts are designed to fit with a majority of themes. The best to do, at least while creating your first theme, is to use BP “as is” and build your theme around thoose existing parts and not to remove/modifying BP arts to fit your creation.
November 13, 2016 at 9:54 pm #260972In reply to: How to make Buddypress support my Theme completely
Earl_D
ParticipantThis might be a good place to start if you looked at it already?
November 13, 2016 at 1:50 pm #260970In reply to: Display user country flag
davehakkens
ParticipantOK, we got it to work in a different way. Special thanks to @coffeywebdev for the help.
For those interested:This snippet is used in the functions.php to get the locations from the profile fields and show the flag image.
function dh_get_flag_by_location($country){ if($country <> '' && !empty($country)){ $country_filename = get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '.png'; $country_path = get_stylesheet_directory() . '/img/flags/' . sanitize_file_name($country). '.png'; if(file_exists($country_path)){ $html = '<img src="' . $country_filename . '"/>'; } else { $html = $country; echo '<!--' . get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '-->'; } echo $html; } }Then we needed to change 2 templates to show this flag image in
the Bbpress forum replies and on the buddypress members page. So we added the code necessary to show the flag
bbpress/loop-single-reply.php
<div id="country" style="float:left;margin-right:.5em;"> <?php $user = get_userdata( bbp_get_reply_author_id() ); $country = xprofile_get_field_data( 42, $user->ID ); dh_get_flag_by_location($country); ?></div>buddypress/members/members-loop.php
<div class="member-location"> <?php $country = bp_get_member_profile_data('field=Location'); dh_get_flag_by_location($country); ?></div>November 13, 2016 at 1:47 pm #260968In reply to: help with default activity stream tab
danbp
ParticipantYou’re talking about 2 different things: profile and groups. Let me explain you a little…
On the buddy nav bar, navigation looks similar but doesn’t work the same way on profile and on group page. While profile navigation use nav and sub-nav, the group navigation use only sub-nav.
Also, as documented on codex,
define('BP_DEFAULT_COMPONENT', '...' );is a constant related to a component, not a sub-nav tab. It let you define the default landing component, but not the one or other sub-nav tab. For example on profiles, the component Activity has 4 sub-nav attached to it: personnal, mentions, favorites, friends, groupsTo get one of them, you need to specify a new default tab, not another component. 🙂
Buddybar main nav items on profile page
Activity Profile Friends Groups Forums (if you use group forums)Default tab is Activity/personnal. To change it for “Friends” you use the constant:
define('BP_DEFAULT_COMPONENT', 'friends' );To change the default landing tab from (Component/sub-tab). For example Activity/personnal to Activity/mentions, you define a new nav default tab with a function like this one:
function bpex_set_member_default_nav() { bp_core_new_nav_default ( array( 'parent_slug' => buddypress()->activity->id, // other "activity" sub_nav slugs : personal favorites friends groups 'subnav_slug' => 'mentions', 'screen_function' => 'bp_activity_screen_mentions' ) ); } add_action( 'bp_setup_nav', 'bpex_set_member_default_nav', 20 );For groups, it’s a similar technique, but a different syntax. The following example is a bit sophisticated, as it let you change the landing tab differently for each defined group.
Depending each group activity or target, you can choose a different default tab.
In this example, the kill bill group has Forum as landing tab, while Leon’s group use the group member directory.function bpex_custom_group_default_tab( $default_tab ){ /** * class_exists() is recommanded to avoid problems during updates * or when Groups Component is deactivated */ if ( class_exists( 'BP_Group_Extension' ) ) : $group = groups_get_current_group();//get the current group if( empty( $group ) ) { return $default_tab; } switch($group->slug){ case 'kill-bill': // group name (use slug format) $default_tab='forum'; break; case 'leon': $default_tab='members'; break; default: $default_tab='home';// the default landing tab break; } return $default_tab; endif; // end if ( class_exists( 'BP_Group_Extension' ) ) } add_filter('bp_groups_default_extension','bpex_custom_group_default_tab');All this tested and working with BP 2.7.2 / Twenty Sixteen
November 12, 2016 at 4:37 pm #260956In reply to: [Resolved] Has BP 2.7.2 eliminated cover images?
danbp
ParticipantHi,
no of course ! Read 2.7.2 changelog.
If you use a child theme or a third party theme, ensure it is updated for BP 2.7+: verify the templates.
November 12, 2016 at 12:49 pm #260953In reply to: help with default activity stream tab
danbp
ParticipantNovember 11, 2016 at 1:05 pm #260939shanebp
ModeratorTry the solution near the bottom of this codex page:
https://codex.buddypress.org/emails/#filter-from-address-and-nameadd_action( 'bp_email', function( $email_type, $email_obj ) { $email_obj->set_from( "custom@example.com", "Custom Website Name" ); }, 10, 2 );November 10, 2016 at 9:59 pm #260930In reply to: Hiding register link
Venutius
ModeratorI think you are looking for BP Registration options – that provides you with new member moderation.
https://wordpress.org/plugins/bp-registration-options/If you are new to BuddyPress I’m developing a site aimed at helping people get the most out of BuddyPress http://buddyuser.com
November 10, 2016 at 7:48 pm #260924In reply to: Profile header image size
modemlooper
ModeratorYou can find this information in the codex https://codex.buddypress.org/themes/buddypress-cover-images/
-
AuthorSearch Results