Forum Replies Created
-
You could also use one of these snippet in bp-custom
In reply to: Cant activate pending accountsNo need to be rude. I’m trying to help you by asking questions, that’s all.
As you use a third party plugin, i suggest you to deactivate it or even, to remove it completely and to test WP+BP only. Don’t know the plugin you mention, but one thing is sure, something is going wrong. On a standart install, handling pending members is generally not a problem.
WP was updated 48 hours ago to 4.3 and is working flawless with BP2.3.2.1. (i have 6 BP site running on different configuration, without issues). If your issue appeared after this update, it is possible that a plugin is now no more able to work correctly with this new release.
FYI, BRO is compatible up to: 4.2.4 and was last updated: 2015-7-21. Pretty recent, but who knows where the error comes from ? Have you asked for that issue on the plugin support ? No…
If you thing it is an issue with BuddyPress, report the bug, describe the way to reproduce by opening a ticket on BuddyPress Trac, the only place where you can expect a fix. If BP devs agree with the issue.
More about BP bugs on Codex.
In reply to: Member CountFind some hints here:
Sorry, you have to ask the author, it’s not a BuddyPress related question.
In reply to: Cant activate pending accountsIt’s unclear to me how your site is installed and set up.
And you haven’t answered to have you installed both site on a same or separate WordPress ?
And on which domain is the issue ? Where can our user register (domain or sub-domain) ? Seems they register separately for each site ?
cPanel isn’t concerned, that’s your hosting management interface.
In reply to: Translation: profile > editOn a single install: danshboard > users > profile fields( your-site.com/wp-admin/users.php?page=bp-profile-setup).
Base(primary)tab, then use Edit button.
In reply to: Cant activate pending accountsHave you installed both site on a same or separate WordPress, and same question about BuddyPress ?
Another question about 3500 pending request.
Are you sure these aren’t spammers ? Why are they pending ? Have you setup this behave or is it a sudden amount of registerer ?
Can you activate one account at time ? Or is only bulk activation defect ?
In reply to: [Resolved] Not working with WordPress 4.3Do you use a custom function building a widget ?
if you used the old php4 method
parent::WP_Widget( false, $name = __( 'My widget' ) );you should now use
parent::__construct( false, $name = __( 'My widget' ) );This can also be in a theme or a plugin. BuddyPress use
_constructmethod and is not concerned.If you deactivate WP_DEBUG in wp-config, the notice will disapear. And it’s only a notice, nothing will sudenly stop to work.
In reply to: New nav itemHi @muskokee,
Will be faster for me to give you a tutorial.
– Create a template file, call it testing.php and add it at the root of your child-theme.
This file should contain a template name in header comment and some minimal html and condition to get a sidebar and a footer. The example comes also with a BP action hook.– The template file
<?php /* Template Name: Testing */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <?php if( is_user_logged_in() ) { echo'<h3>My test content title</h3>'; do_action( my_testing); }?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar( 'front' ); ?> <?php get_footer(); ?>– Go to page dashboard, and create a new page. Call it Testing and asign in page attributes Testing as template. Save.
– Open bp-custom.php and copy/paste these functions.
First we setup the nav on profile with a sub-nav going to our test page.
function bpfr_post_profile_setup_nav() { global $bp; $parent_slug = 'testing'; $child_slug = 'testing_sub'; bp_core_new_nav_item( array( 'name' => __( 'Testing' ), 'slug' => $parent_slug, 'screen_function' => 'bpfr_profile_post_screen', 'position' => 40, 'default_subnav_slug' => $child_slug ) ); //Add subnav item bp_core_new_subnav_item( array( 'name' => __( 'My Testing' ), 'slug' => $child_slug, // this slug goes to profile/name/ //'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', // this slug goes directly to a page 'parent_url' => $bp->root_domain .'/'. $parent_slug .'/', 'parent_slug' => $parent_slug, 'screen_function' => 'bpfr_profile_post_screen' ) ); } function bpfr_profile_post_screen() { add_action( 'bp_template_content', 'bpfr_profile_post_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } // we took the opportunity to add an action hook. Can be usefull... function bpfr_profile_post_screen_content() { do_action( my_testing); } add_action( 'bp_setup_nav', 'bpfr_post_profile_setup_nav' );– And because you’re testing, we’ll do a little test by inserting a text directly into the template.
function action_x() { echo 'Test lorem ipsum, i can read this !'; } add_action( 'my_testing', 'action_x' );Now you can read the snippet, add you’re own html, loops and hooks to the template file, or simply publish something on the page… Hope you’ll understand how this is working. Happy testing !
In reply to: [Resolved] Not working with WordPress 4.3BuddyPress roadmap:
https://buddypress.trac.wordpress.org/milestone/2.3.3@chevalhack, of course it is ! This forum is installed on WP 4.3. What is not working… do you see warnings or notice ? Give details please !
@toggerybob, seems it’s your membership plugin who brings these warnings.
If it is Memberhip 2, it was updated today.
https://wordpress.org/plugins/membership/BuddyPress use bbPress when you allow group forums.
If the group is private, the attached forum is also hidden ton non members of that group. Same for public or private groups.You don’t have to change the group forum setting in the forum list.
The right steps
Create a group A
A is set to private
Allow a forum for A
—— The wrong step ——–
Going to dashboard forum admin, and set forum A to private. If you do this nobody will see it except site admin.
https://buddypress.org/support/topic/hide-buddypress-and-bbpress-items-from-guests/
https://buddypress.org/support/topic/buddypress-private-group-is-not-visible-in-bbpress/Please d’ont double post.
https://buddypress.org/support/topic/buddypress-forum-hidden-group-but-still-visible-on-page-by-members/In reply to: Cant activate pending accountsHi @dj9,
are you on a single or multi WP config ?
Readers, see also this plugin used to hide XProfile Field groups from different user types based on the user’s role.
https://github.com/tannerm/buddypress-conditional-field-groupsAs I said previously, you can use your first function in bp-custom if you’re only on a live site. For me, it is working correctly. Perhaps, try by activating debug mode in wp-config, so if an error is somewhere, you’ll get a warning message.
Can’t tell you more, sorry.In reply to: Child theme – profile.phphi @muskokee
from where do you pick profile.php: bp-default or bp-legacy ?
Do you use other custom function in bp-custom.php or child-theme functions.php ?
What when BuddyPics and BP Follow are deactivated ?Just want to confirm that your snippet is (only)working on live site. For local usage, you’ve already the solution. 😉
You’re declaring 3 arguments, but only one is given if you are testing this localy.
Possible local scenarion you used:
– you create a new user
– you login as admin and activate the pending user. You get 3 warnings. Logout.
– login as new user.
– you see the messageRemove $key & $user and redo the same and all went fine.
Usefunction send_msg_to_new_member( $user_id )and change 3 to 1.
Add also a conditional check to test if the messages component is active. (see link blow).Not tested yet on live site.
This was originally published by @henrywright here:
https://buddypress.org/support/topic/deliver-custom-message-via-buddypress-to-new-users/#post-229688In reply to: Set page template for BuddyPress Registration.BP’s registration template is in: https://buddypress.trac.wordpress.org/browser/tags/2.3.2/src/bp-templates/bp-legacy/buddypress/members/register.php
Copy it to your child-theme, /your-theme/buddypress/members/register.php, and make your change in that copy.
In some case, you could also use bp_get_template_part filter.
In reply to: Override Login Form (bp-core-widgets.php)@dineshravajani07, searching this forum for “login widget” have brought many answers.
In reply to: Architecting private forums.In reply to: Making display textfield emptyHi @david-ar,
if you expect for help, give detais related to BuddyPress, not FB. Which option are you talking about?
https://buddypress.org/support/topic/when-asking-for-support-2/In reply to: Photo uploadif the developer ceases to update them This problem is the same for official or unofficial plugins.
Brajesh is a long year and well knowed buddypress plugin developper, you can trust his awesome work !
https://profiles.wordpress.org/sbrajesh#content-pluginsIn reply to: Need urgent help with BP notificationsI am writing all these code in bp-functions.php in my bududdypress folder within my theme folder. (this may be my problem).
Yeah, it is probably the problem. Custom functions for BP can/should be added to bp-custom.php, which should sit in wp-content/plugins/bp-custom.php, not in your child theme buddypress folder.
Or into functions.php of your child-theme.
bp-custom.php explained on Codex.
In reply to: how to check if the length of field is too long?Here an example for profile field lenght with some comments.
function bpfr_custom_textfield_length() { //Check if user is logged in & if xprofile component is activated if ( is_user_logged_in() && bp_is_active( 'xprofile' ) ) : $my_custom_textfield = bp_get_member_profile_data( 'field=Brief Biography&user_id='.bp_get_member_user_id() ); /* * The length = number of characters, not words. * Set the number of caracters to show. * The 3 dots are the appended text ending the excerpt. * Don't remove the quotes if you change this * BuddyPress 2.1 will add new class and id for custom fields. * The span can be omited to style this part. See ticket #5741 */ if ( strlen($my_custom_textfield) > 20) : //adjust to your need $my_custom_textfield = substr($my_custom_textfield, 20).'...'; //adjust to your need endif; // uncomment the following line to get a span around the displayed field content // echo '<span class="short-custom">'. $my_custom_textfield; .'</span>'; // comment the following line if you use the span echo $my_custom_textfield; endif; // is_user_logged_in } add_action( 'bp_directory_members_item', 'bpfr_custom_textfield_length' );Ticket #5741