Author |
Message |
wrecit
Regular


Joined: Jan 27, 2008
Posts: 99
|
Posted:
Sun Jan 27, 2008 5:46 pm |
|
How do I go about weeding out unneeded moduals from a Nuke program.
For example if I did not have a need for an encylopedia or AdventGo modual can I just deleate the folder from the modual folder? Would I be creating security holes by just deleating moduals?
I am trying to lighten my up load file to just what I need to run the site but do not want to mess things up. In the past I just let them lie dormant but it seams like a waste of server space. |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Sun Jan 27, 2008 6:14 pm |
|
For newer modules you can just delete the folder under the modules directory. That will still leave the admin panel graphic behind, but that isn't very big. |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Sun Jan 27, 2008 7:40 pm |
|
There are some subtle and deep lying relations between modules that could produce unintended effects in some cases. As far as I know you would be okay deleting the two modules you mentioned but in other cases one module or the core can call another and cause an error if it's gone
If you are looking to lighten your load you might start with unneeded language files. Using Windows Explorer just do a search on lang-*.php, get them all lined up in an Explorer search block and then block and delete the ones you don't want. From a number of files perspective you will get a lot better bang for your buck that way than by deleting a few modules. |
|
|
|
 |
Gremmie

|
Posted:
Sun Jan 27, 2008 8:38 pm |
|
Sure, you don't want to delete Your_Account for example.  |
|
|
|
 |
fkelly

|
Posted:
Sun Jan 27, 2008 10:04 pm |
|
Rofl, yeah you are right Gremmie. I wish I could recall some other examples but there are some that are much more subtle and would come back to bite you. Well heck, as I say that I am recalling some and they aren't even that subtle. If you delete a user from your account it will try to delete his/her private messages. So if that module (and tables) aren't on the system the least you will get is a SQL error. Likewise, you could say "well I use my Cpanel statistics, not Nuke's so I'll delete that". Well it might seem like you are getting away with it but behind the scenes, on every page load the statistics tables are still being updated. You just don't have a module that will report on them any more.
I think, in general, it would be great to be able to delete unnecessary modules. But we need some kind of relationship mapping in the code before we recommend this for widespread use. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon Jan 28, 2008 6:45 am |
|
The ones that I would not remove would be: Forums, Private_Messages, Members_List, News, Search, NukeSentinel, Submit_News (maybe this could be removed if only an admin is to create new articles) and Your_Account. I think these all have some tie-ins with other core files or across modules.
Of course, I would test, test, test before removing anything else, as the above is only an educated guess. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Jan 28, 2008 8:08 am |
|
Table relationship mapping - now there's an idea  |
|
|
|
 |
fkelly

|
Posted:
Mon Jan 28, 2008 8:37 pm |
|
Here's another example I just thought of. I'm not trying to discourage this by the way, just make sure it is thought through. When you go into authors.php it displays each admin you have created for you site and it checks the modules table for a field called admin to see if a given author has administrative rights over the module. (This is for admins who are not superadmins). So maybe you created an admin to manage your encylopedia. That's all he or she was going to do. Now you delete the encyclopedia module and modules.php sees that module is not there and deletes the encyclopedia record. Now that admin ... well I don't know what would happen ... but at best he'd be "stranded" as an admin with nothing to do. |
|
|
|
 |
|