Search Results for 'buddypress'
-
AuthorSearch Results
-
February 14, 2017 at 11:59 pm #263779
Sergio 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.
February 9, 2017 at 10:40 pm #263652Slava Abakumov
ModeratorSuper easy solution is to do like this:
1) find or create a
buddypress/activity/post-form.phpfile in your theme
2) find in that file atextareawithid="whats-new"and addmaxlength="143"to its attributes so it will become something like this:
<textarea class="bp-suggestions" maxlength="143" name="whats-new" id="whats-new" cols="50" rows="10"....
3) save and done.It will limit globally, though. If only in groups (not modifiying activity directory and profiles) – wrap it in a
p_is_group()like this
<textarea class="bp-suggestions" <?php echo bp_is_group() ? 'maxlength="143"' : '';?> name="whats-new" id="whats-new" cols="50" rows="10"....February 9, 2017 at 10:32 pm #263651In reply to: Group join the Group
Slava Abakumov
ModeratorTeam is a BuddyPress group.
League – is the group type, read about it here: https://codex.buddypress.org/developer/group-types/This might be helpful for you too: https://codex.buddypress.org/add-custom-tab-to-groups-directory/ (leagues as tabs in groups/teams directory).
February 9, 2017 at 10:27 pm #263649In reply to: Migration Ning to Buddypress
snorklebum
ParticipantI migrated from Ning to Buddypress last year roughly following a very old guide. I had to manually tidy up the json exports and it only imported basic user information, posts and groups. We primarily used ning for events and I moved those in to events-manager myself.
It took a lot of trial and error and if you’re not that technical I’d recommend paying someone to carry out the process, I just wouldn’t expect miracles.
February 9, 2017 at 10:23 pm #263648In reply to: BuddyPress on Multisite
Slava Abakumov
ModeratorI think, you can’t do that easily.
Reason: BuddyPress activated and is working on subsite 1, where all of its tables created. Subsite 2 is completely independent site with even own list of users.
To fix this: you will need to write quite heavy bridge, that will query the subsite 1 and asks each time whether user has there what you need on subsite 2.
February 9, 2017 at 10:13 pm #263645In reply to: Relational Fields between two types of members
Slava Abakumov
ModeratorYour task is a compilation of several steps.
1) You need to add a custom field to BuddyPress registration form
See this https://buddypress.org/support/topic/how-to-display-a-custom-field/ or similar (just google).2) You need to get the list of users by a member type to display in a
<select>field created in 1).
See https://codex.buddypress.org/developer/member-types/ and its “Querying by member type” section.3) In 1) you created and it’s also written how to store that data, I suggest using usermeta (
update_user_meta()). You should store not the teachers names, but their ids in metas.4) Now you need to display this info in user profile.
Investigatewp-content/plugins/buddypress/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.phpfile, you will see there several hooks that may be useful for you. There you will just echo what you need.
Example:get_user_by('id', get_user_meta(bp_displayed_user_id(), 'teacher_id'))->display_name;or similar using BuddyPress functions.February 9, 2017 at 9:54 pm #263643Slava Abakumov
ModeratorCurrently there is no such plugin. Introducing this feature is quite heavy for the server, so it’s more like a custom solution, ideally with websockets.
We use heartbeat functionality, that gives ability to show a notification about new activity records, but there are no plans to actually update old records due to lots of technical issues and time availability (all BuddyPress core devs are volunteers).
February 9, 2017 at 9:51 pm #263642In reply to: Migration Ning to Buddypress
Slava Abakumov
ModeratorYou can check this plugin: https://premium.wpmudev.org/project/ning-to-buddypress-user-importer/
But before buying it’s better to contact their support and ask about compatibility.
February 9, 2017 at 12:57 pm #263629In reply to: Buddypress Activity Comment
manishn
ParticipantIt’s too late for answering this question but will help someone else 🙂
just put this code on your /plugins/buddypress/bp-activity/bp-activity-template.php file within this function bp_get_activity_action()
if($activity_arr->type == 'rtmedia_comment_activity'){ global $wpdb; $query = "SELECT activity_id FROM ".$wpdb->prefix."rt_rtm_media WHERE id='".$activity_arr->item_id."'"; $activity_id = $wpdb->get_var( $wpdb->prepare($query)); $activity = bp_activity_get_specific( array( 'activity_ids' => $activity_id ) ); $activity = $activity['activities'][0]; $action .= $activity->content; }Hope this help
February 8, 2017 at 7:25 pm #263621In reply to: Users Blog Post on activity stream
Md Sadiqur Rahman
ParticipantYou should activate “Site Tracking” from Settings/Buddypress/. For me, it is working fine.
-
AuthorSearch Results