In a modules "config.php" file a developer can define an update URL. Dont see any module that is using this feature but I want to use it for my own ones.
Could you please tell me something about this functionality. I.e. what format of response is Dolphin awaiting, what is the format of the request?
Is there any code sample for the "Update Information Server" existing?
Thanks in advance!
http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
I also wonder that. Even though i know inside it will not work. so much to do.... |
http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
Can not find any documentation about this feature. Any hints guys? http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
The only time I could see this being used, under my general thought process, would be if a person was providing a module but not using here to do so. Say I create a module, but instead of posting it here for people to download, I have it on my own personal site. In which case I have a page called "Module updates found here". I would then put "my-domain.com/updates.php" in that URL field.
Thats the only thing that made sense which would account for that being in the modules. Cause if all modules were offered here then there is no need for that - In my opinion.
caredesign.net |
Ahhh - let me retract one of my statements here. I do see another reason for that url to be used in todays state. A module creator COULD use that to place the direct url within Boonex to that module. So instead of a user having to search the marketplace or type in the search box for that module they could just copy the url from the file and paste in the address bar
.
caredesign.net |
I needed to actually examine the code in the file BxDolInstallerUi.php to figure it out.
Basically you provide a url to check for updates to your module in the modules config.
The url needs to accept the following that will page passed as $_GET parameters on the url.
uri, path, version and domain.
Your script at the update url will use those passed values to determine what mod it is, and then pass back VERSION and LINK in XML format. VERSION being the current available version and LINK being the URL of where to get the update.
This is the best i can do based on what i see in the code. As far as i know, no one is using it, and i cannot find any examples.
https://www.deanbassett.com |
If it could be used by the backend/admin in the module section to let me know that an update is available for a module I am using on my site; that would be very useful. The only way I know if an update has occur for a module I am using; say to fix a bug or add a feature, I have to go to my shopping history, visit each module, and check to see if there has been any updates. Geeks, making the world a better place |
yeah, you are correct ... got a quick&dirty "Update Information Server" script running in combination with my demo site.
This script will pull the version information of the module from the dolphin db, since my modules are up to date there, and responding the version and link as XML as you have researched. It seems to work as it should. But there is one thing that is annoying, users always have to tick the module and press the update button before the request is sent.
Would be better to check for updates everytime the modules pages is called. Easily check for modules that uses the "update_url" setting and check for updates then. Maybe i will push a code change to Boonex seeing if they implement it that way. Or do i miss something here??
I needed to actually examine the code in the file BxDolInstallerUi.php to figure it out.
Basically you provide a url to check for updates to your module in the modules config.
The url needs to accept the following that will page passed as $_GET parameters on the url.
uri, path, version and domain.
Your script at the update url will use those passed values to determine what mod it is, and then pass back VERSION and LINK in XML format. VERSION being the current available version and LINK being the URL of where to get the update.
This is the best i can do based on what i see in the code. As far as i know, no one is using it, and i cannot find any examples.
http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
Any comment from Boonex staff? http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
All my modules will support the update check in next release ... http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |