Skip to:
Content
Pages
Categories
Search
Top
Bottom

Plugin: Simple Onlinelist


  • thomasklaiber
    Member

    @thomasklaiber

    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 53 total)
  • 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

    @thomasklaiber

    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)

    That was it! Working now!

    Trent

    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) http://bbpress.org/forums/topic/283?replies=30#post-2413 seems to have fixed it.

    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

    @citizenkeith

    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

    @thomasklaiber

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


    citizenkeith
    Participant

    @citizenkeith

    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

    @citizenkeith

    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.

    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

    @citizenkeith

    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

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


    citizenkeith
    Participant

    @citizenkeith

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


    thomasklaiber
    Member

    @thomasklaiber

    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

    @citizenkeith

    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

    @citizenkeith

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


    citizenkeith
    Participant

    @citizenkeith

    bump


    thomasklaiber
    Member

    @thomasklaiber

    Very strange!

    Maybe do the following:

    Have you installed any other plugins?


    citizenkeith
    Participant

    @citizenkeith

    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

    @citizenkeith

    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

    @djeloso

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


    chrishajer
    Participant

    @chrishajer

    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

    @thomasklaiber

    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

    @djeloso

    Both very good ideas. Thanks guys. Appreciate it.

    um, nevermind.

Viewing 25 replies - 26 through 50 (of 53 total)

You must be logged in to reply to this topic.