| Author |
Message |
Donovan Client

Joined: Oct 07, 2003 Posts: 735 Location: Ohio
|
Posted:
Fri Feb 17, 2006 3:34 pm |
|
Is it possible to develop a custom module and have it display in the Modules Administration menu versus the Administration Menu? How do you develop custom Nuke modules and give access to users without giving them superusers accounts? |
|
|
 |
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 6044
|
Posted:
Fri Feb 17, 2006 9:35 pm |
|
Yes. Put the admin file in an admin directory under the module, rather than on the site admin file. You can create admin users without giving them full access to your nuke administration - you just specify those modules to which they have access. They will need to access your admin page, but they won't see anything other than the modules to which you've granted them admin access. |
|
|
|
 |
Donovan Client

Joined: Oct 07, 2003 Posts: 735 Location: Ohio
|
Posted:
Fri Feb 17, 2006 10:57 pm |
|
My structure is like this:
html/admin/links/links_milpacs.php
html/admin/case/case_milpacs.php
html/image/admin/milpacs.png
html/modules/MILPACS/admin/index.php
etc
and so on.
I did not create a file under
html/admin/modules/milpacs.php
As I think you meant.
Can you be more descriptive when you say
"admin file in an admin directory under the module"
Currently all my admin files are in my module except for my case and link. |
|
|
 |
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 6044
|
Posted:
Sat Feb 18, 2006 7:49 am |
|
Moving the case and links to the module moves it from administration to modules administration, and allows you to assign admin users to that module in later versions of PHP-Nuke.
When you move the files, you can rename like:
html/admin/links/links_milpacs.php -> html/modules/milpacs/admin/links.php
html/admin/case/case_milpacs.php -> html/modules/milpacs/admin/case.php |
|
|
|
 |
Donovan Client

Joined: Oct 07, 2003 Posts: 735 Location: Ohio
|
Posted:
Sat Feb 18, 2006 8:00 pm |
|
Thanks...I didn't think it was that easy. |
|
|
 |
 |
|
|
|
|