Deceased
- Join Date:
- Nov 2007
- Location:
- Sunny Coast, Australia
- Posts:
- 3,427
- Plugin Contributions:
- 2
ZC new version upgrade alert in admin
Over the past months I have upgraded numerous sites for clients to the latest ZC version. Some of these sites had not been updated even going back to ZC 1.3.8a. That ofc makes an upgrade tedious and expensive for the client, let alone security issues.
So, to alert my clients of future new versions and prompt them to upgrade without long delays, I implemented a few small changes in 3 admin files which produce the results shown in the attached images.
To arrive at this effect I added to the admin/includes/stylesheet.css (anywhere)
.versionCurrent{
color:green;
font-size:12px;
font-weight:bold;
}
.alertVersionNew{
color:#ff0000;
font-size:16px;
font-weight:bold;
}
Then in admin/includes/languages/english.php I amended // Version Check notices to this:
// Version Check notices
define('TEXT_VERSION_CHECK_NEW_VER','<span class="alertVersionNew">ALERT! New Version Available:</span> v');
define('TEXT_VERSION_CHECK_NEW_PATCH','<span class="alertVersionNew">New PATCH Available:</span> v');
define('TEXT_VERSION_CHECK_PATCH','patch');
define('TEXT_VERSION_CHECK_DOWNLOAD','Download Here');
define('TEXT_VERSION_CHECK_CURRENT','<span class="versionCurrent">Your version of Zen Cart® appears to be current.</span>');
Lastly in admin/includes/header.php around line 208 I changed
<td align="right" class="[B]main[/B]" valign="top"><?php echo $new_version; ?><br /><?php echo '(' . TEXT_CURRENT_VER_IS . ' v' . PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR . (PROJECT_VERSION_PATCH1 != '' ? 'p' . PROJECT_VERSION_PATCH1 : '') . ')'; ?></td>
to this
<td align="right" class="[B]versionCurrent[/B]" valign="top"><?php echo $new_version; ?><br /><?php echo '(' . TEXT_CURRENT_VER_IS . ' v' . PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR . (PROJECT_VERSION_PATCH1 != '' ? 'p' . PROJECT_VERSION_PATCH1 : '') . ')'; ?></td>
May be food for thought to incorporate these minor changes in future ZC upgrades - would prevent a few headaches for store operators and forum volunteers.
NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.