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
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) https://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
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?
Adding this feature to the plugin is currently not possible, I think this is something even more complex!
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.
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
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!!
Well, I thought it worked. It shows that I’m the only member online, but there are others posting!
Version of the plugin? bbpress version? Have you tried setting $mysql41 to false?
Very strange … can you provide an link to your forums? …
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/
Just tried changing $mysql41 to false. Didn’t work.
Very strange!
Maybe do the following:
Have you installed any other plugins?
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
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.
I’m looking for a way to make it so only administrators can see who is online. Can that be done easily?
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
Or if you want it on front-page anyway, add something like <?php if ( bb_current_user_can( 'edit_users' ) ) : ?>
around the code.
Both very good ideas. Thanks guys. Appreciate it.