Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Fri Feb 17, 2006 3:34 pm Reply with quote

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?
 
View user's profile Send private message Visit poster's website ICQ Number
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Fri Feb 17, 2006 9:35 pm Reply with quote

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.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Donovan







PostPosted: Fri Feb 17, 2006 10:57 pm Reply with quote

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







PostPosted: Sat Feb 18, 2006 7:49 am Reply with quote

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







PostPosted: Sat Feb 18, 2006 8:00 pm Reply with quote

Thanks...I didn't think it was that easy.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©