[MODDB] MOD Version Checker (1.0.0)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

[MODDB] MOD Version Checker (1.0.0)

Post by chatasos »

MOD Title: MOD Version Checker

MOD Description: This mod allows admins to check if the mods they have installed in their forum are up to date according to the phpBB MODDB. Also EasyMOD installed mods can be checked automatically.

MOD Version: 1.0.0 (RC)

MOD Download: mod_version_checker_1.0.0RC.zip

I've coded it some time ago just for my site and now i decided to rewrite its user interface, maybe add some features and release it to the public.

This is what the mod offers:
  • Admins are able to update the mod's database with the mods they have installed, using one of the following 2 methods:
    • Entering manually the mod details (name, author, version, category)
    • Parsing the install.txt (or .mod) file of the mod
    • Transferring the mods from Easymod's database
  • Admins are able to add/edit/delete installed mods. Admins are not able to install/uninstall mods using this mod (this is EasyMOD's job).
  • Admins are able to add mods from Easymod's database. This means that you when you install mods using Easymod, there is no need to add them in the mod's database manually. Just press a button and they are there.
  • Admins are able to find which of their installed mods have new versions out, just by pressing one button.
  • Admins are able to choose for which mods to check for new versions.
  • Admins are able to download new versions of installed mods.

Code: Select all

## MOD History:
##
##	2005-10-05 - Version 1.0.0 (RC)
##	- Added many checks to EasyMOD updating
##	- Added confirmation before reseting updates
##	- Changed the template's main table
##	- Various small fixes
##
##	2005-10-04 - Version 0.9.9 (beta)
##	- Added displaying of error messages
##	- Fixed error where mod status was set to not found, when connection was unavailable
##	- Fixed error where sum of inserted/updated EasyMOD mods was not correct
##	- Moved lang vars to a seperate file
##	- Various small fixes
##
##	2005-10-02 - Version 0.9.8 (beta)
##	- Major rewrite of the MODDB fetching code (much faster now)
##	- Added informational messages while checking for updates
##	- Added option to reset all stored mod updates
##	- Fixed error when erasing mod details after connecting error
##	- Various small fixes
##	- Small code cleanup
##
##	2005-09-23 - Version 0.9.7 (beta)
##	- Major rewrite of the version compare function
##	- Added legend with the color status explanations
##
##	2005-09-23 - Version 0.9.6 (beta)
##	- Added check for mods, before adding EasyMOD ones with the same name
##	- Fixed bug with check_all checkbox and 1 checkbox
##	- Various small fixes
##
##	2005-09-18 - Version 0.9.5 (beta)
##	- Optimized code when adding/editing mods
##	- Added extra check for EasyMOD
##	- Fixed all $lang variables
##
##	2005-09-17 - Version 0.9.4 (alpha)
##	- Added option to add automatically EasyMOD installed mods
##	- Added confirmation for deletion of mods
##	- Small code cleanup
##
##	2005-09-17 - Version 0.9.3 (alpha)
##	- Added check for same mod name when adding/editing mods
##	- Added cancel button when adding/editing mods
##	- Small code cleanup
##
##	2005-09-16 - Version 0.9.2 (alpha)
##	- Added parsing of mod file
##	- Added check for null mod name
##	- Various small fixes
##
##	2005-09-15 - Version 0.9.1 (alpha)
##	- Added checkbox to check/uncheck all mods
##	- Fixed bug when no mods were selected for checking
##
##	2005-09-15 - Version 0.9.0 (alpha)
##	- First release
Screenshots:

Admin has selected to check for updates for all the following mods:

screenshot 1


After the check, 1 mod needs updating, 5 mods are up to date, 1 mod is newer than the one in MODDB and 1 mod cannot be compared.

screenshot 2
Last edited by chatasos on Sat Mar 18, 2006 9:59 am, edited 27 times in total.

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin »

how are you getting the current version number of the mod?

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos »

Just sending a http request to the mod-db and then parsing the result.

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

User avatar
3Di
Former Team Member
Posts: 14983
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di »

chatasos wrote: Just sending a http request to the mod-db and then parsing the result.


this way this MOD checks for the MODs released at phpBB dot com, only the approved ones, isn't?

thanks
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Premium extensions @ The Studio

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin »

and you already have this working? just need to update the user interface?

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos »

3Di wrote:
chatasos wrote:Just sending a http request to the mod-db and then parsing the result.


this way this MOD checks for the MODs released at phpBB dot com, only the approved ones, isn't?

thanks


Yes, only those ones :wink:
I believe there is AVC which can do all the rest :wink:
ewelin wrote: and you already have this working? just need to update the user interface?

I'm actually using it for over 4 months...

Most of the mods i have coded for my site have a limited user interface, since i'm doing everything sql specific through phpmyadmin and i don't need a user interface. But when a mod goes public, a user interface for everyone has to be coded :wink: It may sound easy as a job, but according to my little coding skills, 60-70% of my coding time is usually spent on the user interface. Also more checks have to be implemented and so on...

I guess i'll have a version ready for download by the end of this week...My other mod has bigger priority right now 8)

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

User avatar
3Di
Former Team Member
Posts: 14983
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di »

chatasos wrote:
3Di wrote:
chatasos wrote:Just sending a http request to the mod-db and then parsing the result.

this way this MOD checks for the MODs released at phpBB dot com, only the approved ones, isn't?
thanks

Yes, only those ones :wink:
I believe there is AVC which can do all the rest :wink:

By my part i like the "only approveds by MODDB" bit.

I'm curious, i can't wait...
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Premium extensions @ The Studio

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos »

Screenshot added.
See 1st post for details...

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

User avatar
3Di
Former Team Member
Posts: 14983
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di »

My fingertip rules my mouse that's hovering a link doesn't exists, a link where to download that stuff.. u know. :)

Thanks
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Premium extensions @ The Studio

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos »

3Di wrote: My fingertip rules my mouse that's hovering a link doesn't exists, a link where to download that stuff.. u know. :)

Thanks

:lol: just wait for a few more days (maybe hours?) and it will be available....

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

Out of curiosity, are you doing any caching or loading the complete pages from this server on every refresh of the page?
Eric

User avatar
3Di
Former Team Member
Posts: 14983
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di »

chatasos wrote:
3Di wrote:My fingertip rules my mouse that's hovering a link doesn't exists, a link where to download that stuff.. u know. :)

Thanks

:lol: just wait for a few more days (maybe hours?) and it will be available....


I'm attending.. my friend.
Keep your time. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Premium extensions @ The Studio

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos »

wGEric wrote: Out of curiosity, are you doing any caching or loading the complete pages from this server on every refresh of the page?


Every time you press the "check for updates" button, all data retrieved (version, download, time) are stored in the db.

So next time you run the mod, you can see the results of your previous run (if such one exists) and the date you last checked for update. Of course if you choose to check again for updates, the pages will have to be loaded and the stored data will be updated with the new values.

Maybe if an $id (last changed date ?) was included into each mod-db page (at the very first lines of it), i could also use it order not to process the whole page when it hasn't been updated. But i don't really know if this would make any difference on the server...

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos »

Features & Screenshots updated.
See 1st post for details...

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing »

But the mod db doesn't have all of the mods... the Released Mods forum does, though. So if you just check in the DB, then you don't get all the released mods, only some.
-DKing
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search

Locked

Return to “[2.0.x] MODs in Development”