There's a few errors in the latest release of this xmap extension.
First of all line 340 should read
[code]
$videos = xmap_com_community::getAllDBVideos($js15, $linksToDisplay);
[/code]
Then if you look down at the actual function getAllDBVideos() should be changed to look like this
[code]
function getAllDBVideos($js15, $linksToDisplay) {
// Fetch all videos
$db = &JFactory::getDBO();
if (($js15) && ($linksToDisplay["avoid-groups-photos"]))
$query = "SELECT id, title as name , creator FROM #__community_videos WHERE permissions=0 AND groupid=0 ORDER BY id";
else
$query = "SELECT id, title as name , creator FROM #__community_videos WHERE permissions=0 ORDER BY id";
$db->setQuery($query);
$list = $db->loadObjectList();
return $list;
}
[/code]
Owner's reply
This issue has been workout on v3.1.
Now the JS XMAP addon has been upgraded to version 4.0 to be compatible with the newest JomSocial v1.8.