Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
szalik.dev Posted September 27, 2018 Posted September 27, 2018 Hello fellow developers, i've looked up Developer guide on Update Check URL but still, don't know how to use it, any idea? I've set up file called "updateCheck.php" and it's content is: <?php switch($_GET['plugin']) { case 'plugin_unique_id(plugins folder name)': return '{ "version": "2.0.0", "longversion": 20000, "released": 1423841958, "updateurl": "http://www.example.com/myapp/download" }'; break; } and i've put this link in settings: "https://example.url/cstm/plugins/updateCheck.php?plugin=plugin_unique_id" And still, ACP isn't showing newer version, even though it should.
Ryan Ashbrook Posted September 27, 2018 Posted September 27, 2018 Try this: <?php header( 'Content-type: application/json' ); switch( $_GET['plugin'] ) { case 'my_plugin': $return = json_encode( array( 'version' => "2.0.0", 'longversion' => 20000, 'released' => 1423841958, 'updateurl' => "http://www.example.com/myapp/download" ) ); break; case 'my_other_plugin': $return = json_encode( array( 'version' => "1.0.0", 'longversion' => 10000, 'released' => 1423841958, 'updateurl' => "http://www.example.com/myapp/download" ) ); break; } echo $return;
szalik.dev Posted September 27, 2018 Author Posted September 27, 2018 So, i've edited the file, refreshed page and still there is no information about new version.
Daniel F Posted September 27, 2018 Posted September 27, 2018 1 minute ago, ~Jakso.` said: So, i've edited the file, refreshed page and still there is no information about new version. The information is fetched via the task system, did you check if the ugprade task was called after your modification? If not, try to trigger the upgradecheck task manually.
Jon Erickson Posted November 16, 2018 Posted November 16, 2018 Check out this application which will make your life a lot easier:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.