Hello,
I'm using a FireBoard forum with Joomla:
www.blockout.net/index.php?option=com_fireboard&Itemid=27
The userList is not working properly:
I had to make the following path in order to make it work properly.
File: template/default/plugin/userlist/userlist.php
Line 54:
[code:1]
Replaced:
$query
= "SELECT u.id, u.name, u.username , u.usertype , u.email , u.registerDate, u.lastvisitDate ,fu.showOnline, fu.group_id, fu.posts ,fu.karma , fu.uhits , g.title "
. "nFROM #__users AS u " . "nINNER JOIN #__fb_users AS fu ON fu.userid = u.id" . "nINNER JOIN #__fb_groups AS g ON g.id = fu.group_id ";
By:
$query = "SELECT * FROM (";
$query .= " SELECT u.id, u.name, u.username , u.usertype , u.email , u.registerDate, u.lastvisitDate , fu.group_id,";
$query .= " fu.posts ,fu.karma , fu.uhits , g.title";
$query .= " FROM #__users AS u";
$query .= " INNER JOIN #__fb_users AS fu ON u.id=fu.userid";
$query .= " INNER JOIN #__fb_groups AS g ON g.id = fu.group_id";
$query .= " UNION (";
$query .= " select id,name,username,usertype,email,registerDate,lastvisitDate,1 AS group_id,0 as posts,0 as karma,";
$query .= " 0 as uhits,'Registered User' as title";
$query .= " FROM #__users WHERE #__users.id not in (select userid from #__fb_users)";
$query .= " )";
$query .= "«») AS allTable";
[/code:1]
Note: I adapted the default values for users which are not in the yet __fb_users table to
my purpose.
I would be great if this can be integrated in the new release.
Thank you very much for your work :)