Page 1 of 1

Make a cusrom script for Joomla extensions.

Posted: Sat Nov 09, 2013 3:47 am
by berd
Hi,

Installatron is a super system which ensures that joomla is always updated, the only problem are the extra installed extensions.

Is it possible to make an update script for let's say the most common used Joomla extensions, like the JCE-editor and DJ-image slider for example. This script will also update these extensions when there are updates avaliable. There is a report in the installatron-panel that there is an update available for the extesnions made in the custom script.

Is this possible?

--Cheers--
BerD

Re: Make a cusrom script for Joomla extensions.

Posted: Sat Nov 09, 2013 12:48 pm
by Phil
Hello,

It would be possible to use the Installatron App Package Customiation system to update these plugins. Details are here:

http://installatron.com/developer/customization

Here's sample code:

Code: Select all

<?php
class i_installer_customcode   
{   
       function init()
       {
               $this->registerArchive("j_supercache","http://downloads.joomla.org/plugin/wp-super-cache.1.0.zip", "zip");
               $this->registerArchive("j_other","http://downloads.joomla.org/plugin/wp-super-cache.1.0.zip", "zip");
               $this->registerCustomCode("wordpress", "all", "upgrade", "last", "process", "jupgrade");
       }

       function jupgrade($o)
       {
              if ($o->exists("extensions/supercache"))
              {
                     $o->extract("j_supercache", "extensions");
              }
              if ($o->exists("extensions/other"))
              {
                     $o->extract("j_other", "extensions");
              }
       }

}
?>


If there are any questions let us know.

Thanks,
Phil

Re: Make a cusrom script for Joomla extensions.

Posted: Sat Nov 09, 2013 2:14 pm
by berd
Thanks for the answer, onle last question.
I have added the code but how will this script be activated? And where can i see if it worked?

--cheers--

Re: Make a cusrom script for Joomla extensions.

Posted: Sat Nov 09, 2013 4:58 pm
by Phil
Hello,

Keep in mind that's just sample code. You'll need to modify the code to fit your specific requirements.

The log at /var/installatron/logs/filesystem_log can be checked to verify that the code is executed (or check the Joomla install itself to see that the extension is updated).

Thank you,
Phil