Hello,
Once in a while, I have a user that appears twice in the list, and stays duplicated for ever.
I found a potential explanation (at least I found a way to fix a duplicated user):
For a given user_id in the wp_usermeta table, there are two wpwhosonline_timestamp entries. Deleting one of them removes the duplication in the list.
Hopes this helps people having the same issue, and perhaps gives a hint at how to prevent it from happening at a development level.
Regards.
How can i hide “admin” from showing on the list? Maybe you gave an answer to that question but the item is closed, so i can’t see it anymore.
]]>Hi Annika,
I know we discuss this matter couple of weeks ago but as we will soon move to PHP 7 as 5.6 will be unsupported later this year. Right know our PHP 7 checker report following errors:
Per
]]>Fatal error: ‘continue’ not in the ‘loop’ or ‘switch’ context in /xx/xx/xx/xxxxxxxxxxxx.com/httpdocs/wp-content/plugins/p2-wp-whos-online/wp-whos-online.php on line 199
]]>Hi, I am developing in a site on localhost and each user online is being displayed twice. Please how do i fix this?
Thank you
]]>user-name & user-status overlap each other… need help to fix..
is there a way to give more space in between the user name and the user status…?
on my webpage word press template the user-name and the user-status are on top of each other.
https://christianprayercenters.com/
please advise, and thank you in advance.
GLS
]]>Hi,
I want to use your nice plugin. Outlining within my theme (mywiki) is (so i think) the problem.
in ie and firefox its wrong, in chrome is outlining worse
Here two screenshots
https://rzuithof.dedigitalevisitekaart.nl/wp-content/uploads/2015/07/chrome.jpg
https://rzuithof.dedigitalevisitekaart.nl/wp-content/uploads/2015/07/firefox.jpg
I hope you have an idea!
Gr. Richard
]]>Hi
I wonder if its possible to set that certain users should not be shown in widgets on sidebar? I have no settings present in widget at all so can you provide a solution that users whith certain id should not be shown?
Per
]]>I felt a week was too long to show ‘Online’, tweaked code as follows:
Function ‘wpwhosonoine_recents’
Changed time from 604800 (1 week) to 1200 (20 minutes)
Function ‘wpwhosonline_class
Changed if($diff > 7200) to 1200
Optional tweak:
Function wpwhosonine_user
Near the end is statement
return $avatar . $link . ‘
‘ . $last_online;
I sometimes remove the $avatar . to just show name
Resulting display:
Logged Off > 20 minutes does not show.
Logged Off < 20 but > 10 = “Recently Online”
Online or off < 10 = “Online”
many ueers do not have avatars and it just shows a broken link….whats the way to have a certain image for those without one?
Can u provide a detailed copy and paste solution I can add to the css!? Thank u
]]>It’s easy
Just modify the .css code
.wpwhosonline-list {
height: 335px;
overflow: auto;
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}
Can I change the users designated Ancient and Recent just by numeriv values in the PHP code?
I don’t want to display anyone who has not been logged within the last 15 minutes. I’m trying to duplicate the BuddyPress Who’s Online as part of phasing out BuddyPress.
]]>How can i hide “admin” from showing on the list?
i don’t want the admin account showing on the list…
]]>Any chance of giving this a shortcode function so it can be included in pages or templates?
I run a wordpress site with BBPress 2 forum and I’d like to be able to embed it in the page body underneath my forum categories, with names arranged in a table fashion using the full column width. Displayed as a widget the list gets unweildy with more than a few names appearing in the list.
Otherwise, it’s the tidiest who’s online plugin I have seen so far.
]]>Hi.
I am wondering how could I set the widget so that only logged users can see who’s on line.
Is there anyway or trick/hack to accomplish this task?
Thank you in advance and compliments for this very nice plug-in!
RedPaul
The user name and time since online do not align directly to the right of the user’s avatar. The name is OK but the time since online value shows up closer to the next user below than to the user it applies to. I really don’t want to have to dig around in the CSS if I can avoid it.
Any suggestions, anyone? TIA!
]]>Hi I noticed that it says you added a filter for this in the php file or at least I think that’s what it meant in the updates and I found the function but I just don’t understand what I need to change.
I need to change the /author/ link in the widget to /members/ to match buddypress links. I am assuming it is this code I need to change right?
* Return HTML for a single blog user for the widget.
*
* @uses apply_filters() Calls 'wpwhosonline_author_link' on the author link element
* @return string HTML for the user row
*/
function wpwhosonline_user( $last_online_ts, $user ) {
$avatar = get_avatar( $user->user_email, 32 );
$name = $user->display_name;
$link = '<a href="' . get_author_posts_url( $user->ID, $user->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $user->display_name) ) . '">' . $name . '</a>';
$link = apply_filters( 'wpwhosonline_author_link', $link, $user );
where exactly do I edit and how would I edit this link (if in fact this is what it does, I am not php fluent at all)
]]>Hi there!
Thanks for this plugin! I am using it in a non P2 blog template and it just works great as a widget in my sidebar. However I want it to display in 2 columns. I am ok to cut out the text if it overlaps.
How can I do that?
Thanks in advance!
]]>Hello, Can I filter the users by type of user?
]]>I’m sorry I’m writing through google translator. Is it possible to make avatars showed next to one another? Not as a list.
]]>Hello,
is it possible to add a limite number?
ex. maximum 10, or number admin choose.
thanks
]]>Hi,
First of all thanks for this great plugin.
I just have a problem with the plugin. At first it was okay then later it shows no names on some users that are online.
Here’s an screenshot https://guitarzoom.com/images/shot/screenshot.JPG.
Can you please help me what’s the problem with this and how do i fix it?
]]>Release 0.6 included a small number of theme compatibility updates. I picked a few themes out of a hat looking for broken layouts, but this was far from scientific.
Out of curiosity: which themes are you using in conjunction with wp-whos-online?
]]>Is there a way to change the links of the online user icons? When you click on the online icons its looking in “https://website.com/author/username” My user profiles are located in of “https://website.com/user/username”
Maybe I’m missing something???
]]>Hello,
I need to know if is possible to use the plugin widget more times, in other widget are. This is why that I have to setup duplicate setting of widget for site template.
Great plugin. But is there a (simple) way to only show the online users in the widget and leave the offline users (10 minutes, 2 hours, 3 days ago) out? Would be great.
]]>My problem is to use this plugin with a WP-site in Russian. It shows part of information in English and the other part in Russian. My suggestion is to add config fields for the widget name and local equivalent of Enlish word “ago” letting a site admin to customize the plugin widget.
]]>