Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: Summon user


AphelionZ
Participant

@aphelionz

I added some pizazz to this plugin – If you have the Simple Online list and Posts Since Last Visit Plugin you can run the query on the bb_online table and populate the summon list with only users that have actually logged in. I trimmed about 80 users out of the select list with this, and it still works:

function summon_get_users() {
global $bbdb;
// maybe cached in future versions.
$users = $bbdb->get_results("SELECT * FROM <code>bb_online</code> INNER JOIN wp_users ON bb_online.user_id = wp_users.ID WHERE 1 ORDER BY <code>wp_users</code>.<code>user_login</code> ASC LIMIT 0 , 30");

return $users;
}

Skip to toolbar