Firefox PHP

New mod: Check Module Upgrades (CMU)

Posted by Joe Curia 
All files from this thread

File Name File Size   Posted by Date  
check_module_upgrades_v1_00.zip 2.1 KB open | download Joe Curia 03/09/2007 Read message
cmu_screenshot.jpg 53.2 KB open | download Joe Curia 03/09/2007 Read message
New mod: Check Module Upgrades (CMU)
March 09, 2007 03:45PM
This module will check all CMU-compatible modules for upgrades and list their status.
CMU Version [1.00]
To start, the only compatible modules are those I have created. However, I hope that other developers will begin to use this module as well. In order to see which of your mods have upgrades , enable this mod then click on the "Settings" link. There are no settings, only a page with all of your mods and their current status.

I have attached a screenshot of this module in action. (Please note, that the CMU upgrade is not a bug, I simply set it to a higher version to show what would happen when an upgrade was available.)

For Developers:
In order for your module to show up in the CMU list you will need to do two things:
1 - Add the following lines to your modules info.txt, replacing the 9's with the appropriate numbers.
version: 9.99
link: http://www.phorum.org/phorum5/read.php?16,9999999

(please note that only links starting with http://www.phorum.org will work)

2 - Add the following line to your modules first post on this site:
CMU Version [9.99]
or, if you don't want the identifier visible:
[col[/color]or=#FFFFFF]CMU Version [9.99]
Please note, the only thing you should change in this line is the version number, the text and brackets are needed for proper recognition.

Further notes:
- You can use any version format that you would like. This module only looks to see if the version number online is different then the admin's current module. Thus 2.2.3.4a would show as an upgrade for 2.2.3.4
- Please remember to update your posts CMU version everytime you upgrade your module. Otherwise an admin may receive an upgrade flag even though he is on the most current version (ie. you upgrade to 2.5 but don't change the CMU on your post so the admin sees his current version as 2.5 and the upgrade as 2.4)


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 9 time(s). Last edit at 03/09/2007 08:08PM by Azumandias.


Attachments:
open | download - check_module_upgrades_v1_00.zip (2.1 KB)
Re: New mod: Check Module Upgrades (CMU)
March 09, 2007 04:47PM
Nice job! Checking for module upgrades is something that we have been thinking of too, but which we didn't get around to yet.

One drawback of CMU could be that for each CMU enabled module, a read request is sent to phorum.org. For a check that the user has to startup by hand it's not a real problem, but what I had in mind was to always check version in the admin. So a more lightweight solution would be needed for that kind of checking.

I have been working on a special Phorum module for a while now (other stuff keeps coming in between) that turns Phorum into a module repository (for a very early preview see [phorum-dev.gitaar.net]) and I wanted to incorporate version checking with that. My idea was to generate one single central list with all recent version numbers in it from the module, so a single request would be enough to get an up-to-date list of modules. No idea when this would be finished though ;-)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: New mod: Check Module Upgrades (CMU)
March 09, 2007 08:14PM
Quote
mmakaay
Nice job! Checking for module upgrades is something that we have been thinking of too, but which we didn't get around to yet.
Happy to help. It was something I really wanted as I am constantly releasing little upgrades for my mods.

Quote
mmakaay
One drawback of CMU could be that for each CMU enabled module, a read request is sent to phorum.org. For a check that the user has to startup by hand it's not a real problem, but what I had in mind was to always check version in the admin. So a more lightweight solution would be needed for that kind of checking.
I recognize this drawback as well, but I think this is the easiest way to get the developers to use this mod. Otherwise I would have to maintain a list, and I may not always be keeping up with the newest mods. This way it is self-maintained.

Also, your idea of always checking the admin would require a hack, wouldn't it? I strongly believe in the mod-not-hack concept so this was the easiest I could think of.

Thanks for your comments, critiques, and ideas. They are always helpful


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 1 time(s). Last edit at 03/10/2007 06:12AM by Azumandias.
Re: New mod: Check Module Upgrades (CMU)
March 10, 2007 03:24AM
Yeah, my idea requires a hack. Only for Phorum developers we don't call that a hack. We call it a new feature and put it in the package ;-) So I agree that this is the best to come up with in the current system. I will for sure include CMU data in my upcoming releases.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: New mod: Check Module Upgrades (CMU)
July 29, 2007 07:14PM
Nice idea Azumandias, but i am not able to edit first post, because I am not the module starter...what about to do some "search" in topics pages for latest verison?

And now my idea of module repository:
What about to upgrade File List mod with "Version" column and apply it to this forum. Then your module will search this tab (instead of first topic) and mauricie will have a repository of modules vith wersion....

Short and easy implementation (no database needed)
1) This module will look for the "File list" table (not first topic) which is everytime on the same URL (eg. [www.phorum.org]) the and check the "Version" column of well known module file.
2) When displaying "File list" at start of topic, the "File list" module will search topic referred by "Read Messagge" and in this topic will search for special BBcode.
3) The Version will be added in post topic by special BBcode. eg.:
[Version]filename.ext=yy.xx[/Version]

Or it could be done by some hack in "attach a file..." part of post topic form, but it needs also a DB hack for storaging a version info.

If it would be interessting for you, fell free to contact me (PM or EMAIL). Im able to help with development.
Re: New mod: Check Module Upgrades (CMU)
July 30, 2007 02:43AM
Quote

Nice idea Azumandias, but i am not able to edit first post, because I am not the module starter...what about to do some "search" in topics pages for latest verison?

And push the stress that is put on the phorum.org site up? If that would be done, I would rather see a central list that acts as a cache and contains all module versions available.

FYI: I am working on a module repository system, in which I want to incorporate that feature. It's far from being finished, but my main goal is to make that a real module repository for Phorum, including support for checking module versions.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login