Topic: Upload Plugins From Plugins List

I have seen a lot of people asking for a way to upload plugins from the plugin in tab, so I wrote a small little script that will allow the user to upload the plugin zip file

navigate to plugins -> box -> plugins -> views -> backend and copy and paste this code into the index.view.php file


'btn btn-small', 'onclick' => "return confirmDelete('".__('Delete plugin :plugin', 'plugins', array(':plugin' => $plugin['title']))."')")); ?>
open($target_path); if ($x === true) { $zip->extractTo("../plugins/"); // change this to the correct site path $zip->close(); unlink($target_path); header( 'refresh: 3; url=/admin/index.php?id=plugins' ); # redirects to our homepage } $message = "Your plugin was uploaded successfully, page will reload in 3 seconds."; } else { $message = "There was a problem with the upload. Please try again."; } } ?> $message"; ?>

plugin_name; ?> plugin_description; ?> plugin_author; ?> plugin_version; ?>
'btn btn-small')); ?> 'btn btn-small', 'onclick' => "return confirmDelete('".__('Delete plugin :plugin', 'plugins', array(':plugin' => $plugin_xml->plugin_name))."')")); ?>

2 (edited by RomanArt 2014-02-09 07:41:52)

Re: Upload Plugins From Plugins List

um, i just tested it after uploading it says wait 3 sec, and then nothing i mean i dont see a plugin i just upload ... i cant istall or even see wht i just uploaded

Monstra – Version 2.3.1

(с) Roman Art
So far So good wink

RomanArt's Website

3 2014-02-09 07:53:00 (edited by RomanArt 2014-02-09 07:59:05)

Re: Upload Plugins From Plugins List

1) the plugin must be in folder
like this:
-contacts.zip
--contacts
---- all files here

cause when i try to upload Awilum plugin he pack it like this
-contacts.zip
-- all files here

2) it works only with .zip tryed .rar nothing smile

3) i repack the plugin contacts made it .zip upload, i can see it in folder with plugins but i dont see it in admin panel so i cant install it Q_Q in install new i have only sandbox
(about 3 i try another one it works, need to report to Awilum abt contacts plugin there are 2 files missing)

(с) Roman Art
So far So good wink

RomanArt's Website

4 2014-02-09 09:18:32 (edited by lucasflynn 2014-02-09 09:23:02)

Re: Upload Plugins From Plugins List

its still a work in progress

5 2014-02-09 09:48:25

Re: Upload Plugins From Plugins List

HI, We already work on this task https://github.com/Awilum/monstra-cms/issues/215 mostly done.

Monstra Loves You! Give some love back!

Re: Upload Plugins From Plugins List

i know, but this is just a simple fix until the final release comes out