Page 1 of 1

Update Notifier

Posted: Tue May 22, 2007 6:22 pm
by Daniel
I may have missed this function... but in case I haven't, here's the idea:

The notification area on the front admin page would be used to show if a new version of CMSms was available, by calling an ini file from the cmsmadesimple server - all it need contain would be a version number for the current version.  Then implode the file by '', and check the current installed version against it.  Basically,

Code: Select all

$version = implode('', file('http://www.cmsmadesimple.org/version.ini'));
if ($CMS_VERSION < $version) {
echo "Your CMSms isn't up to date!";
}
...you get the idea :P

I'm only suggesting it as I've just realised I missed two updates... ah well.

Daniel

Re: Update Notifier

Posted: Tue May 22, 2007 7:51 pm
by Ted
I've thought about this in the past.  There are 2 problems that I see.

1. file doesn't always necessarily have the ability to get a URL on.  That's a formality, though... you can easily open a socket and do it.
2. People could think it's a privacy issue.  I've never asked our little community here, so i'm not sure what the group consensus would be...

Re: Update Notifier

Posted: Wed May 23, 2007 5:46 pm
by Daniel
Hmm... how about an opt-in option, as in disabled by default, or a plugin?

I would code a plugin myself but I can't say I'm sure about the way the plugin system works and the file would need to be updated officially - like I said, I've missed updates before.

Daniel

Re: Update Notifier

Posted: Tue May 29, 2007 12:44 pm
by cyberman
Think it's a nice feature for admin area (footer) and should be included per default :).