Search Results for 'buddypress'
-
AuthorSearch Results
-
September 25, 2018 at 2:54 am #276712
wettowel
ParticipantHey guys I need some help with php/buddypress.
Im trying to create a custom member directory for my website that displays online users…I am very new to php, I have looked at the documentation but i don’t understand what i am doing wrong.
Things i have done thus far:
I created a new directory called “buddypress” in my theme (my theme is Divi), I then copied the “members” folder from buddypress and put a duplicate in my new “buddypress” folder within my theme. After that i renamed the “members-loop.php” file to “online-members-loop.php”, and created a new page called “online members”.
I didn’t make any adjustments to the code at this point and tried to see if it worked… It did not, my online members page is still just blank. I then tried to edit some things within the “online-members-loop.php” file i now have. I changed “<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) ) ) : ?>”
to this: “<?php if ( bp_has_members( ‘type=online’ ) ) : ?>”
I tried to load the page again annnnddd… nothing, nothing at all. It was at this point i knew i was doing something incredibly wrong because even before altering code, the members page didnt load anything.
If anyone could help a newbie out i would greatly appreciate it 🙂
September 25, 2018 at 1:11 am #276710In reply to: Buddypress registration page password field
lookingahead
Participant@vapvarun is there a plugin you can recommend that will allow me to override the ‘group directory listing’ of all groups — that page?
i merely want to add a header image to display above the list of groups on the group directory page. that’s all.
i’ve tried (unsuccessfully) to get my site to use its layout options on the page that displays all groups…but no, the buddypress settings are overriding my wish to place an image above the listing of all groups on the group directory page.
i hate to ask you how to modify template files….but i think that may be what i have to do.
is there a way to accomplish this with CSS?
all i want is to have an image display above the list of all the groups on the ‘group directory page’….how to get that done? i do not care the method, i just want it to be there. of course the less code i can use to do this the better, and i do not want to use a plugin to achieve this, but at this point i am desperate!!
the buddypress template seems too strong to me, i can’t seem to find a way to get the page to do what i want for a layout.
is this better done with a plugin? it’s a buddypress template that seems unable to be altered. so i have no idea what to do next.
thank you in advance for any and all assistance! 🙂
September 24, 2018 at 8:28 pm #276704In reply to: Private Message suggestions
ajuuls
ParticipantThis is the old code i was talking about. Dont know if it helps to see and modify so it works somehow:
https://buddypress.org/support/topic/autocomplete-all-users-on-the-compose-screen/September 24, 2018 at 8:24 pm #276703In reply to: Site Wide Activity
shanebp
Moderator> activate site wide activity.
Do you have the Activity Streams component activated in BuddyPress settings?
Do you have the Site Tracking component activated in BuddyPress settings?
Are you trying to add a custom post type to the Activity Stream?
If so, please use gist to share your code.September 24, 2018 at 7:10 pm #276700In reply to: Hide members
lookingahead
Participantso, @shanebp forgive me if resurrecting this thread is a bad idea, but it has the information in it that i have a question on, and i figured it’s easier to use this one to talk about my issue rather than create a new thread and link back here.
i looked at the bp-custom.php file you linked to for this issue and i’m unsure where i can find the correct code to use with it….because i am actually not trying to merely hide members from the directory, but am instead trying to hide them from the directory and ALL other users on the site. i want to make it so that the user profiles basically are unreachable…along with each user’s information.
so i believe (not sure, but i believe) that to achieve this is i would need to make sure the profiles are handled in one of the following ways:
– password protected from view, accessible only to admins/keymaster
– never loaded at all somehow, via bp-custom.php
– the template for user profiles is blanked out somehow, so information is never put in them
– get the buddypress profile for users — when clicking on an avatar — just redirect to the main site pageof course, i have no idea if these guesses are the way to achieve the goal i really want….which is to have only one profile used (i’m using woocommerce’s account screen for their profiles)……i have no need for a buddypress profile to be used in addition to the woocommerce account profile page that i have them already using.
i honestly just want each user’s personal profile page in buddypress to be disabled. so they can’t see their own profile or any profile of others.
whether that involves forwarding users to the site main page when they click on a user, or (ideally) not being clickable at all, or….oh, i don’t know. as long as no buddypress profile is viewable by any member in any way. not even by the buddypress user themselves.
and yes — this would also include hiding member names from search.
note: i don’t care if they can see the member list in the hidden group forums; that is the only place i care to see members listed. but i don’t want those member avatars to be clickable in a hidden group forum. not ever.
thoughts????
September 24, 2018 at 4:37 pm #276697In reply to: Blank notifications in Buddypress
perteus
ParticipantHi, i have problem with this issue
I have WPForo and BuddyPress (but issue was same with bbpress) And if somebody reply on topic when i have subcribion, i have in notification menu blank title. Only Date and time send and action menu. In my Database in wp_bp_notitications is
id 13677 user_id 3 item_id 394 secondary_item_id 49 component_name community component_action wpforo_new_reply date_notified 2018-09-24 13:48:17 is_new 1September 24, 2018 at 2:02 pm #276694In reply to: Members Masonry – Element
Prashant Singh
Participantohh ok got that.
/** * Buddypress Members masonry * * * @package WordPress * @subpackage K Elements * @author SeventhQueen <themesupport@seventhqueen.com> * @since K Elements 1.0 */ $output = ''; extract( shortcode_atts( array( 'type' => 'newest', 'member_type' => 'all', 'number' => 12, 'class' => '', 'rounded' => "rounded", 'avatarsize' => '', 'width_height' => '', 'online' => 'show' ), $atts ) ); //var_dump($avatarsize); $params = array( 'type' => $type, 'scope' => $member_type, 'per_page' => $number ); if ($rounded == 'rounded') { $rounded = 'rounded'; } $avatarquery = ''; if( $avatarsize == 'large' ) { $avatarsizewh = explode( 'x', $width_height ); if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) { $avatar_width = $avatarsizewh[0]; $avatar_height = $avatarsizewh[1]; $avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' '; } } if ( function_exists('bp_is_active') ) { if ( bp_has_members( $params ) ){ ob_start(); echo '<div class="wpb_wrapper">'; echo '<div id="members-dir-list" class="members dir-list">'; echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">'; while( bp_members() ) : bp_the_member(); echo '<li class="kleo-masonry-item">' .'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">' .'<div class="item-avatar '.$rounded.'">' .''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . ''; if ($online == 'show') { echo kleo_get_online_status(bp_get_member_user_id()); } echo '</div>' .'<div class="item"> <div class="item-title">' .''. bp_get_member_name() . ' </div>'; echo "<div class=item-meta><p>". bp_member_profile_data('field=Expertise')." </p></div>"; echo '<div class="item-meta"> <span class="activity">'.bp_get_member_last_active().'</span></div>'; if ( bp_get_member_latest_update() ) { echo '<span class="update"> '. bp_get_member_latest_update().'</span>'; } do_action( 'bp_directory_members_item' ); echo '</div>'; echo '<div class="action">'; do_action( 'bp_directory_members_actions' ); echo '</div>'; echo '</div><!--end member-inner-list--> '; endwhile; echo ''; echo '</div>'; echo '</div>'; $output = ob_get_clean(); } } else { $output = __("This shortcode must have Buddypress installed to work.","k-elements"); }Please try this code.
Thanks
September 24, 2018 at 12:58 pm #276692In reply to: Members Masonry – Element
israel4lincelot
ParticipantDoes not work. I think it’s because de line I’m writing is within an echo already.
Full code:
<?php
/**
* Buddypress Members masonry
*
*
* @package WordPress
* @subpackage K Elements
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since K Elements 1.0
*/$output = '';
extract(
shortcode_atts( array(
'type' => 'newest',
'member_type' => 'all',
'number' => 12,
'class' => '',
'rounded' => "rounded",
'avatarsize' => '',
'width_height' => '',
'online' => 'show'
), $atts )
);
//var_dump($avatarsize);$params = array(
'type' => $type,
'scope' => $member_type,
'per_page' => $number
);
if ($rounded == 'rounded') {
$rounded = 'rounded';
}$avatarquery = '';
if( $avatarsize == 'large' ) {
$avatarsizewh = explode( 'x', $width_height );
if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) {
$avatar_width = $avatarsizewh[0];
$avatar_height = $avatarsizewh[1];
$avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' ';
}
}if ( function_exists('bp_is_active') ) {
if ( bp_has_members( $params ) ){
ob_start();
echo '<div class="wpb_wrapper">';
echo '<div id="members-dir-list" class="members dir-list">';
echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">';while( bp_members() ) : bp_the_member();
echo '<li class="kleo-masonry-item">'
.'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">'
.'<div class="item-avatar '.$rounded.'">'
.''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . '';
if ($online == 'show') {
echo kleo_get_online_status(bp_get_member_user_id());
}
echo '</div>'.'<div class="item">
<div class="item-title">'
.''. bp_get_member_name() . '
</div><div class="item-meta"><p">
<?php echo bp_member_profile_data('field=Expertise'); ?>
</p></div><div class="item-meta">
<span class="activity">'.bp_get_member_last_active().'</span></div>';
if ( bp_get_member_latest_update() ) {
echo '<span class="update"> '. bp_get_member_latest_update().'</span>';
}do_action( 'bp_directory_members_item' );
echo '</div>';
echo '<div class="action">';
do_action( 'bp_directory_members_actions' );
echo '</div>';echo '</div><!--end member-inner-list-->
';
endwhile;echo '';
echo '</div>';
echo '</div>';
$output = ob_get_clean();
}}
else
{
$output = __("This shortcode must have Buddypress installed to work.","k-elements");
}September 24, 2018 at 12:33 pm #276688In reply to: Two membership directory
Prashant Singh
ParticipantOk, please check this: https://codex.buddypress.org/developer/member-types/
BuddyPress had introduced member type concept and using this you can create multiple directories.
There is a paid plugin https://www.buddyboss.com/product/buddypress-member-types/ that you can check. But still, the payment and free level security need some sort of customization.
Thanks
September 24, 2018 at 9:24 am #276679In reply to: Two membership directory
Prashant Singh
ParticipantHi,
You can check this plugin: https://wordpress.org/plugins/buddypress-shortcodes/
But still, it will need customization to add different fields there.
Thanks
September 24, 2018 at 9:22 am #276678Prashant Singh
ParticipantYou can check buddypress-notifications.js file and I think you need to add new listener there. Then only you can run your script just after that, but editing a core file is never recommended.
Thanks
September 24, 2018 at 7:19 am #276674Prashant Singh
ParticipantHi,
You can put code like this:
function buddypress_notifications_layout() { global $bp; if ('notifications'== $bp->current_component){ wp_enqueue_script('test', 'http://example.com/wp-content/themes/twentyfifteen- child/js/test.js', array('jquery'), '1.0', true); } } add_action('wp_enqueue_scripts', 'buddypress_notifications_layout');Thanks
September 23, 2018 at 8:05 pm #276668In reply to: Error 500 on wp-admin/admin-ajax.php
Prashant Singh
ParticipantHi,
There may be possibilities that wpforo is not compatible with BuddyPress so please report to all of them after checking these issues.
Thanks
September 23, 2018 at 8:03 pm #276667In reply to: Hide specific user profile tabs
Prashant Singh
ParticipantHi,
Please check this plugin: https://wordpress.org/plugins/buddypress-members-only/
Hopefully, it will help you.
Thanks
September 23, 2018 at 6:28 pm #276665In reply to: Activity Stream….attach pictures — normal?
christopher387
Participant.S.: I’m using bbPress with BuddyPress….and I’m referring to the ability for the “updates” people make ~directly~ to the group front page — not updates they make in forums elsewhere that populate in the Activity Stream automatically.
I think, I got the solution!
September 23, 2018 at 1:29 pm #276664In reply to: Child-theme style.css
shanebp
Moderatorbuddypress\bp-themes\is deprecated any only included for legacy installs.Your child theme structure seems okay.
But try using the register templates from herebuddypress\bp-templates\bp-legacy\buddypress\members\in your child theme.September 23, 2018 at 9:20 am #276662In reply to: DIrect messaging problem
casper99
ParticipantSame problem here.
And: I won’t get an ajax recommendation by entering @username in the field with bp-nouveau.It seems to be a problem with the “bp-nouveau” theme.
With the old standard-theme, it works!BuddyPress 3.2.0
WordPress 4.9.8September 22, 2018 at 12:03 pm #276655In reply to: Error 500 on wp-admin/admin-ajax.php
hyrozen
ParticipantThe conflict comes when I add BuddyPress, the problem comes from BuddyPress.
September 22, 2018 at 10:50 am #276653In reply to: Allow moderator to accept new members
Prashant Singh
ParticipantHi,
These are only allowed to admins, please check this https://codex.buddypress.org/administrator-guide/group-settings-and-roles/
If you want to do it for moderator, then you have to add capabilities using custom code which seems a bit tough right now.
Thanks
September 22, 2018 at 10:29 am #276647In reply to: How to show all conent in posts in page activity ?
Prashant Singh
ParticipantHi,
Please check this thread: https://buddypress.org/support/topic/custom-activity-new-post-content-not-broken-after-update-the-post/
Thanks
September 22, 2018 at 10:26 am #276645In reply to: Problem with news feed (activities) filter
Prashant Singh
ParticipantHi,
Please follow these links:
Add custom filters to loops and enjoy them within your plugin
Hopefully, this will help you.
Thanks
September 22, 2018 at 10:16 am #276643In reply to: How to mark all notifications as read
Prashant Singh
ParticipantSeptember 21, 2018 at 5:13 pm #276633In reply to: recover accidentally deleted user profile field
heikesworld
ParticipantSorry I posted this in the wrong category before… I accidentally deleted a user profile field that took me hours to create (it included all countries of the world). Is there any way to recuperate it?
There should definitely be a double check for deleting these things, a note asking me if I really want to delete it.
I can see in this thread https://buddypress.org/support/topic/how-do-i-find-custom-profile-field-database-entries/ that there is a file called wp_bp_xprofile_data table, I have contacted my hosting provider and they have made a backup of my site. Where would they find this table? What would I have to replace in the current setup? The whole buddypress plugin? A file in the plugin folder? Can I import it to my current site? It would be best if I don’t have to revert the whole site to a previous version as I have done changes to it. Please please answer quickly!!! Thank you!!!!September 21, 2018 at 12:42 pm #276630aldorr
ParticipantYou can try placing this in the functions.php of your Child Theme. Though for buddypress you might want to use
bp_get_profile_field_datainstead ofxprofile_get_field_data.
I’m trying to do something similar, but the fields are not showing up in my email. I have a feeling the email is getting sent before the database is updated, but for the life of me, I can’t get them… Good luck!September 20, 2018 at 11:46 pm #276623In reply to: Register Form Button Doesn’t Work
r-a-y
KeymasterYou’re using the Kleo theme. Can you try another theme to see if it is a problem with Kleo?
Same report here – https://buddypress.org/support/topic/bp-registration-page-preventing-new-signup-from-same-ip-address/
-
AuthorSearch Results