Hi there,
I would like to show recent visitors only to the logged in member? Could you please provide me with the code?
Another thing is that I tried to change the size of the images but the code you provided on plugin page does not work. Size is not changing.. :((
What am I missing?
Thank you very much 🙂
Hi Jasmin,
Welcome to BuddyDev forums.1. Isn’t Recent visitors visible to the logged in user only. This is the default behaviour.
For avatar, Please put the following code in your bp-custom.php
function devb_custom_settings_for_recent_visitors ( $settings ) { $settings['default_avatar_size'] = 64;//64 px return $settings; } add_filter( 'bp_visitors_settings', 'devb_custom_settings_for_recent_visitors' );
Is it changing the avatar size? If not, It may be some css issue and you can point me to the site. That will allow me to provide you some css too.
Hi Brajesh,
1. I do not want other logged in members to see visitors of somebody. Everybody should only be able to see their own visitors. How can I do that.
2. Code is giving me a blank page. Page is testumgebung.socialez.me
Thanks for your help
Sorry, Code is working now. Added it like this:
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(
‘max_display’ => 15, //no. of visitors to display
‘duration’ => 0, //0 means all time, 7 means 7 days, 30 means 30 days
‘add_screen’ => false, //show the recent visitor as component?
‘show_in_header’ => true, //true then displays in member header, false means does not display in member header
‘show_in_directory’ => true, // true then show the Recent visitors tab in Members Directory screen for logged in users, false means no tab in directory.
‘notification_local’ => false, //should we enable local notification for user setting?
‘notification_by_email’ => false, //should we enable settings for the rcieving the notification by email?
‘notify_visitors_locally’ => ‘no’, //by default local notification is disabled, set it to ‘yes’ for it being enabled for the user
‘notify_visitors_by_email’ => ‘no’, // By default disable the receiving notification by email settings for user, set it to ‘yes’
//added in version 1.2.7
‘default_avatar_size’ => 64, //what should be the default user avatar size
‘allow_user_settings’ => true, //should the user be able to st their own preference in profile->settings screen?
);//
$settings[‘max_display’] = 15; //show 15 visitors
$settings[‘default_avatar_size’] = 64;//64 pxreturn $settings;
}Would you please help me with first question as well? 🙂
Hi Jasmin,
Thank you for posting. I am glad the second issue is fixed.The first one is the default behavior. This plugin only shows the recent visitors to the user if they are visiting their own profile. For Example, User A can not see the visitors of User B.
Can you please post me a screenshot to show if t is not doing that?
Thank you
BrajeshYes this behaviour I would expect.
I created a new member A and visited it with two different profiles B and C (non admin).
Then I logged in with the visitor account C.
As you can see in the image I can see all of the last visitors.
So to me it looks like there is some issue or am I getting it wrong?
Thank you 🙂
Image: http://imgur.com/oSuiiTu
Thank you for the screenshots.
That makes it clear. I was thinking the issue is with the Header actions but I see you meant the problem with the tabs.
I am looking at at and It is most probably a bug. A solution will be coming a little late today.
Thank you
BrajeshHi Brajesh,
did you have the chance to look into the bug yet?
THank you
Jasmin
Hi Jasmin,
Please upgrade to 1.3.1 and the issue will be fixedhttps://buddydev.com/plugins/recent-visitors-for-buddypress-profile/
Thank you
BrajeshHi Brajesh,
it is working now but now I can only see the visitors up in my profile and not like before in a special profile tab.
How I can manage again to show them only in the tab?
Thank you
Jasmin
You must be logged in to reply to this topic.