DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • April 22, 2018, 12:49:11 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: Discussion: Additional Module Operations  (Read 8526 times)
0 Members and 1 Guest are viewing this topic.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« on: June 17, 2009, 09:56:52 AM »

What This Module Does
1. Shows a page that lists the last installed modules. (setting for how many to show). Complete with the normal module options.
2. Shows a page that lists the last updated modules.
3. Shows a page that lists all de-actived modules.
4. Takes over the uninstall/install/active/deactive functions from modules.php so that it can add an entry to the gamelog saying who has done what to which module.
5. Can view gamelog ops by superuser.
6. Can view gamelog ops for a particular superuser.
7. Replaced next/previous gamelog links with links to each page.
8. Can replace the "manage modules" link in the grotto so you go to the last installed/updated page instead of the uninstalled modules page.


Feedback, bugs, questions welcome. Smiley

Download: Here.
« Last Edit: September 02, 2010, 11:48:38 AM by Afkamm » Logged

Check My Modules for the latest versions.
Contessa*Seasons
Militia
**
Offline Offline

Posts: 60



View Profile WWW
« Reply #1 on: June 17, 2009, 10:37:04 AM »

Good God Marc!! This is perfect.. hmm was this your idea or mine?!! (laughs) Its perfect and so needed.. Why wasn't this ever done before?? (hugs) thanks bunches!!!
Logged

Embrace the passion of the adventure and sail into the Land of Tarkenna
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #2 on: June 17, 2009, 10:55:50 AM »

Who knows, but you asked for it. :-P
Logged

Check My Modules for the latest versions.
KaosKaizer
Mod God
*****
Offline Offline

Posts: 1016


Zeno's Arrow never hits the mark.


View Profile
« Reply #3 on: June 17, 2009, 12:35:08 PM »

Way to go Marc! I can't believe I didn't think of this! You make me jealous...It is such a great module, it makes me want to deact mods and install new mods  Cheesy
Logged

My Mods
I'm not currently a fully active member of DP, though I do respond to most PMs.
KaosKaizer
Mod God
*****
Offline Offline

Posts: 1016


Zeno's Arrow never hits the mark.


View Profile
« Reply #4 on: June 17, 2009, 03:51:49 PM »

Hm...that's odd...it doesn't allow for uninstalling modules directly from either list, yet it has the uninstall button. Tongue
Logged

My Mods
I'm not currently a fully active member of DP, though I do respond to most PMs.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #5 on: June 17, 2009, 04:07:53 PM »

Hmm...that's odd...it works for me. Tongue

Can you give me a step by step guide as to what you're doing?
Logged

Check My Modules for the latest versions.
KaosKaizer
Mod God
*****
Offline Offline

Posts: 1016


Zeno's Arrow never hits the mark.


View Profile
« Reply #6 on: June 17, 2009, 04:33:56 PM »

Okie-Dokie...

Deactivated Modules
I go to the module manager(both from the grotto and the village).
Then, I click 'Deactivated Modules'.
I find the module I want to uninstall(in this case, Alignment Buffs).
I click 'Uninstall'.
It takes me to the same page with a badnav and does not uninstall the selected module. I have tried this way with different modules, and I get the same thing.

