We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can I get just the current EE version and build number via RSS?

Development and Programming

Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I’ve built a template group/weblog that houses all my EE licenses and keeps track of versions, renewal dates, expirations, etc etc. I’d like to automate a warning message (or a custom CSS style) for each entry that doesn’t match the latest available version and/or build. Is there an easy way to get the version/build so I can compare each entry? I feel like I’m missing something obvious. Thanks.

       
silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

Well, the build is here…

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

silenz, how would I get just the ‘20080225’ and compare my entry to that? I’d like to retrieve that build number at the top of the template, assign a variable (might have to be done with php, which is fine) and then, in my template do something like:

{if license_currbuild != '{latest_build_number}’}Hey! This is old! Update now!{/if}

Do I use magpie plugin to gt the number from this feed?

I ask because I’ve never used magpie before, but that’s how I assume it works.

{exp:magpie url="https://secure.expressionengine.com/download.php?ACT=ee_build" limit="1" refresh="720"}
{items}
{content}
{/items}
{/exp:magpie}
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

The current version can be found here: http://expressionengine.com/eeversion.txt

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

How did you know that txt file was there? Is that documented somewhere?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Searching through the code 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

How about a plugin that just returns the EE version? Will that be enough?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Oh and what are you using this for?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

I should have read the full thread… ignore those last two

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I don’t like the way license info is stored at EE. So I made a secure area of my site that lists all my EE licenses - the site it’s used on, commercial or personal, the license number, build (if known, optional), URL, how many days until it expires, last renewal date, etc etc…a lot of info at a glance. All I’d like to do is get (once, when the page loads) the latest EE version number (1.6.2) and latest build numer (i.e. 20080125). Then for each entry on my page I compare…and set a flag when a site is not using either the latest build or version. For example, maybe turning build/version red with CSS when it doesn’t match the current one.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
  • Please Delete -
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey Ryan,

Try this plugin…

Usage: {exp:lg_latest_ee:build} and {exp:lg_latest_ee:version}

Tell me when you have it and tested it then I’ll upload it to my site.

Cheers Leevi

– FILE REMOVED –

Please visit: http://leevigraham.com/cms-customisation/expressionengine/lg-latest-ee for the latest version

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I am getting an error (fgets):

Warning: fgets() [function.fgets]: SSL: fatal protocol error in 
/home/.../.../.../system/plugins/pi.lg_latest_ee.php on line 81

But the code does output what it should on the template:

V: {exp:lg_latest_ee:version}
B: {exp:lg_latest_ee:build}

results in

V: 1.6.2
B: 20080225
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Which version of php are you using?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Ok try this one… I have suppressed displaying errors around the connection script. This also solves an issue with Safari crashing.

– FILE REMOVED –

Please visit: http://leevigraham.com/cms-customisation/expressionengine/lg-latest-ee for the latest version

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.