New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Dashboard Plugin Updates Available Tab #1108
Comments
That's pretty slick, I like it. One improvement I'd like to see is to rather than checking each plugin every single page load, have it set up as a daily CRON job run by CubeCart in the background with the option to 'check manually' at any time if desired. Perhaps add an option for 'real time update checking' for those that want it. Another small thing that isn't necessarily precluded by your example code would be to include the URL of the version check file in the plugin's XML description; then rather than each plugin writing similar code, CC could simply iterate over the plugins and make the appropriate calls itself. EDIT: Of course, if it wasn't checked at page load, there would need to be some other storage mechanism in order to display the results of the update check, probably in the database. |
All very good suggestions Brian. A couple of changes based off your suggestions... File: config.xml
Adds the 'version_check_url' variable into the plugins config.xml file. File: admin.dashboard.plugin_updates_available.php
Now you only need to set the '$plugin_config_file' variable. I have a couple ideas regarding not firing this hook every time the dashboard page loads. |
That's looking better, but I think we can avoid having to manually set any variables - taking a look in admin/sources/plugins.index.inc.php, it has:
Adopting a similar approach here would allow the code update checker to automatically check any installed plugins without any effort on the part of plugin makers other than adding the version_check_url data to their config.xml file. |
A standard way to approach this would be fantastic as I am sure we all handle it using our own custom methods at the moment. |
Agreed completely that a standardized method needs to be implemented. Both locations still check on each load rather than only X amount of times per day. All plugin creators need to do is add these two lines to the plugins config.xml file: I have attached the code changes to this issue. |
Perfect! This will be extremely helpful for store admins. Very minor and probably irrelevant nitpick: language string 'introduced' versions should be '6.0.12' or so, not '5.0.0' or '6.0.0'. |
@abrookbanks |
Hey guys... I like this idea a lot. Hopefully get onto it early next week. I'm a bit behind. |
I have updated the original pull request with the code posted above, with the correct language entries. The problem with using a field in the marketplace is that not every plugin is available in the marketplace. |
I like this idea but I don't like how it's dependant on 3rd party servers and systems. I'd much rather have something tied into the CubeCart extension marketplace. |
I was hoping to see this in 6.0.12, but no such luck. It is SO badly needed!! |
I can't until I can figure out a way to do this via the marketplace as primary source. |
This is coded with external sources as primary source which I'm not keen on. |
How does Wordpress handle this? I would guess they are coded with external sources, since there are SO many WP plugins, and their system certainly works well. |
I've no idea. It's not very relevant as we only have the data we have to work with. The marketplace doesn't store a version number anywhere and once the plugin is installed there is no way to backtrace it. We will get it done. |
This has been implemented for 6.1.0 but only for extensions installed via token from the marketplace. #1243 I intend to either remove or more likely suggest developer and merchants choose install token over download after the 6.1.0 release. @Noodleyman I will be creating the option for downloads/install tokens of commercial extensions before the end of the week. |
See pull request - #1107
For my plugins, I already display if a new version is available on the plugin configuration page
e.g.
The problem with that is that once a store owner has a configured a plugin, they will very rarely revisit the plugin configuration page.
Therefore if a new version of a plugin is available, they don't know about it.
So I came up with one method that could be used by everyone - 3rd party and CubeCart - to display this information in a new tab on the admin dashboard.
e.g.
Once the code changes outlined in the pull request are implemented, utilizing this is pretty straight forward.
e.g.
https://www.semperfiwebservices.com/version-check/cc6-plugins/SFWS_Site_Testimonials.txt
e.g.
<hook trigger="admin.dashboard.plugin_updates_available" enabled="1"><![CDATA[Admin Dashboard Site Testimonials Plugin Update Available]]></hook>
Replacing the plugin name above with the name of your plugin.
e.g.
You only need to alter:
The text was updated successfully, but these errors were encountered: