Replies
- Brajesh Singh on September 15, 2023 at 6:30 am in reply to: Member Types to Paid Memberships Pro and AWeber Integration #50523
Hi Caqsper,
Thank you for the reply.Since the activation/deactivation has no effect, It is not caused by member types pro.
By conditional registration fields I meant to ask if you had this option enabled for Member Types pro in (Dashboard->Settings->Member Types Pro)
The member types get assigned on activation. That is to keep the user count in sync.
Regards
Brajesh - Brajesh Singh on September 15, 2023 at 6:27 am in reply to: [Resolved] Uploading to MediaPress as a visitor #50522
Hi Iain,
Thank you for the reply.You need to filter to filter on
mpp_user_can_uploadfilter to allow upload permissions.
It may need changes in some other permissions too. Please see mediapress/core/mpp-permissions.php for the way to use it.Regards
Brajesh - Brajesh Singh on September 15, 2023 at 6:24 am in reply to: Function for activity feed friend-only, blocked view of private group activity #50521
Hi Marilynn ,
Welcome to BuddyDev support forums.Thank you for reporting the issue.
The scope of the code is limited to sitewide activity directory. I believe BuddyPress/BuddyBoss does not show private activities if user id is specified. That could be the reason.
Regards
Brajesh - Brajesh Singh on September 15, 2023 at 6:21 am in reply to: Group Tabs Creator Pro Dynamic URLs #50520
Hi Shiine,
Thank you for the details and the explanation.I don’t think we can have this at the moment. A group can have multiple moderators/users and unless we provided a way to specify the username with dynamic token, this will not be useful(to identify the source).
So, this could be achieved by using custom shortcode for the purpose instead of having dynamic token.
Regards
Brajesh - Brajesh Singh on September 15, 2023 at 6:19 am 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 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
BrajeshHi 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- Brajesh Singh on September 14, 2023 at 10:39 am 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-50137You 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-50149and 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 - Brajesh Singh on September 14, 2023 at 8:18 am 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 - Brajesh Singh on September 14, 2023 at 6:15 am in reply to: Member Types to Paid Memberships Pro and AWeber Integration #50507
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