Replies
- Brajesh Singh on May 25, 2017 at 9:29 pm in reply to: Buddypress Recent Profile Visitors Plugin & roel #9301
Hi Herve,
Thank you for the patience.
I have updated the plugin now.
https://buddydev.com/plugins/recent-visitors-for-buddypress-profile/It now allows 3 more things:-
1. Exclude some of the roles from visit recording. For eaample, you can use it to hide the administrator’s visit to other profiles
2. Disable plugin features( listing visitors, directory listing etc) completely for some of the roles.
3. recording Policy:- The default recording only records when both the visitor and the displayed user has the recording enabled. You can change it to always to always record a visit if it is enabled for the displayed user.Here the code to enable the plugin only for author/contributor role.
/** * Filter Settings * * @param mixed $settings * @return array */ function devb_custom_settings_for_recent_visitors( $settings ) { /** * Settings is an associative array and has following values * See Exampel of allowed settings in the commented section below */ /* $default = array( //no. of visitors to display 'max_display' => 5, //0 means all time, 7 means 7 days, 30 means 30 days 'duration' => 0, //show the recent visitor as component? 'add_screen' => false, //true then displays in member header, false means does not display in member header 'show_in_header' => true, // true then show the Recent visitors tab in Members Directory screen for logged in users, false means no tab in directory. 'show_in_directory' => true, //should we enable local notification for user setting? 'notification_local' => false, //should we enable settings for the receiving the notification by email? 'notification_by_email' => false, //by default local notification is disabled, set it to 'yes' for it being enabled for the user 'notify_visitors_locally' => 'no', // By default disable the receiving notification by email settings for user, set it to 'yes' 'notify_visitors_by_email' => 'no', //what should be the default user avatar size 'default_avatar_size' => 32, //should the user be able to st their own preference in profile->settings screen? 'allow_user_settings' => true, // Never record visits by users belonging to these roles 'recording_roles_excluded' => array(), // disable the plugin feature for these roles // These user's won't be able to see their own visitors 'roles_excluded' => array(), // array('subscriber', 'contributor') // Recording policy. Should we record when both the users have it enabled ot not. // 'always'= For recording visit of the user_id, do not check whether they have it enabled or not. // 'mutual'= only record if enabled by the visitor, 'recording_policy' => 'mutual', ); */ // Selectively update one or more settigs $settings['max_display'] = 10; // show 10 visitors $settings['recording_policy'] = 'always';//always record $included = array('author', 'editor' ); // only for author/editor $all_roles = array_keys( wp_roles()->get_names() ); $settings['roles_excluded'] = array_diff($all_roles, $included ); return $settings; } add_filter( 'bp_visitors_settings', 'devb_custom_settings_for_recent_visitors' );Hope that helps.
Hi Dan,
Welcome to BuddyDev.
You have done it correctly.It will use the dimensions for any future uploads resizing.
If that does not happen, please do let me know.
PS:-
In case of lightbox, we are using css to resize the image. If you are having issue in lightbox, It will need some css to fix that.Hi Minoo,
I am sorry but the single activity at the moment is not available. The current implementation works like forums post. Clicking on it takes to the forums. Even if you changed the notification, It won’t work for now.Is there any issue with pointing to gallery activity? It should link to the correct open there.
- Brajesh Singh on May 25, 2017 at 12:51 am in reply to: [Resolved] Redirect to Profile plugin not working #9288This reply has been marked as private.
- Brajesh Singh on May 23, 2017 at 9:17 pm in reply to: [Resolved] Redirect to Profile plugin not working #9282This reply has been marked as private.
- Brajesh Singh on May 23, 2017 at 8:23 pm in reply to: [Resolved] Redirect to Profile plugin not working #9280This reply has been marked as private.
- Brajesh Singh on May 23, 2017 at 7:31 pm in reply to: [Resolved] Redirect to Profile plugin not working #9279This reply has been marked as private.
- Brajesh Singh on May 23, 2017 at 6:56 pm in reply to: [Resolved] Redirect to Profile plugin not working #9277
Hi,
I am sorry for the inconvenience. I have tested it with WP 4.7.5 and BuddyPress 2.8.2.Can I please take a look at the site. I am guessing it is conflicting with something. I can just change the priority of the hook and its should be fixed. It will still help if you can provide me temporary access to the admin or list me the plugins/active theme here.
PS:- My apologies in advance. If it is not too much, May I know your good name please?
Thank you
Brajesh Hi Kristin,
There seems to e an issue with the private status. I am looking further into it. Will have an update today to fix it.Thank you
Brajesh- Brajesh Singh on May 22, 2017 at 1:03 pm in reply to: [Resolved] BP Profile Visibility Manager: plugin is creating "protected" tab in profiles #9268
Hi Andy,
I am glad I was able to assist. It’s always a pleasure.Thank you
Brajesh