Search found 10 matches

by barlasd
Thu Feb 01, 2018 4:53 pm
Forum: Plugins e Patch
Topic: Mostrare agli Amministratori solo i gruppi che gli sono stati assegnati
Replies: 10
Views: 13870

Re: Mostrare agli Amministratori solo i gruppi che gli sono stati assegnati

$user_level e $idstLogged le devi definire però... In teoria sarebbe più pulito utilizzare lib.preference.php: $query = "SELECT g.idst, g.groupid, g.description, COUNT(*) as usercount " ." FROM %adm_group as g LEFT JOIN (%adm_group_members AS gm ) ON (gm.idst = g.idst) " ."...
by barlasd
Thu Feb 01, 2018 1:52 pm
Forum: Plugins e Patch
Topic: Mostrare agli Amministratori solo i gruppi che gli sono stati assegnati
Replies: 10
Views: 13870

Mostrare agli Amministratori solo i gruppi che gli sono stati assegnati

Dopo aver creato un profilo amministratore e averlo assegnato ad un Utente amministratore mi sono accorto che nonostante l'assegnazione di Gruppi di utenti specifici, l'admin ha comunque accesso a tutti i gruppi disponibili dalla Gestione gruppi. E' molto grave perché, se gli vengono abilitati i per...
by barlasd
Wed Jan 31, 2018 7:51 pm
Forum: Gestione Didattica e Frontend
Topic: Punteggio finale Test errato
Replies: 15
Views: 11501

Re: Punteggio finale Test errato

Rieccomi su questo thread: abbiamo chiuso il loop, e verificato che questa cosa era già stata risolta un anno fa, febbraio 2017, e dunque già fixata su Forma 1.4.3 - oltre che su Forma 2 naturalmente. Sulla 1.4.3 il "bug" è ancora presente, basta aprire il file che ho indicato nel post pr...
by barlasd
Fri Jan 26, 2018 9:54 am
Forum: Gestione Didattica e Frontend
Topic: Punteggio finale Test errato
Replies: 15
Views: 11501

Re: Punteggio finale Test errato

danilo wrote:
Grazie per il prezioso consiglio! Avevo notato il bug tempo fa, ma non lo avevo segnalato nel forum.
di nulla :)
by barlasd
Thu Jan 25, 2018 12:19 pm
Forum: Administration Management
Topic: how do I auto import all users from ldap?
Replies: 10
Views: 8237

Re: how do I auto import all users from ldap?

I had tried but i can't see the captcha...
by barlasd
Thu Jan 25, 2018 11:33 am
Forum: Administration Management
Topic: how do I auto import all users from ldap?
Replies: 10
Views: 8237

Re: how do I auto import all users from ldap?

Hi Claudio,
Is there a way to access to betatesting of the Forma 2.0 version?
I'm curious to see the new features.

Grazie. :)
by barlasd
Thu Jan 25, 2018 10:15 am
Forum: Administration Management
Topic: how do I auto import all users from ldap?
Replies: 10
Views: 8237

Re: how do I auto import all users from ldap?

Edit the file lib.user.php into the folder lib : Replace the rows 231-235 with this code: if( $user_info === false ){ if(Get::sett('ldap_used') == 'on') { $ldap_conn = @ldap_connect( Get::sett('ldap_server'), Get::sett('ldap_port', '389')); $ldap_user = ereg_replace( '\$user', $login, Get::sett('lda...
by barlasd
Wed Jan 24, 2018 4:17 pm
Forum: Administration Management
Topic: how do I auto import all users from ldap?
Replies: 10
Views: 8237

Re: how do I auto import all users from ldap?

I wrote a workaround that automatically adds the user to the database users, after the login (obviously after verifying that the LDAP accepts the login).

If you are interested i can share the code.
by barlasd
Wed Jan 24, 2018 1:44 pm
Forum: Gestione Didattica e Frontend
Topic: Errore in risultato test per categorie (scelta random delle domande)
Replies: 15
Views: 11957

Re: Errore in risultato test per categorie (scelta random delle domande)

Ho fixato l'errore nel codice aggiungendo un workaround che recupera il totale corretto in base al numero di domande scelto per singola categoria. Per apportare il fix bisogna modificare il file do.test.php presente nel percorso: appLms/modules/test cancellare il codice dalla riga 1126 alla 1145 e s...
by barlasd
Wed Jan 24, 2018 9:49 am
Forum: Gestione Didattica e Frontend
Topic: Punteggio finale Test errato
Replies: 15
Views: 11501

Re: Punteggio finale Test errato

Per risolvere il "problema" basta modificare il file do.test.php che si trova nel percorso: appLms/modules/test togliendo il commento dalla riga 1097 e mettendolo alla riga 1098 Scelta un po' discutibile quella degli sviluppatori di mettere un punteggio statico a 100 scrivendolo direttamen...