Search Results for 'buddypress'
-
AuthorSearch Results
-
February 16, 2017 at 11:51 am #263830
In reply to: Errors when registering
Slava Abakumov
ModeratorIs it BuddyPress 2.8.0?
February 16, 2017 at 11:11 am #263829In reply to: Hide members
Peter Hardy-vanDoorn
ParticipantHi. I struggled with this for a while, and I agree entirely that something like this needs to be in the BuddyPress core… actually, I think much better user management needs to be in the WordPress core, not just BuddyPress, but that’s a discussion for another time…
I eventually found the code that you’re using and modified it to be able to ignore all users with a specific WP role or roles, thus removing the need to hard-code specific user IDs.
To manage user roles you’ll need a plugin such as User Role Editor by Vladimir Garagulya and create a new role that you assign to users who you want excluded (I chose “suspended”). If you use URE you can assign this as an additional role to the main one that WordPress allows you to set.
The code is here: http://pastebin.com/9xYALGfR, but I’m no PHP expert, so offer no assurances… all I can say is that it works for me 🙂
February 16, 2017 at 9:05 am #263825In reply to: Add product in buddypress plugin
Slava Abakumov
ModeratorYou will need to integrate Multi Vendor plugin into BuddyPress.
That means create specific profile pages (there is an article in BuddyPress Codex), modify BuddyPress templates in your child theme (same – see articles in Codex).You can check this as well:
February 16, 2017 at 8:20 am #263819In reply to: Cannot Sign up
danbp
ParticipantHi and welcome to BuddyPress!
It seems that you didn’t setup correctly your BuddyPress pages. Ensure they exist and are correctly declared. And also don’t forget to activate your permalinks.
Common advice: read the documentation before installing a plugin.
February 15, 2017 at 11:10 pm #263816In reply to: I can’t do anything after activation
Slava Abakumov
ModeratorWhat are your WordPress and BuddyPress versions?
February 15, 2017 at 9:59 pm #263810In reply to: I can’t do anything after activation
chirri97
ParticipantI get this error:
Fatal error: Uncaught Error: [] operator not supported for strings in /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php:281 Stack trace: #0 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(298): BP_Activity_Component->setup_admin_bar(”) #1 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(143): do_action(‘bp_setup_admin_…’) #4 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(298): bp_setup_admin_bar(Object(WP_Admin_Bar)) #5 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #7 /custom in /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php on line 281Mod Edit: Server paths obscured – best not to reveal your server paths on a public forum.
February 15, 2017 at 8:37 am #263787Slava Abakumov
ModeratorFebruary 15, 2017 at 1:38 am #263781In reply to: Hide members
shanebp
ModeratorYou need to create the code. Do so in bp-custom.php.
February 15, 2017 at 1:05 am #263780In reply to: Hide members
beforeplastic
ParticipantRe: Hiding admins from member list:
In looking back at all of these threads I realize we didn’t jot down the root path to the file we need to update with this code: $excluded_user=’1, 23, 267′;
Can someone provide the path to get to this file? I can’t seem to find it again.
example: wp-content/buddypress/bp-themes/otherfoldername/filename.php
February 14, 2017 at 11:59 pm #263779Sergio Peña
ParticipantThank you for your response.
I did ask Learndash and they referred me to third party programmers.
Since I am using buddypress groups, I thought it was appropriate to ask here as well. Apologies if I was mistaken!
So would it be something like this:
add_shortcode('course_mentor','nex_course_mentor'); function nex_course_mentor($atts, $content = null){ if(!is_user_logged_in()) return; if(!bp_is_active('groups')) return; $nex_group_id = bp_get_group_id(get_current_user_id()); if(!empty($nex_group_id)){ foreach($nex_group_id as $nex_group_id){ $nex_admins = groups_get_group_admins( $nex_group_id ); foreach($admins as $admin){ ?> <a href="<?php echo bp_core_get_user_domain($admin->user_id) ?>" title="<?php echo bp_core_get_user_displayname( $admin->user_id, true ) ?>"> <?php echo bp_core_fetch_avatar ( array( 'item_id' => $admin->user_id, 'type' => 'thumb' ) ) ?></a>'; <?php } } } }I’m just copy/pasting and trying to connect a bunch of different answers together. As you can tell, I’m no coder.
Since each group may have more than one group leader/mentor I had a loop in there. Hopefully that will get the ball rolling on what I’m trying to do.
Am I on the right track?
February 14, 2017 at 4:26 pm #263773In reply to: [Resolved] error : Upload avatar for member
josselinl
ParticipantOk i find my problem !
I have this code in functions.php for the user can go tu the wp-admin panel.
function no_dashboard() { if (!current_user_can('publish_posts') && $_SERVER['DOING_AJAX'] != '/wp-admin/admin-ajax.php') { wp_redirect(home_url()); exit; } } add_action('admin_init', 'no_dashboard');Thanks 🙂
they help me https://buddypress.org/support/topic/only-admin-can-upload-new-profile-pic-avatar/
February 14, 2017 at 7:23 am #263760In reply to: Need help! After Update the Image URL is Broken
bheyne
ParticipantI’m slowly approaching the solution. If i deactivate the plugin “BuddyPress Xprofile Custom Fields Type”. The Pictures are back. They overwrite the URL i think.
February 13, 2017 at 10:42 pm #263754MarcusFuto
ParticipantThe reason seemed to be that the account I was posting from didnt have a buddypress registration only wordpress admin registratation.
February 12, 2017 at 10:43 pm #263732In reply to: Broken translation in some tabs
januzi_pl
ParticipantYep, BP has replaced my changes and the changes that I did in *.po (so, eventually in *.mo) files. Is there a way to disable Buddypress from updating translation file with the broken ones? I don’t need poorly translated versions on my site.
February 12, 2017 at 10:03 pm #263731Hugo Ashmore
ParticipantApparently ticketed:
https://buddypress.trac.wordpress.org/ticket/7443We’ll consider a possible solution or ‘hack’ 🙁 to avoid the issue.
February 12, 2017 at 6:12 pm #263730In reply to: Echo slug of custom nav component
Henry Wright
ModeratorUsing the
buddypress()function avoids the need to declare a global. Try to avoid globals in your code if you can.February 12, 2017 at 9:50 am #263724In reply to: Echo slug of custom nav component
Henry Wright
ModeratorI’m not aware of a function. Anyone else here know of one?
You should be able to avoid the global by doing this:
echo buddypress()->bp_nav['foo']['link'];February 12, 2017 at 5:13 am #263723In reply to: Echo slug of custom nav component
maelga
ParticipantThanks @henrywright. No luck with the above.
I got it working with this:
global $bp; echo $bp->bp_nav['foo']['link'];from the $bp doc https://codex.buddypress.org/developer/the-bp-global/
I am now wondering whether there is already a function defined for this.
Just likebp_loggedin_user_domain()works instead ofglobal $bp; echo $bp->loggedin_user->domain;February 12, 2017 at 3:55 am #263722In reply to: Echo slug of custom nav component
Henry Wright
ModeratorTry
buddypress()->foo->slugwherefoois the name of your item. If this doesn’t work then “foo” may need to be a component.February 12, 2017 at 2:34 am #263721In reply to: Self-inflicted BP Tables Madness
warezit
ParticipantTo follow up…
I dug through the forums here a bit more, and re-checked my work (removing tables and keys from the database). I did not remove all settings from the database.
After disabling and removing the BuddyPress plugin, then backing up my database… I loaded up phpmyadmin >
wp_optionstable > search forbp_andbbp_(I know “bbp_” if for bbPress, I just wanted a clean reset) and then removed all those settings from the database. Re-installed a fresh download of BuddyPress, and we’re all set. BuddyPress has been reset to “out-of-the-box” settings, and I am able to create groups again! Woohoo!Hopefully this helps someone else! Thank you again for reaching out r-a-y. I am happy I didn’t have to bug anyone tremendously to get this resolved. 🙂
Cheers!
February 11, 2017 at 10:55 pm #263711In reply to: [Resolved] BP login widget
r-a-y
KeymasterThis has nothing to do with BuddyPress, but it has to do with adding HTTPS support to your WordPress website.
You have to either pay to get a SSL certificate or use the Let’s Encrypt service to get a free SSL certificate:
https://letsencrypt.org/Then, configure WordPress to use SSL and this issue should be fixed.
February 11, 2017 at 10:10 pm #263710In reply to: BP profile issue
wonderdog4
ParticipantWORDPRESS 4.7.2
BUDDYPRESS 2.7.4February 11, 2017 at 9:01 pm #263707In reply to: BP Restrict Signup By Email Domain – not working
livingflame
ParticipantCreate a plugin with this. But, if you use BuddyPress Honeypot, this plugin not work.
<?php /* Plugin Name: Restricted Email Domains Description: Restricts registration user email addresses to valid domains. From: http://old.webit.ca/2011/03/limit-user-email-domains-in-buddypress/ Version: 1.0 */ add_option('limited_email_domains', array('yahoo.com', 'outlook.com', 'hotmail.com', 'gmail.com', 'aol.com', 'mail.com'));February 10, 2017 at 10:28 am #263663In reply to: Email all users of updated Forums
Slava Abakumov
ModeratorSure, you will need to filter out the
$argumentsvariable in my code for the required by youactivity_type.You can put the resulting code into a separate custom plugin or in https://codex.buddypress.org/themes/bp-custom-php/
February 10, 2017 at 12:03 am #263653In reply to: Self-inflicted BP Tables Madness
r-a-y
KeymasterNot sure what your issue is, but after going through the removal steps, did you deactivate BuddyPress and reactivate it?
If you have an object cache plugin active, you should purge your entire cache after removing the DB options so BP can reinstall its tables properly when you reactivate BuddyPress.
-
AuthorSearch Results