Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
kevinkap
Involved
Involved



Joined: Apr 22, 2006
Posts: 356

PostPosted: Thu Nov 08, 2007 9:01 pm Reply with quote

Is there a way to move a module that is only listed in the "Administration Menu" and put it in the "Module Administration" section. I have a module that I need to give permission to but cannot since it is not listed in the second section.

_________________
Kevin Kappes 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Nov 08, 2007 9:16 pm Reply with quote

You would have to rewrite the module's admin part to conform to the newer scheme where the admin code for a module is placed under the module's directory instead of in the separate <nuke-root>/admin directory.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
kevinkap







PostPosted: Fri Nov 09, 2007 8:00 am Reply with quote

Would that just be editing one file? admin.php?
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Fri Nov 09, 2007 8:55 am Reply with quote

No, editing admin.php will not solve your problem.

Purely administrative functions: those that show up in the ACP under "Administration Menu" have case.php and links.php files in

/nukeroot/admin/case
/nukeroot/admin/links
respectively.

Then they have an administration php file in:

/nukeroot/admin/modules

A couple of them (nukesentinel and nsngroups) also have directories in say,
/nukeroot/admin/modules/nukesentinel

for instance. These contain further administrative functionality.

A "normal" module which also has administrative sections is structured:

/nukeroot/modules/modulex/admin

and then in there it has case and links directories as well as an index.php and sometimes further admin functionality.

The privileges for a normal administrative module are managed in the edit admins panel (the program authors.php) and for non-superuser admins is reflected in the modules table in the field "admins" ... that is a comma separated list of admins who can admin that module.

Admin.php simply rummages thru the appropriate case and links directories to find those modules that belong in the administrative section and those that belong in the modules section of the ACP.

So that basically says that what Gremmie said, goes. You'd need to move the structure around. And you'd want to have a test system in place cause I don't think it is going to be all that easy.

If you want to get into this then the first step would be to look at admin.php and see how it manages what's displayed ... the "rummaging" code I mentioned. Then figure out if you want to proceed.[/quote]
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

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 ©