View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Add new icons and change the order of icons on the top menu bar - ProjeQtOr
 

Add new icons and change the order of icons on the top menu bar

More
17 Mar 2013 15:49 - 17 Mar 2013 15:56 #1 by ambroise1er
Hello Babynus

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

Thank you in advance

cordially
Last edit: 17 Mar 2013 15:56 by ambroise1er.

Please Log in or Create an account to join the conversation.

More
17 Mar 2013 18:59 #2 by babynus

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.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: ambroise1er

Please Log in or Create an account to join the conversation.

More
18 Mar 2013 14:37 #3 by ambroise1er
1) About Question 1: More specifically, my problem is to add new icons for calling new functions ....

What files and lines to change?

Cordially

Please Log in or Create an account to join the conversation.

More
18 Mar 2013 16:23 #4 by babynus

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...)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
20 Mar 2013 15:26 #5 by ambroise1er
"...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 ...

How to display some specific icon precisely ?

Please Log in or Create an account to join the conversation.

More
20 Mar 2013 23:09 #6 by babynus
Read the code !
Replacing
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;
    	}
    }
where xxx is the id of the menu you want to show.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.039 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.