bbPress Plugin Browser »

Members Online (0.0.2)

Download

Version: 0.0.2

Last Updated: 2009-8-14

Requires bbPress Version: 0.9 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(9)

Your Rating

Author: _ck_


  1. Tomcraft1980

    Member

    great... THX!

    Posted: 2 years ago #
  2. Okay, working here as wel.

    Posted: 2 years ago #
  3. I just installed this on 1.0.2 and it works beautifully! Thank you.

    Posted: 2 years ago #
  4. Thanks. I needed this in Spanish and modify these lines to translate.

    Lines 45-49

    echo "<div class='members_online' style='text-align:center; width:760px; margin:0 auto;'>
    	<div style='text-align:left;'><h2>".__('Miembros Online')."</h2>
    		<p><strong>".__('Ahora').' :</strong> '; members_online_now();
    	echo "<strong>".__('Hoy').' :</strong> '; members_online_today();
    	echo "</p></div>";
    Posted: 2 years ago #
  5. citizenkeith

    Member

    Just noticed that one member was listed in the Members Online list 5 times. Later in the evening we had an issue where a bunch of moderators were reset to members. Also, post counts were reset (fixed with Post Count reset in the plugin admin menu). I'm the only keymaster and nobody touched anything.

    This seems to point to something other than a plugin problem.

    I'm running 0.9.0.6 with a freshly installed database running on Media Temple.

    Posted: 2 years ago #
  6. Sounds like your mysql is getting corrupted which is very dangerous.
    Go into phpmyadmin and do a repair.
    Mods turning into members is very bad, means something is wrong with the usermeta, it's being blocked, corrupted or something along those lines.

    Posted: 2 years ago #
  7. Hello... I'm a newb and just starting this whole process. _ck_, thanks for all these great plug-ins. I'm using a number of them on a new premium content site that uses the wpmu, buddypress, and bbpress. Now that my developer is done with his work, I'm trying to figure things out. I've added a number of features, including this one, and was wondering how I could get the online now list to display in a spot other than the footer?

    Again... a complete newb. Is there a way to call out that .php file in another spot? ... like an include. Learning all this on the fly, so please pardon the ignorance. Any guidance would be very helpful. Thanks again.

    Posted: 2 years ago #
  8. Just installed it on 1.0.2, and it works like a charm.

    I pulled the styling info out of the code and replaced it in my css, and it only took a few minutes. Thanks!

    Posted: 2 years ago #
  9. I replaced user_login with display_name..
    Maybe, for security reason..

    Thanks...

    Posted: 2 years ago #
  10. I am trying to move the members online section from the footer to the forums (or views) section. Any help on how to do that?
    Thanks.

    Posted: 2 years ago #
  11. I'm running this fine on bbPress 1.0.2, however there is a bug
    in the footer the link should point at the users bbPress profile via url similar to example 1 below but the code is actually generating example url 2

    1. http://example.org/forum/profile.php?id=35
    2. http://example.org/forum/http://example.org/forum/profile.php?id=35

    the cure is to comment out the call to $bb_uri=bb_get_option('uri') ; on line 89
    notice there are similar contructs on line 90 - these are correct

    Posted: 2 years ago #
  12. Is there any way to move this from the footer to either the main body of the forum or even on the sidebar? It looks awkward where it is at the moment & I'd rather move it.

    Can anyone help?

    Posted: 2 years ago #
  13. citizenkeith

    Member

    @ladyelysium There are directions in the readme. Also, click the "Installation" link at the top of this page for more info.

    Posted: 2 years ago #
  14. Prause

    Member

    I'm running this plugin on bbPress 1.0.2.
    Everything is fine but I would like to show the texts in Czech language.
    What is your solution?
    Thanky, cheers.

    Posted: 2 years ago #
  15. works great, thanks

    Posted: 2 years ago #
  16. This is a great plugin! Is there any way to make it display the users' avatars instead of user names?

    Thanks,
    Wade

    Posted: 2 years ago #
  17. I use fb-connect. The problem is that it shows a fb-number instead of the fb-name of facebook-visitors. How can I change that?

    Example:

    today online:
    admin, fb1234567890000, member1, member2, member3, fb987654321000

    So it shows things like: fb1234567890000 for facebook visitors instead of their fb-names. Is their a way to change that?

    PS: I'm using this plugin for fb-connect:
    http://bbpress.org/forums/topic/facebook-connect-based-on-wp-facebookconnect

    Posted: 1 year ago #
  18. The plugin is designed around bbPress 0.9 so it uses user_login

    That's why you see the number. You'd have to change the plugin to use display_name

    Posted: 1 year ago #
  19. Many thanks for the hint, that works! I've changed the following code:

    if (empty($time)) {$time=time()-$members_online['timeout'];}
    $results=$bbdb-&gt;get_results("SELECT ID,user_login FROM $bbdb-&gt;users LEFT JOIN $bbdb-&gt;usermeta ON ID=user_id WHERE meta_key='last_online' AND cast(meta_value AS unsigned)&gt;'$time' ORDER BY meta_value DESC");
    if (!empty($results)) {
    $output=""; $rewrite = bb_get_option( 'mod_rewrite' ); $bb_uri=bb_get_option('uri');
    if (empty($rewrite)) {$uri=$bb_uri."profile.php?id=";} else {$uri=$bb_uri."profile/"; }
    foreach ($results as $result) { $key=$result-&gt;ID; $value=$result-&gt;user_login;
    if (empty($rewrite) || $rewrite !== 'slugs' ) {$stub=$key;} else {$stub= bb_user_nicename_sanitize($value);}
    $output.=" $value, ";
    }
    echo rtrim($output,", ");
    }
    }

    to this code:

    if (empty($time)) {$time=time()-$members_online['timeout'];}
    $results=$bbdb-&gt;get_results("SELECT ID,display_name FROM $bbdb-&gt;users LEFT JOIN $bbdb-&gt;usermeta ON ID=user_id WHERE meta_key='last_online' AND cast(meta_value AS unsigned)&gt;'$time' ORDER BY meta_value DESC");
    if (!empty($results)) {
    $output=""; $rewrite = bb_get_option( 'mod_rewrite' ); $bb_uri=bb_get_option('uri');
    if (empty($rewrite)) {$uri=$bb_uri."profile.php?id=";} else {$uri=$bb_uri."profile/"; }
    foreach ($results as $result) { $key=$result-&gt;ID; $value=$result-&gt;display_name;
    if (empty($rewrite) || $rewrite !== 'slugs' ) {$stub=$key;} else {$stub= bb_user_nicename_sanitize($value);}
    $output.=" $value, ";
    }
    echo rtrim($output,", ");
    }
    }

    There is only one problem left. The link to the profiles doesn't work anymore.

    Old link:
    This link works: http://www.xxx.com/forum/profile/fb100123456789

    New link:
    This link doesn't work: http://www.xxx.com/forum/profile/membername

    Now the link to the profile doesn't work anymore. The link should remain user_login

    Posted: 1 year ago #
  20. My theme does not support the display of the list of users in the footer,
    help: how can I put on the main part of the forum?

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment »

You must log in to post.