Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author lexayo

    (@lexayo)

    > have it appear on the website somewhere

    should appear on all posts for which you have uploaded a zip archive

    > have other people upload their things

    you should try it on our platform, we just migrated the old https://exchange.silexlabs.org to https://www.silexlabs.org/category/exchange/exchange-silex/

    there you can
    – login using facebook or google or twitter or create an account
    – ccreate a new post (an item of the exchange platform) with a zip file associated to it

    In silex manager, one will access the exchange platform and install elements transparently. See this tutorial to see how the user do this https://www.silexlabs.org/silex/tutorials-silex/install-new-items-for-your-silex-server/

    Bye !

    Thread Starter vadi

    (@vadi)

    I’ll need a bit more help. I’ve installed the 1.0alpha3 version of the plugin (latest on wp), but I don’t see how to open the Silex Manager. Where can I find it? In Settings, I only see the path and project setup.

    Plugin Author lexayo

    (@lexayo)

    Hello

    The Silex Manager is not part of this plugin since this plugin can be used outside Silex.

    Here you can try Silex
    https://demos.silexlabs.org/silex/

    Here you can see how Silex Manger works
    https://www.silexlabs.org/silex/docs-silex/user-guide-silex/manager/

    Here it is about the interaction with the exchange plugin
    https://www.silexlabs.org/silex/tutorials-silex/install-new-items-for-your-silex-server/

    Finally, you can downlad Silex here
    https://projects.silexlabs.org/?/silex/flash.cms/download

    Thread Starter vadi

    (@vadi)

    Aha… the missing part, I didn’t realize, is what when making a new post you can attach things. Sorry, a bit dumb of me.

    How can I edit what file extensions are allowed though? I don’t see a setting, and I get this when I try it:

    Error, could not process file %60echo.xml
    Bad file extension
    
    File upload successful for %60echo.xml

    PS. Found this from the 0ad forums, thanks for mentioning it there – it’ll be very useful once I get it working!

    Thread Starter vadi

    (@vadi)

    Hm, I’ve figured out how it works now – it only accepts .zips and things inside the zip have to be inside a folder, an allowed root folder. This is a bit of a problem for me though because I’d like not to modify the uploads and accept any kind of file that then could be downloaded.

    What does the categorization of the root folders do?

    Plugin Author lexayo

    (@lexayo)

    hi

    > it only accepts .zips

    yes exactly. you know you can only upload 1 file at a time, so this is the best option

    > things inside the zip have to be inside a folder, an allowed root folder

    no, things can be anywhere in the zip
    if there is only 1 folder, we assume it is the “real” root of the archive. This is due to the behavior of some archive software which put everything in a root folder by default

    > What does the categorization of the root folders do?

    You mean the folder tree ?

    This is useful when you use the installer service, which will download and paste the files in the existing folders, and it may create the folders if needed. It keeps the same tree. For example, if the zip file contains “binary/mods/ai/common_api/test.js” then test.js will be placed into the right folder.

    It is also used to detect dependencies between elements. For example if the element called “common api” contains binary/mods/ai/common_api/*.*, then when another element is uploaded and contains the same folder and files, then there is a “dependence” with the “common api”. It does nothing to the zip is downloadable and which still contains the common api files, but it is visible in the element post. And also, if you use the installer service, it has 2 adventages
    – it makes you download the original “common api”
    – if you already have the original “common api” installed, it does not try to overwrite it
    – when there is an update (a new version is uploaded), then you can update the original “common api” and the other element independently

    Plugin Author lexayo

    (@lexayo)

    For the use in 0ad, tell me once you have set up the plugin as you like, since I may have a way to do a simple “C++” version of the installer…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Exchange Platform] How to setup the plugin?’ is closed to new replies.