News:

Wondering if this will always be free?  See why free is better.

Main Menu

Mod/package version checker?

Started by TurtleKicker, May 12, 2022, 09:23:17 PM

Previous topic - Next topic

TurtleKicker

OK I'm sure this has been asked before, but I did a search and couldn't find any threads, which surprised me. So here it is:

Why isn't there functionality in SMF where installed mods hook back to their thread to check the installed version against the latest version, with indicators at index.php?action=admin;area=packages ? This would make staying up-to-date a lot easier.

Arantor

Mostly because that would require quite a bit more infrastructure to be built and maintained.

And for people like me, it would be a waste of resources since most of the SMF sites I've ever run use mods that are not off the shelf. Plus anyone who uses paid mods...
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

Arantor

Not to mention, now that I think about it, for the sites that have 200 mods it would make the package manager straight up unusable.
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

vbgamer45

I kind of would like to see it even if paid mods/internals mods not supported. Something that allows maybe a background task in SMF to submit the package id's for the mods. Then check that latest version number on smf.org for those packages. And display an alert/badge in the admin. Kind of what wordpress does. Infrastructure changes might need to happen though due to the volume of requests.

Also, wished that the SMF updates were featured in a bigger way. On the front end of the site for admins if their is a new SMF update. I think that would lead more people to keeping SMF updating instead of them having to check via the admin interface.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

TurtleKicker

I suppose this could be done with a mod itself? I don't even mind manually entering in the URL for each mod (to be scraped for the version) as part of the setup. I don't think that's baked into the mod anywhere anyway...?

This could allow people w/ lots of mods to maintain performance by only entering the URLs for those mods that they cared about. Only those w/ URLs entered would be monitored.

vbgamer45

Was thinking about that. Scraping each page on the mod site to get package id and version number Then store that in a db. Last, compare against that db. Would prefer an official solution or api though.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

live627

Quote from: vbgamer45 on May 13, 2022, 01:37:28 PMWas thinking about that. Scraping each page on the mod site to get package id and version number Then store that in a db. Last, compare against that db. Would prefer an official solution or api though.
Are you partially describing the package server?

vbgamer45

#7
Yes. I forgot we could actually just fetch packages.xml data since that has everything it just have to loop over each category.


If not one makes I might try at some point. Here is what I am thinking.

Something along the lines of having a website with a database  using packages.xml information from smf.org downloaded once a day or so.


Then the mod for the forums would do the following:
Add a scheduled task that would run once a day. Which passes the installed mods ie packageid, version, smf version of the forum to the  website.
The website would returned the current version of the mods for each. Log and store any mods that have a different version.

Then Display in the admin area directly that there are updates. Or maybe even on the forum boardindex.


Also, add a button in the package manager area to "Check for Updates for packages"  and displaying which mods have updates.Then link to mod page as well.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

live627

Someone could makes a mod that adds as scheduled task that scans the xml for installed mods, compares versions, and adds a section to the package manager that lists all updates, offering a button to update if the mod supports it.

Antechinus

Quote from: vbgamer45 on May 13, 2022, 09:53:40 AMAlso, wished that the SMF updates were featured in a bigger way. On the front end of the site for admins if their is a new SMF update. I think that would lead more people to keeping SMF updating instead of them having to check via the admin interface.

That's a good idea. It could easily be done like the existing maintenance mode notice for admins.

TBH I think the upgrade notices should be more distinctive even in admin. It's almost like someone was trying to make them ignorable by default (and it has been like that since 1.1.x).
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

Advertisement: