1
jayjay
Changing sort order of modules menu in admin control panel
  • 2003/10/7 15:49

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi all!

I'd like to change the sort order of the modules menu in the administration section of xoops. I want the system admin button on top and sort the other module buttons in descending order of importance. Somehow while installing a module, the order got messed up. Some module buttons even get displayed twice!

I looked at cp_functions.php (/include/)and at admin.php (/modules/system/) and also at the js-script that generates the popups in the menu, but I still haven't got a clue. Hope someone can help?

Greetz

Jayjay

2
cleber
Re: Changing sort order of modules menu in control panel
  • 2003/10/7 17:33

  • cleber

  • Just popping in

  • Posts: 11

  • Since: 2002/7/17


You can change the sort order by the:
Administration -> Modules
In the order field you can input the sequential numbers for sorting the menus at Control Panel.

3
pdaddict
Re: Changing sort order of modules menu in control panel
  • 2003/10/7 18:41

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


He's talking about the way the modules are ordered on the admin page, not the mainmenu. And yes, i'd like to know this too.

4
jayjay
Re: Changing sort order of modules menu in control panel
  • 2003/10/8 10:04

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi people!

I'm still struggling with this problem. Anyone got experience with sorting the modules buttons in the control panel? I tried just about anything I could come up with, but then again I'm not a php guru

To be clear: I'm *not* talking about the sort order of modules in the navigation block on the frontpage.

5
emmanuel
Re: Changing sort order of modules menu in control panel
  • 2003/10/8 10:21

  • emmanuel

  • Just popping in

  • Posts: 2

  • Since: 2003/9/23


It's a little bug.

The only way I read somewhere is to update the groups in CP. Sometimes the 'general preferences' module is automaticaly ordered fist, sometimes not...

hope this will help you...


6
jayjay
Re: Changing sort order of modules menu in control panel
  • 2003/10/8 11:42

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Yes I read that too and it solved part of the problem. After "reloading" the webmasters group in system admin, the system admin button was on top again. I'm still left with the double buttons though and I still like to choose the order of the buttons.

Thanks for the reply!

7
jayjay
Re: Changing sort order of modules menu in control panel
  • 2003/10/10 7:07

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


It seems noone knows the answer to this, so I'll just leave it as it is. Maybe it's something that can be considered in one of the next releases?

Thanks to everyone who replied!

PS: XOOPS rocks

8
chapi
Re: Changing sort order of modules menu in control panel
  • 2003/10/10 7:22

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


You can change the order in /cache/adminmenu.php

There are 3 settings for every the module:

$xoops_admin_menu_ml[1]
$xoops_admin_menu_sd[1]
$xoops_admin_menu_ft[1]

The number in [x] is for the module order in the adminmenu.

Example:
If you have only installed the news module, the system admin number is [1] and the news module number is [2]. Now you can change this numbers and the module icons in the administration will change its position.

I don't know what happens, when you update a module. Maybe it changes the order back again. But possibly it helps at the moment.

9
jayjay
Re: Changing sort order of modules menu in control panel
  • 2003/10/10 8:18

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi chapi,

I owe you a big thank you! The adminmenu.php file is generated server side so that's why I couldn't find a way to change the sort order of the modules menu in admin.

Anyway, you put me on the right track and after some tweaking I was able to change the order to my preferences. I think this feature should be available in the admin section, because I believe a lot of xoopsers can benefit from it. Maybe for a next release?

Thanks for the tip, chapi!

10
domifara
Re: Changing sort order of modules menu in admin control panel
  • 2003/10/10 8:20

  • domifara

  • Just popping in

  • Posts: 25

  • Since: 2003/9/11


I also think that XOOPS should sort.
You can try this hack.
admin icon is sorted under the weight of a module

modulesadmin icon is sorted under the weight of a module

but yet, there is no "admin control panel sort hack".

Login

Who's Online

54 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 54


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits