Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: What determines the vertical ordering of the "Admin" icons
by davidthomas1 on 2005/11/24 2:22:21

It looks like if you deleted / commented out the line:

le="color: #000000"><?php $criteria->setSort('mid');


from the function xoops_module_get_admin_menu(), in include/cp_functions.php, the modules would be sorted only by "weight" and therefore customisable via the modules page.
Re: What determines the vertical ordering of the "Admin" icons
by dx6angel on 2004/12/11 11:37:29

The ordering of the admin menu is a question that has been raised a few times without any resolution.

I have just installed my second online XOOPS site. With the first installation the way I ensured the ordering of the admin menu was by installing the modules according to their order. In other words, if I wanted News above Calendar, I installed the News module first.
Fine.

My second installation, however, did not turn out the same.
I installed the modules in the order I wanted them to appear in my admin menu and ordered them the same for the main menu in the system/modules section.
I then uninstalled the last module I installed and hey presto, the new order in the admin menu is now:

1 (system)
9 (faq)
8 (partners)
7 (forum)
6 (evennews)
5 (calendar)
4 (database tools)
3 (headlines)
2 (news)

This is very irritating for me because I do most of my admin in news and headlines, which are now at the bottom of the bloody page!

So my questions are:

1) How can I permanently re-order the admin menu?
I have already deleted the adminmenu.php in cache twice now and it still has not ordered the menu according to my ordering of the modules on the system/modules install/uninstall page.

2) Why on earth did it reverse the order?
Re: What determines the vertical ordering of the "Admin" icons
by Dave_L on 2004/12/8 2:28:14

I've been trying to figure this out.

The HTML for that page is stored in cache/adminmenu.php. That file is generated by this code in admin.php:

le="color: #000000"><?php xoops_module_write_admin_menu(xoops_module_get_admin_menu())


The function xoops_module_get_admin_menu(), which is in include/cp_functions.php, gets the modules from the database using this code:

le="color: #000000"><?php $module_handler =& xoops_gethandler('module'); $criteria = new CriteriaCompo(); $criteria->add(new Criteria('hasadmin', 1)); $criteria->add(new Criteria('isactive', 1)); $criteria->setSort('mid'); $mods =& $module_handler->getObjects($criteria);


That results in the query:

le="color: #000000"><?php SELECT * FROM xoops_modules WHERE (hasadmin = 1 AND isactive = 1) ORDER BY weight ASC, mid ASC


So the modules should be sorted first by weight (called "Order" on the Modules Administration page) and then by module ID. Both sorts are ascending.

I'm not sure what causes the file cache/adminmenu.php to be regenerated, so you could try deleting that file to force it to get rebuilt. That will result in the message "This is your first time to enter the administration section.", which doesn't seem to hurt anything, but I'm not sure about that either.
Re: What determines the vertical ordering of the "Admin" icons
by phillipd on 2004/12/7 23:25:03

I tried the suggestion in the FAQ:

https://xoops.org/modules/smartfaq/faq.php?faqid=278

But the system admin Icon never returns to the top. It bounces between 2nd, third and forth.

Doug P
Re: What determines the vertical ordering of the "Admin" icons
by jdseymour on 2004/12/7 23:21:38

No mine seem to be in different order than I installed them.

I notice some go to the bottom, some in the middle.

And some seem to change position when I install a new module, up or down.

Who's Online

218 user(s) are online (186 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits