Skip to:
Content
Pages
Categories
Search
Top
Bottom

Plugin: Simple Onlinelist

  • @thomasklaiber

    Member

    Hi.

    I really missed an onlinelist in bbpress, so i made a simple one myself. Dont expect anything special, it just tells who was online over the past 5 minutes.

    Download it here.

    See a demo here. (Login use: Test / test)

    To Display the online list simply add show_online_users(); wherever you want it in your template.

    Additional Features:

    – Last online time on profile page: profile_last_online();

    – Current online users as number: total_online_users();

Viewing 25 replies - 26 through 50 (of 54 total)
  • @trent

    Member

    If I delete the table, it works for the first logged in visitor to view the site, but no others. I am still at a loss. That is with the variable set to false.

    Trent

    @thomasklaiber

    Member

    Hehe … I think I found the bug. You’ve said, you’re using the latest Trac-Version of bbPress?

    Then I think you have to change line 48 of my plugin from

    add_action('init', 'online_update');

    to

    add_action('bb_init', 'online_update');

    then … it should work! (for me it did)

    @trent

    Member

    That was it! Working now!

    Trent

    @mistainu

    Member

    i got this error:

    bbPress database error: [Table ‘gray_wordpress.bb_online’ doesn’t exist]

    SELECT * FROM bb_online WHERE user_id = 1 LIMIT 1

    bbPress database error: [Table ‘gray_wordpress.bb_online’ doesn’t exist]

    INSERT INTO bb_online (user_id, activity) VALUES (‘1’, ‘1167539857’)

    what happened?

    EDIT: (2 posts above) https://bbpress.org/forums/topic/283?replies=30#post-2413 seems to have fixed it.

    @trent

    Member

    Are you still getting that error, or did you just get it once while the plugin was creating the tables? The error suggests that the plugin table wasn’t created.

    Trent

    @citizenkeith

    Participant

    I need something similar… at the bottom of each thread’s page, a list of who is currently viewing that particular thread. Can this be added to this plugin, or does another one exist?

    @thomasklaiber

    Member

    Adding this feature to the plugin is currently not possible, I think this is something even more complex!

    @citizenkeith

    Participant

    I just tried the new version. Instead of listing who is online, it just lists all the currently registered members. When I edited the file to include add_action(‘bb_init’, ‘online_update’); , it lists every member minus me.

    @citizenkeith

    Participant

    I switched back to the first version, but the member list was still messed up. So I emptied the bb_online table, and now it doesn’t work at all. :( Oops.

    @null

    Member

    Keith, try deleting the whole table (not empty it) and re-upload the plugin, perhaps that works…

    Also what is the template name from your template used on you website (wordpress site). Kinda like it’s simplicity!

    Greetz

    @citizenkeith

    Participant

    Null,

    Thanks for the help! That did the trick. Doh!

    The theme I use on my WordPress site is called “Plain Vanilla,” and can be downloaded here:

    http://ckunte.com/archives/plain-vanilla-1

    @null

    Member

    Hmm your is a bit differnt can you zip your version and mail it to me? Got it thx!!

    @citizenkeith

    Participant

    Well, I thought it worked. It shows that I’m the only member online, but there are others posting!

    @thomasklaiber

    Member

    Version of the plugin? bbpress version? Have you tried setting $mysql41 to false?

    Very strange … can you provide an link to your forums? …

    @citizenkeith

    Participant

    Version of the plugin?

    1.3-fix

    bbpress version?

    version 0.8.1 with Fix bbPress Plugin 0.8.1-1 installed

    Have you tried setting $mysql41 to false?

    Not yet.

    Very strange … can you provide an link to your forums? …

    http://www.citizenkeith.com/forums/

    @citizenkeith

    Participant

    Just tried changing $mysql41 to false. Didn’t work. :(

    @citizenkeith

    Participant

    bump

    @thomasklaiber

    Member

    Very strange!

    Maybe do the following:

    Have you installed any other plugins?

    @citizenkeith

    Participant

    I just followed your directions. Every time I delete bb_online, it shows that I’m online but soon switches to “no users.” It’s still showing that I am online, but I’m waiting for other members to show up. :)

    In the meantime, here’s my plugin list:

    Allow Images 0.7.1

    Avatar 0.73a

    bbEmoticons 0.72

    Show Post Count 0.73a

    BBPress Private Messaging 0.73

    BBCode for bbPress 0.1

    Comment Quicktags for bbPress 1.1

    Fix bbPress 0.8.1-1

    JS QuickTags for bbPress version 1.0

    Online List 1.4

    Quote 0.2

    @citizenkeith

    Participant

    Looks like I’m back in business. THANKS!

    Also, I was using Online List 1.3-fix before… I didn’t realize there was a newer version available.

    @djeloso

    Member

    I’m looking for a way to make it so only administrators can see who is online. Can that be done easily?

    @chrishajer

    Participant

    Just include it on the admin page rather than on the front page of the forum. I have mine there. Then only administrators can see it.

    –Chris

    @thomasklaiber

    Member

    Or if you want it on front-page anyway, add something like <?php if ( bb_current_user_can( 'edit_users' ) ) : ?> around the code.

    @djeloso

    Member

    Both very good ideas. Thanks guys. Appreciate it.

    @nolageek

    Participant

    um, nevermind.

Viewing 25 replies - 26 through 50 (of 54 total)
  • You must be logged in to reply to this topic.
Skip to toolbar