if ($mainframe->getCfg('sef') != '2') { $query2 = "SELECT id FROM #__menu WHERE link='index.php?option=com_user&task=list' AND published='1'"; $database->setQuery($query2, '#__', 1, 0); $_Itemid = intval($database->loadResult()); if (!$_Itemid) { $_Itemid = $Itemid; } echo '<h2>'._E_RANDOMUSERS.'</h2>'._LEND; //added from com_user - user.html.php }
global $my, $database, $mainframe, $Itemid;echo '<h2>'._E_RANDOMUSERS.'</h2>'._LEND; $query = "SELECT id, name, username, usertype, preflang, avatar, gender, birthdate, registerdate"