1) I would like to integrate new icons on the menu bar at the top ... What lines and files to modify?
2) How to change the order of icons in the top menu ?
3) I would like to place in the top menu icon to go directly to the list of connected users
1) I would like to integrate new icons on the menu bar at the top ... What lines and files to modify?
Only way is to change all icons of corresponding item.
You can do it both ways :
- directly replace icons in /view/css/images
- add you own icons in /view/css/images and change css description in /view/css/projectorIcon.css
How to change the order of icons in the top menu ?
Change the order in the table "menu". Take care that it will also change order in the left menu, and order must be coherent with top menu of each item.
I would like to place in the top menu icon to go directly to the list of connected users
You must change restriction clause in /view/menuBar.php, line 39
if ($menu->id==36) {$suspend=true;}
to allow menu code you'd like. Actually, all menus with order > order of menu 36 won't be displayed.
ambroise1er wrote: 1) About Question 1: More specifically, my problem is to add new icons for calling new functions ....
What files and lines to change?
- Add corresponding lines it table menu.
- Add corresponding habilitations (throught sql or through access right screen)
- Add icons description in /view/css/projectorIcon.css (copy an existing for help)
_ then maybe add some code in /view/menuBar.php (you'll have tofind where as it depneds on your need...)
"...to allow menu code you'd like. Actually, all menus with order > order of menu 36 won't be displayed. "
There is a small problem : when I put the value $menu == 37 ($menu->id==37), twenty additional icons appear. I understand that incrementing the value of 1 (36 => 37), had the effect of displaying an additional icon on the top menu bar, and so on ...
foreach ($menuList as $menu) {
if ($menu->id==36) {$suspend=true;}
if (! $suspend and securityCheckDisplayMenu($menu->id,$menu) ) {
drawMenu($menu);
$lastType=$menu->type;
}
}
with
foreach ($menuList as $menu) {
if ($menu->id==36) {$suspend=true;}
if (! $suspend and securityCheckDisplayMenu($menu->id,$menu) ) {
drawMenu($menu);
$lastType=$menu->type;
}
}
is not what you need.
You should rather set somethong like
foreach ($menuList as $menu) {
if ($menu->id==36) {$suspend=true;}
if ( (! $suspend or $menu->id==xxx) and securityCheckDisplayMenu($menu->id,$menu) ) {
drawMenu($menu);
$lastType=$menu->type;
}
}
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Paramétrages de cookies
×
Cookies fonctionnels
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Veuillez vous connecter pour voir vos activités!
Autres cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.