Okay, you have written a plugin and want to be able to tell everyone who's using it that there's a new version?
With the new ManiaLive version you don't have to implement your own logic/code to achieve that!
There are two things that you need to do:
1. Create an entry for your plugin(s) on the "manialive" ManiaLink.
You need to enter an address where the new version of your plugin can be found.
Further more you can give additional information as description or if you have posted something on a forum, just enter the link.
To finish your process click on the category that suits your plugin, which can be either Feature, Administration, Entertainment or Package if your .zip contains more than one plugin.
If you click on the category and you succeeded it will show a yellow number. Remember the number or write it on a piece of paper, this is your Repository Id.
2. In you plugin class there is a method called onInit.
This method is used to configure all of your plugin's properties that are important for the ManiaLive loading process.
You have access to two more methods now:
Code: Select all
function onInit()
{
$this->setRepositoryId(23); // set your repository id here!
$this->setRepositoryVersion(57); // set a version number here.
}
How to Release Updates
1. Go to the manialive ManiaLink again.
Find the entry that you have created for you plugin(s).
You will realize, that if you are logged in with the same account that has created the repository entry, you will be able to edit or delete it.
2. Click on edit to change the download location, forum post address and of course the version number.
As soon as the version number of the repository entry is bigger than the one that is installed on the users computer, ManiaLive will start alerting.