Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: [Resolved] No “Add Friend” Button in BuddyPress #50519

    Hi Rick,
    That should be the default thing if you are viewing someone else’s profile.

    Are you using any custom template or theme?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: [Resolved] Count results #50518

    Hi,
    Welcome to BuddyDev.

    You need to count the unique users by meal and print stats.
    here is slightly modified code that will do it for you.

    Please feel free to adapat as you please.

    
    <?php
    $meal_stats = array();
    if ( bp_has_members( my_custom_ids( 'Dogs' ) . '&type=alphabetical' ) ) : ?>
    	<?php bp_nouveau_pagination( 'top' ); ?>
    	<table id="members-list" class="<?php bp_nouveau_loop_classes(); ?>">
    		<thead>
    		<tr>
    			<th>Name</th>
    			<th>Meal Preference</th>
    		</tr>
    		</thead>
    		<?php while ( bp_members() ) : bp_the_member(); ?>
    			<?php $s1_meals = xprofile_get_field_data( 'Meals', bp_get_member_user_id() );
    			// initialize.
    			if ( ! isset( $meal_stats[ $s1_meals ] ) ) {
    				$meal_stats[ $s1_meals ] = array();
    			}
    
    			$meal_stats[ $s1_meals ][] = bp_get_member_user_id();
    			?>
    
    			<tr <?php bp_member_class( array( 'item-entry' ) ); ?> data-bp-item-id="<?php bp_member_user_id(); ?>" data-bp-item-component="members">
    				<td class="list-title member-name">
    					<?php bp_member_name(); ?>
    					<?php $member_id = bp_get_member_user_id(); ?>
    				</td>
    				<td class="<?php echo $s1_meals; ?>">
    					<?php echo $s1_meals; ?>
    				</td>
    			</tr>
    		<?php endwhile; ?>
    	</table>
    	<?php
    	// print stats.
    	foreach ( $meal_stats as $meal => $meal_stat ) {
    		if ( empty( $meal_stat ) ) {
    			continue;
    		}
                    echo "<br/>";
    		echo "Meal: " . $meal . " : ";
    		echo count( array_unique( $meal_stat ) );
    		echo "<br/>";
    	}
    	?>
    	<?php bp_nouveau_pagination( 'bottom' ); ?>
    <?php else : bp_nouveau_user_feedback( 'members-loop-none' ); endif; ?>
    
    

    Hope it helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: [Resolved] BuddyBuilder Plugin #50517

    Hi Rik,
    Thank you for your post.

    We have used it once or twice but we lack the experience to say much about it.

    I will suggest giving it a try on one of the development servers and see if it fits your needs.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: [Resolved] Uploading to MediaPress as a visitor #50510

    Hi Iain,
    Please see my reply here
    https://buddydev.com/support/forums/topic/uploading-to-mediapress-as-a-visitor/#post-50090
    and
    https://buddydev.com/support/forums/topic/uploading-to-mediapress-as-a-visitor/#post-50137

    You used this topic for another purpose(showing list of the media on gallery page)
    https://buddydev.com/support/forums/topic/uploading-to-mediapress-as-a-visitor/#post-50149

    and our discussion was limited to that.

    So, I am not sure where did you get the context that the uploader will allow visitors to upload.

    As mentioned earlier, this will need custom development. You need to grant users permission to upload to other’s gallery. Doable – yes, out of the box:- No.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: [Resolved] Uploading to MediaPress as a visitor #50508

    Hi Iain,
    Thank you for the replies.
    I am sorry, I could not get back to you earlier.

    Why does “echo do shortcode” not show up for a visitor, but “mpp_get_template” does?

    Because the shortcode check for the upload permission(authentication and autherization to upload to the gallery).
    As I have replies in one of your previous topics, only the gallery creator(owner) or site admin has the rights to upload.

    Int his thread, you had requested for showing upload on /mediapress(landing page of user gallery) and there was no mention of it being available to all users.

    This won’t work for each individual user – I tested with a new account, and the uploader box doesn’t display. If I remove gallery_id= then the uploader does display but with an empty dropdown list “Please select a gallery” — but there is no gallery to select with a new user, and if I try to bypass this and just upload anything we get an error “Please select a gallery before uploading”

    I hope you understand that the gallery needs to be created and available for it to be used in the shortcode. You will need a way to automatically create gallery on user registration(or their own profile visit).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251

    Hi Caspe,
    Thank you for the post and the question.

    I am sorry but member types pro has no idea about Awber plugin.

    I am not sure how is is affecting that. Can you please disable and re-check. Do you have any conditional registration enabled which might be affecting it?

    Please share your findings.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: Group Tabs Creator Pro Dynamic URLs #50505

    Hi Shiine,
    Thank you for the question.

    Please share some examples to help us understand the use case.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: [Resolved] Pay Pal checkout is not working. #50504

    Hi,
    Thank you for the reply.

    I am sorry, the activity plus reloaded is slated to be deprecated in near future in favour of BP Attachment and we do not plan to add anything to that plugin.

    The plugin was originally developed and managed by WPMU Dev which later deprecated it. we forked(with their permission) and maintained it for existing users.

    I don’t see any sustainable solution for your issue.

    If you still wish to continue with the activity plus, Please let us know and we will add the support for it in rate limiter.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251

    Hi,
    Thank you for the reply.

    We do not restrict any user from listing on member type tabs. It is probably happening due to conflict with some plugin.

    The most probable reason is your old members did not login to site and have no last activity set. BuddyPress does not list users without last active time in member directory. Try using “Alphabetical” filter. That should show the users.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25251
    Brajesh Singh on in reply to: Certain members incorrectly not showing #50502

    Hi Jason,
    Thank you for using the plugin.
    Is it happening on your default members directory page or do you have a custom user list/search page?

    Regards
    Brajesh