Salve, sto realizzando un sito joomla su altervista; ho appena scaricato ed installato l'ultima versione di Agorà (3.0.08) e sto cominciando a fare qualche prova. Cliccando sulla gestione utenti mi compare il seguente messaggio:
Parse error: syntax error, unexpected '(', expecting '}' in /membri/miosito/components/com_agora/model/user.php on line 288
Come e cosa posso fare per risolvere?
Grazie in anticipo.
...
function getUserFullName($username)
{
//// We need it in PM // if we need real name from Joomla we will return to JOIN in future
$this->db->setQuery("SELECT name".
" FROM {$this->table} AS u".
" INNER JOIN #__users AS j".
" ON u.jos_id = j.id".
" WHERE LOWER(TRIM(j.username)) = LOWER({$this->db->Quote(trim($username))})");[/B][/B]
return $this->db->loadResult();
}
function moderateAny($user_id)
{
$this->db->bind('user_id',$user_id,'integer');
$this->db->bindList('roles',array(AGORA_ROLE_ADMIN,AGORA_ROLE_MODERATOR),'integer');
$this->db->setQuery('SELECT COUNT(*) FROM ##__user_group WHERE user_id=:user_id AND role_id IN roles)');
return $this->db->loadResult() > 0 ? true : false;
}
Parse error: syntax error, unexpected '(', expecting '}' in /membri/miosito/components/com_agora/model/user.php on line 288
Come e cosa posso fare per risolvere?
Grazie in anticipo.
...
function getUserFullName($username)
{
//// We need it in PM // if we need real name from Joomla we will return to JOIN in future
$this->db->setQuery("SELECT name".
" FROM {$this->table} AS u".
" INNER JOIN #__users AS j".
" ON u.jos_id = j.id".
" WHERE LOWER(TRIM(j.username)) = LOWER({$this->db->Quote(trim($username))})");[/B][/B]
return $this->db->loadResult();
}
function moderateAny($user_id)
{
$this->db->bind('user_id',$user_id,'integer');
$this->db->bindList('roles',array(AGORA_ROLE_ADMIN,AGORA_ROLE_MODERATOR),'integer');
$this->db->setQuery('SELECT COUNT(*) FROM ##__user_group WHERE user_id=:user_id AND role_id IN roles)');
return $this->db->loadResult() > 0 ? true : false;
}
Ultima modifica: