Page 4 of 31

Re: [RC] Upload Extensions

Posted: Tue Oct 14, 2014 5:45 pm
by Lumpy Burgertushie
I think you have to install the language pack for the extension in order for it to be in whatever language you are using. If the extension does not have any other language packs than english you will have to wait for someone to translate it into your language.

robert

Re: [RC] Upload Extensions

Posted: Tue Oct 14, 2014 5:50 pm
by michel_61
Sorry,
i have see it, i test a languagepack in german-short for better look on tablet and smartphone.
In there is a bug, with the original languagepack, the extension works in german too. :oops:

Sorry & reg. Mike

Re: [RC] Upload Extensions

Posted: Wed Oct 15, 2014 6:45 am
by John P
OK

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 10:21 am
by rxu
Just as an idea. Currently the extension is already able to upload zip archives from remote servers.
Thus, it looks possible to implement online extensions update in case versioncheck json file exists and the download link in it points to the zip with the new version.
So, it could work like check version -> check download link -> upload if zip -> disable ext -> unzip new files to the ext folder -> enable ext.
From the user side, it could look just like an update button and a progress bar :)

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 10:29 am
by Meis2M
is it possible use a system like wordpess?

connect to Customisation Database Extensions from phpBB.com and download it and active them?

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 12:33 pm
by John P
Later on, the idea was to download from customisation database and update the extension with one click.

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 12:53 pm
by rxu
Probably there could be an option to select the update source CDB/author's repo/etc.

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 1:44 pm
by LavIgor
rxu wrote:Probably there could be an option to select the update source CDB/author's repo/etc.
As I've said before, we cannot download files from GitHub using sockets.
Any ideas about how to download files from repositories without sockets and without using local downloading are much appreciated.

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 4:23 pm
by rxu
This is probably just a matter of implementation of remote upload method.
For me, github.com easy responds and I've managed to download files from it via the following dumb script (this was created on-the-fly just for testing purposes):

Code: Select all

$file = fopen("https://github.com/PayBas/RecentTopics/archive/master.zip", "r");
if (!$file)
{
    echo "Unable to open remote file.";
    exit;
}
$output = fopen("paybas.zip", "w");
while (!feof ($file))
{
    $line = fgets($file, 1024);
    fwrite($output, $line);
}
fclose($file);
fclose($output);
 

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 7:25 pm
by Jessica
Not sure went wrong, but now when I upload extensions I get a blank page after clicking "Upload". I've just updated my test board to RC6 and the extension to the latest version...

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 8:31 pm
by LavIgor
rxu wrote:This is probably just a matter of implementation of remote upload method.
For me, github.com easy responds and I've managed to download files from it via the following dumb script (this was created on-the-fly just for testing purposes):

Code: Select all

/* code */
Hmm, it's interesting.
I've only used phpbb functions to do the upload process.
I didn't think that it can be too easy.
Thank you! I'll try to implement it these days. :)

BTW, first release version of this extension is already uploaded to CDB and waiting for review.
Jessica wrote:Not sure went wrong, but now when I upload extensions I get a blank page after clicking "Upload". I've just updated my test board to RC6 and the extension to the latest version...
I've tested it on RC6 with no problems.
Please provide more information so that we are able to help you.

Re: [RC] Upload Extensions

Posted: Sat Oct 25, 2014 9:34 pm
by LavIgor
Great news!

Now the implementation of GitHub uploads is ready!
It will be published tomorrow or today, depending on your time zone.

Re: [RC] Upload Extensions

Posted: Sun Oct 26, 2014 1:21 am
by Jessica
What kind of information do you need?

EDIT: I still can't figure out why I'm getting a white page after trying to upload the extension or clicking "Unpack extension". I tried re-installing the extension and that didn't work.

It worked fine before I went and updated my test board to RC6...and updated the extension itself. I thought it was due to the issues I was having earlier, but those issues are all fixed and it still does not work.

Re: [RC] Upload Extensions

Posted: Sun Oct 26, 2014 2:48 am
by rxu
Jessica
Do you have DEBUG enabled to get the error output?

Re: [RC] Upload Extensions

Posted: Sun Oct 26, 2014 3:07 am
by Jessica
I just enabled it...error log says:

Code: Select all

[25-Oct-2014 15:04:24 America/New_York] PHP Fatal error:  require(): Failed opening required './phpbb/event/extension_subscriber_loader.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/jesschen/public_html/ascraeus/phpbb/class_loader.php on line 160
[25-Oct-2014 15:05:15 America/New_York] PHP Fatal error:  require(): Failed opening required './phpbb/event/extension_subscriber_loader.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/jesschen/public_html/ascraeus/phpbb/class_loader.php on line 160
[25-Oct-2014 15:05:21 America/New_York] PHP Fatal error:  require(): Failed opening required './phpbb/event/extension_subscriber_loader.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/jesschen/public_html/ascraeus/phpbb/class_loader.php on line 160
[25-Oct-2014 15:07:02 America/New_York] PHP Fatal error:  require(): Failed opening required './phpbb/event/extension_subscriber_loader.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/jesschen/public_html/ascraeus/phpbb/class_loader.php on line 160
[25-Oct-2014 15:08:23 America/New_York] PHP Catchable fatal error:  Argument 3 passed to phpbb\passwords\driver\md5_phpbb2::__construct() must be an instance of phpbb\passwords\driver\helper, string given, called in /home/jesschen/public_html/ascraeus/cache/container_dotslash.php on line 2269 and defined in /home/jesschen/public_html/ascraeus/phpbb/passwords/driver/md5_phpbb2.php on line 44
[25-Oct-2014 15:08:25 America/New_York] PHP Catchable fatal error:  Argument 3 passed to phpbb\passwords\driver\md5_phpbb2::__construct() must be an instance of phpbb\passwords\driver\helper, string given, called in /home/jesschen/public_html/ascraeus/cache/container_dotslash.php on line 2269 and defined in /home/jesschen/public_html/ascraeus/phpbb/passwords/driver/md5_phpbb2.php on line 44