Last Installed Modules
I go to the module manager(both from the grotto and the village).
Then, I click 'Last Installed Modules'.
I find the module I want to uninstall(in this case, Traveler's Grave).
I click 'Uninstall'.
It takes me to the same page with a badnav and does not uninstall the selected module. I have tried this way with different modules, and I get the same thing.

::EDIT::
For either list, I found that if I click the little check box and scroll down and press the actual button, it does uninstall. It just won't install with the individual 'Uninstall' link.
« Last Edit: June 17, 2009, 04:36:36 PM by kaizerDRAGON » Logged

My Mods
I'm not currently a fully active member of DP, though I do respond to most PMs.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #7 on: June 17, 2009, 05:23:22 PM »

Ah thankyou for that. In your first post you mentioned the form button, not the text links. Tongue

Silly me changed some double quotes to single and in doing so broke a few addnav()s that had a variable in them causing the badnavs. :-/

Thanks for taking the time to post. Smiley
Logged

Check My Modules for the latest versions.
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #8 on: June 17, 2009, 08:45:46 PM »

This strikes me as being an excellent idea.  I haven't had a chance to look at it yet, but does it also indicate who installed the module?

This is the sort of idea that could be easily incorporated in the core code (hopefully kickme reads this!) as a feature instead of a module.

It would be quite useful if it logged recent module installations/activations/deactivitions and the user who made the change.  Additional utility could be provided by logging changes to the module settings/preferences, audit log style.
Logged

Play the latest beta version here on DragonPrime
KaosKaizer
Mod God
*****
Offline Offline

Posts: 1016


Zeno's Arrow never hits the mark.


View Profile
« Reply #9 on: June 18, 2009, 12:10:40 AM »

No problem, Marc. It just irks me to sit by when I know there is an error...When I mentioned button, I meant it. But, that was an error on my part  Embarrassed I accidently caused a badnav myself by clicking again before loading. Your welcome  Smiley
Logged

My Mods
I'm not currently a fully active member of DP, though I do respond to most PMs.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #10 on: June 18, 2009, 05:44:57 AM »

This strikes me as being an excellent idea.  I haven't had a chance to look at it yet, but does it also indicate who installed the module?

The table output is basically just a copy of what you get when you click on a module category with only 2 changes. A category column so you can see where each module is located, and instead of displaying the install date, you get a "2 days, 5 hours ago" time. (yes, the name of who installed it is there.)

Quote
This is the sort of idea that could be easily incorporated in the core code (hopefully kickme reads this!) as a feature instead of a module.

Oh yeah easily. Thank Contessa, it was her suggestion. Cheesy

Quote
It would be quite useful if it logged recent module installations/activations/deactivitions and the user who made the change.  Additional utility could be provided by logging changes to the module settings/preferences, audit log style.

Contessa wanted the date of the deactivation to be shown, but there's no such thing. A date and who deactivated a module would be nice.

The gamelog does make note of changes to module settings, but not who activates/deactivates modules. This would probably be the place to add such a thing.

View by module settings
View by module activation
View by module deactivation
View by superuser

I'll tinker about and see what I can come up with. Smiley
Logged

Check My Modules for the latest versions.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #11 on: June 19, 2009, 07:19:15 PM »

Ok, done. To add messages into the gamelog table I had to replicate the code in modules.php that dealt with the installation etc. of the modules. I hook in as header so my copy of the code gets run first and then I wipe $op and $modules so they don't get done again. Smiley
Logged

Check My Modules for the latest versions.
Haleth
Militia
**
Offline Offline

Posts: 38


View Profile
« Reply #12 on: June 02, 2010, 05:47:18 AM »

This module is working fine, I use it very often. But there ist a problem for me - running version 1.1.1.
When deleting a module, I don't get the possibility to choose, wether appropriate translations can be deleted with the module.
After deinstallation of last_installed.php, the question: "Delete translations from table translations too?" occurs and I can delete the translations belonging to any module, I want to discard. So I think, it's not a problem of translation-wizzard.

Is there a possibility, to have both, this module and clean translation-table?
Logged
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #13 on: September 01, 2010, 12:27:26 PM »

Is this the translationwizard module you're talking about?

Shouldn't be a problem. Smiley
Logged

Check My Modules for the latest versions.
Haleth
Militia
**
Offline Offline

Posts: 38


View Profile
« Reply #14 on: September 02, 2010, 02:29:04 AM »

Yes, I've installed translationwizard-module and yours, last_installed.php. Normally, if I de-install a module, translationwizzard asks, if I also want to delete translations of this module. But when last_installed is installed, translationwizard does not ask, does not give me this choice. De-installing last_installed.php, translationwizard gives me the choice. Checked this several times. Gameversion is 1.1.1.

Perhaps shouldn't be a problem, but it is .. for me. Not a very big one, as I can delete translations via DB, but I'm curious Wink
Do you have any idea, what could be reason for this?
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
33 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search