Forums / Contribution-Writing Guidelines / Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

Locked

Views: 2,405

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 Jul 2023, 8:53 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

The files

admin/includes/menu.css
admin/includes/menu.js
admin/includes/stylesheet.css

will no longer be part of Zen Cart after 1.5.8b is released. Please see

https://docs.zen-cart.com/dev/plugins/admin_head_content/

for details.

Please remove them from your contributions (as described on the FAQ page above) for Zen Cart 1.5.7 and above, or modify them as shown in post #4 below if you wish your plugin to work in old and new versions of Zen Cart.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

7 Jul 2023, 1:38 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

swguy:

The files

admin/includes/menu.css
admin/includes/menu.js
admin/includes/stylesheet.css

will no longer be part of Zen Cart after 1.5.8b is released. Please see

https://docs.zen-cart.com/dev/plugins/admin_head_content/

for details.

Please remove them from your contributions (as described on the FAQ page above) for Zen Cart 1.5.7 and above.

Note that "removal" doesn't mean overwritten to not contain functional information, but just not present which has the potential of resulting in multiple issues even within a given site ruining running 1.5.8b depending how it came to exist. Issues may also depend on the version of the plugin in parallel relationship.

Be prepared.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Jul 2023, 2:16 AM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

mc12345678:

Note that "removal" doesn't mean overwritten to not contain functional information, but just not present which has the potential of resulting in multiple issues even within a given site ruining running 1.5.8b depending how it came to exist. Issues may also depend on the version of the plugin in parallel relationship.

Be prepared.
Agreed, for any of my plugins that also support ZC versions prior to zc157 I'm checking the Zen Cart version and using the "old style" if that condition is found else using admin_html_head.php.

7 Jul 2023, 10:36 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

@lat9 If you could post the block of code you're using as an example for other store maintainers and plugin authors, it would be great!

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

7 Jul 2023, 1:09 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

swguy:

@lat9 If you could post the block of code you're using as an example for other store maintainers and plugin authors, it would be great!
OK, here's one:

// -----
// The initial version of GPSF-2 supports zc156, zc157 and zc158.  zc158b will be removing
// the 'legacy' stylesheets and javascript provided in previous versions.  As such, determine
// the Zen Cart base version in use to maintain the downwardly-compatible use of this module.
//
$gspf_zc_version = PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR;
$admin_html_head_supported = ($gspf_zc_version >= '1.5.7');
$body_onload = ($admin_html_head_supported === true) ? '' : ' onload="init();"';
?>
<!doctype html>
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta charset="<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<?php
if ($admin_html_head_supported === true) {
    require DIR_WS_INCLUDES . 'admin_html_head.php';
} else {
?>
<link rel="stylesheet" href="includes/stylesheet.css">
<link rel="stylesheet" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<script src="includes/menu.js"></script>
<script src="includes/general.js"></script>
<script>
function init()
{
    cssjsmenu('navbar');
    if (document.getElementById) {
        var kill = document.getElementById('hoverJS');
        kill.disabled = true;
    }
}
</script>
<?php
}
?>
</head>
<body<?php echo $body_onload; ?>>
    <?php require DIR_WS_INCLUDES . 'header.php'; ?>
<?php
23 Jul 2023, 8:53 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Plugin Maintainers - Upcoming changes in Zen Cart 1.5.8b

Closing this thread because we're renumbering the release. Will start a new one shortly.

SEE https://www.zen-cart.com/showthread.php?229611 for updated information on v2.0.0

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.