Make a cusrom script for Joomla extensions.

SDK Docs: http://installatron.com/developer/apps
SDK GUI Editor: http://installatron.com/editor
berd
Posts: 6
Joined: Fri Oct 25, 2013 12:50 pm

Make a cusrom script for Joomla extensions.

Postby berd » Sat Nov 09, 2013 3:47 am

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

Phil
Staff
Posts: 486
Joined: Tue Jun 19, 2007 6:06 am

Re: Make a cusrom script for Joomla extensions.

Postby Phil » Sat Nov 09, 2013 12:48 pm

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
Phillip Stier
Installatron Co-Founder

berd
Posts: 6
Joined: Fri Oct 25, 2013 12:50 pm

Re: Make a cusrom script for Joomla extensions.

Postby berd » Sat Nov 09, 2013 2:14 pm

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--

Phil
Staff
Posts: 486
Joined: Tue Jun 19, 2007 6:06 am

Re: Make a cusrom script for Joomla extensions.

Postby Phil » Sat Nov 09, 2013 4:58 pm

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
Phillip Stier
Installatron Co-Founder


Return to “Application Packaging SDK and Application Customizations”

Who is online

Users browsing this forum: No registered users and 2 guests