Replies
- Brajesh Singh on November 7, 2015 at 11:37 pm in reply to: [Resolved] Buddypress as Wire Plugin #1438
Hi Joshua,
since you had custom activity loop, It might have worked differently. I am glad you figured it out. Closing this topic as resolved now.Thank you
Brajesh Hi Joshua,
Apologies for delayed reply.Please give the following code a spin.
<?php $css_class = ''; $unread_notifications = bp_notifications_get_unread_notification_count( get_current_user_id() ); if( $unread_notifications ){ $css_class = 'has-new-notifications'; } ?> <a href="<?php bp_notifications_permalink();?>" class="someclass <?php echo $css_class;?>"> Notification</a>You will need to modify it for the icons or update for your theme but it shows how to add extra class when there are new notifications and link to the notifications page.
If you want to link to unread notifications, you may update the bp_notifications_permalink() with bp_notifications_unread_permalink()
Hope that helps.
Hi Joshua,
Thank you. I highly appreciate your generosity and supporting us.Hoping to assist even better in future 🙂
Thank you
BrajeshHi,
Apologies for my delayed reply.I believed you have group directory enabled. you can visit Groups directory and then click on individual group and there you can manage things. You can do it from your profile too but that only lists the groups you are member of.
Hope it is more clear now.
Thank you
Brajesh- Brajesh Singh on November 7, 2015 at 5:45 pm in reply to: [Resolved] Buddypress Anonymous Plugin Quick Question #1423
Hi Brayden,
Apologies for the delayed reply.
Please use this code instead$activity_id = bp_get_activity_id(); if( ! bp_is_anonymous_activity( $activity_id ) ) :?> <a href="<?php bp_activity_user_link();?>" <span class="text-primary"><i class="fa fa-paper-plane"></i> View </span><?php echo $xprofile_user;?> Profile</a> <?php endif;?>Here we are only showing the link if the user is not anonymous, otherwise nothing will be shown.
Hi Joshua,
Welcome to the BuddyDev forums 🙂Thank you for sharing the code, I am sure may community members will find it useful.
I highly appreciate sharing the knowledge 🙂Thank you
BrajeshHi,
I mean from front end. As a site admin, you should be able to manage any group.Hi,
Please visit the specific group and From Manage->Blog enable the categories you want the users to have.If that does not serve your purpose, I can provide php code to limit it.
- Brajesh Singh on November 6, 2015 at 8:32 am in reply to: [Resolved] Buddypress Anonymous Plugin Quick Question #1410
Hi Bryden,
Sorry about the trouble.
Can you please tell me what is this $xprofile_user?PS: to post the code please use backticks(`)
Thank you
Brajesh - Brajesh Singh on November 6, 2015 at 8:16 am in reply to: Testimonials visible for Friends only #1408
Thank you Hans.
Please do make sure to favorite the topic to keep a track in future. I have already added it to my favorite so that I don’t miss it in future.