The SimpleInvoices forum has moved to Google Plus - this forum is now read-only
Feature Request: Add Version # to UI
  • mrmeechmrmeech September 2010

    Hey Justin,

    SimpleInvoices is great, and I've been using it for a few years now. Watching the development has been really cool and exciting.

    However, one thing that has been rather cumbersome is figuring out if SI is up to date. This is how my process goes: As there is no place that the web UI shows the current version (at least not one that i could find), I open up an editor, hunt down the config file and look at the version number in there. Then i head over to simpleinvoices.org and hover my mouse over the download link to see the file name in my status bar to match with what i found in the .ini file as it's not noted right on the page.

    At the very least, it seems it would make good sense to display the version number in the SI UI, maybe in the footer, and on simpleinvoices.org having a little text note next to the download button stating what version it is.

    To take the thought a step further, having SI do a simple check for when it's out of date, and if it is, then to say so. Adding a link to release notes and a download button right there too, would be bliss (like in Drupal's available updates page).

    Also, with the version number being written into the .ini config file, this translates to more time spent to do updates with a greater probability for human error, as you have to copy over your existing config/db/email parameters to the new .ini file. Or if you use your existing config file and forget to change the version value manually then you might think you're up to date when you're not.

    I opened a thread in 2008 ( http://simpleinvoices.org/forum/discussion/574//p1 ) raising concern about the lack of a good version notification process (before you merged SI with Zend) but the community was much smaller than it is today, and i think that may explain the lack of response from other members. Your suggestion at the time was to subscribe to the email list, but that never worked out well, and am confident that what is suggested above would be quite beneficial. Finally, I didn't want to resurrect a post from so long ago, so please forgive me for making this thread.

    Thanks, and keep up the great work!!!
    Looking forward to your response. :)

  • aducomaducom September 2010

    I'm not the main dev, but my view is that you have a point there. We are currently thinking of a config module where you can apply settings. I think that a feature like this should be here with a message that tells you that there's a new version.


    albert

  • justinjustin September 2010

    thanks mrmeech and albert

    i think adding the version number into the GUI is a good idea
    - to start with - think we'll just add the version info into the system preferences page
    - than maybe think about the check version stuff later

    have added it to our todo list: http://code.google.com/p/simpleinvoices/wiki/todo

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • ykolabhaiykolabhai September 2010

    HI Guys

    I dont know if this is what you looking at but I added the following in the footer.tpl after the $lang_blog

    | Version {$config->version->name == version.name

    The version name is then displayed at the bottom of the page.

    The footer should look like this.

    {$LANG.thank_you_inv}{$LANG.simple_invoices} | {$LANG.forum} | {$LANG.blog} | Version {$config->version->name == version.name}

    Regards
    Yusuf

  • aducomaducom September 2010

    Yes, that's the easy solution. - More nice would be an upgrade notice.

    albert

  • ykolabhaiykolabhai September 2010

    Hi Albert

    Where would the new version name be found.

    I can try and code that

    Regards
    Yusuf

  • aducomaducom September 2010

    As I'm not the main dev, that's up to Justin I guess. It's not realy hard to code, so I can add it to svn.

  • justinjustin September 2010

    thanks

    albert
    - if you can add it to the footer as yusuf said would be great

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • mattantwestmattantwest October 2010

    It "shouldn't" be too hard to add the notification update.

    Although somewhere there would have to be a file that held the current version number for simple invoices. Maybe on the si website or something.

    Your installation could then compare the two version numbers and display a message in the settings section if your installation was out of date.

    I'm happy to write the code to do the check but where do you guys think the best place to host the current si version number is?

  • aducomaducom October 2010

    Most simple would be a check to the download area of SI. There could be a version.txt file stored. In this file the correct link for the download could be stored.

    ie:

    version.txt
    version=2010.3
    download=http://www.......

  • justinjustin October 2010

    hey guys

    we can place the file on the simpleinvoices.org website
    - simpleinvoices.org/version.xml or whatever - thats fine
    - just call the file whatever you want and i'll add it to the website

    whoever does the code can determine the file type/content/location/etc

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • mrmeechmrmeech October 2010

    So glad to see that my post kicked off a mini discussion and a remedy!! Awesome!!! :)

  • aducomaducom October 2010

    @justin, Matt doesn't mind doing it, I don't mind, it's a minor job. To prevent that more of us is going to build the same thing, can you dispatch?

  • justinjustin October 2010

    hey albert

    if you can do this would be great thanks

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • aducomaducom October 2010

    It's work in progress. Version id is now presented in the footer after 'simple invoices'. The ID is stored in define.php as config.ini cannot be overwritten on upgrades. Check for new version is being built on now.

  • justinjustin October 2010

    hi albert

    i've made some changes, i've moved the version from the footer into your new version control section - refer image below
    -- just didnt look that nice in the footer
    image
    and added new constant 'SI_VERSION', unless there is a need for SI_VERSION_TITLE and SI_VERSION_ID can we just use SI_VERSION


    define("SI_VERSION_TITLE","2010.10.3");
    define("SI_VERSION_ID","20101001");
    define("SI_VERSION","2010.2 update 1");


    thanks again!!

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • aducomaducom October 2010

    Ok, I can live with that. The version title will be removed. I will keep the id as the numeric value is by far easier to detect if there's a new (higher) number them the alpha string 'update x'.

    albert

  • aducomaducom October 2010

    Version control is implemented. The xml file containing release and version info needs to be installed somewhere on si.org and define.php needs to have a reference to this file.
    To be able to use it you must have the curl apache module enabled.
    Albert

  • justinjustin November 2010

    thanks albert!!

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au

Categories

Tagged