[BETA] phPKG - MOD installer with repositories & packages

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Locked
User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by Dabroz » Sun Sep 23, 2007 3:44 pm

I will do as much autodetection as I can, but I will also encourage authors to include file basetheme.txt with name of base template. It could be recursive (prosilver -> foostyle -> foobartemplate).
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

User avatar
ChALkeR
Registered User
Posts: 58
Joined: Thu Apr 07, 2005 5:55 pm
Location: Russia

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by ChALkeR » Sun Sep 23, 2007 6:00 pm

Why a separate file, if it could be done with a commented line in .cfg files? Like

Code: Select all

#basetheme = prosilver
Maybe even to allow to view/half-automatically change this for the repo maintainers via a php script?
Sorry for my bad English

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by Dabroz » Sun Sep 23, 2007 6:12 pm

Well, you will see how was it made in the release. :)
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

JBosman
Registered User
Posts: 117
Joined: Sun Apr 30, 2006 10:01 pm
Location: The Netherlands
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by JBosman » Mon Sep 24, 2007 10:48 am

Dabroz wrote:...For those having problems with unzipping uploaded MODs: try to install a MOD from repository and check if it works. Then let me know (although it should be fine with dev4)...
It works when I install a mod from the repository. When are you expecting dev4 to be ready?
With the love for all things and especialy this, figure it out!

JBosman
Registered User
Posts: 117
Joined: Sun Apr 30, 2006 10:01 pm
Location: The Netherlands
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by JBosman » Fri Oct 05, 2007 1:11 pm

Are you still working on this mod? Sorry, I am just curious.
With the love for all things and especialy this, figure it out!

Kojote1980
Registered User
Posts: 13
Joined: Tue Sep 04, 2007 2:39 am

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by Kojote1980 » Sat Oct 06, 2007 2:08 am

was wondering the same...

WMCMoo
Registered User
Posts: 190
Joined: Tue Aug 22, 2006 9:42 am
Location: Rushall, Walsall

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by WMCMoo » Sat Oct 06, 2007 5:19 pm

Hi Mate

Great MOD ! got a small prob i cant upload mods via the upload section ? due to errors

Code: Select all

[phpBB Debug] PHP Notice: in file /pkg/class/tar_command.php on line 57: shell_exec() has been disabled for security reasons
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 317: opendir(./../cache/phpkg/pkg/../dir/local_039c26e9f5742476c15c58c93b149581) [function.opendir]: failed to open dir: No such file or directory
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 319: readdir(): supplied argument is not a valid Directory resource
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 329: opendir(./../cache/phpkg/pkg/../dir/local_039c26e9f5742476c15c58c93b149581) [function.opendir]: failed to open dir: No such file or directory
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 330: readdir(): supplied argument is not a valid Directory resource

{ pL_KernelPanic }
No valid XML was found!

18:18:46(3): [tar] Unpacking zipfile ./../cache/phpkg/pkg/local_039c26e9f5742476c15c58c93b149581.zip 
18:18:46(3): [sys] SYSTEM CALL:
cd .\..\cache\phpkg\pkg && mkdir ..\dir\local_039c26e9f5742476c15c58c93b149581 && cd ..\dir\local_039c26e9f5742476c15c58c93b149581 && cp ..\..\pkg\local_039c26e9f5742476c15c58c93b149581.zip . && unzip local_039c26e9f5742476c15c58c93b149581.zip 
18:18:46(3): [sys] System reply:

18:18:46(3): [xml] Searching for a XML file in ./../cache/phpkg/pkg/../dir/local_039c26e9f5742476c15c58c93b149581 
also i dont know how to install mods through the 'Repositories' ?

Please help and advise ~:)
.mOo . cOw.

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by Dabroz » Sat Oct 06, 2007 7:07 pm

Hello all! I moved recently and I had no Internet access. ;) I will try to post the most recent version tommorow. About error above: if the `system call`-type functions are disabled for some stupid reason, you have to select “Unpacking via PHP” as unpacking method and it should be OK.
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

WMCMoo
Registered User
Posts: 190
Joined: Tue Aug 22, 2006 9:42 am
Location: Rushall, Walsall

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by WMCMoo » Sun Oct 07, 2007 8:07 am

hi mate thanks for reply :)

i still get the same sorta error here it is below-

Code: Select all

[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 317: opendir(./../cache/phpkg/dir/pkg_dwn_3708f8fcdb2ee3424031294866471382/) [function.opendir]: failed to open dir: No such file or directory
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 319: readdir(): supplied argument is not a valid Directory resource
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 329: opendir(./../cache/phpkg/dir/pkg_dwn_3708f8fcdb2ee3424031294866471382/) [function.opendir]: failed to open dir: No such file or directory
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 330: readdir(): supplied argument is not a valid Directory resource

{ pL_KernelPanic }
No valid XML was found!

09:06:17(3): [pkg] Install query: 1|1 
09:06:17(3): [sql] SQL QUERY:
SELECT p.*,r.* FROM `phpbb07_phpkg_packages` AS `p` LEFT JOIN `phpbb07_phpkg_repos` AS `r` ON `p`.`pkg_repid` = `r`.`rep_id` WHERE `p`.`pkg_id` IN (1) 
09:06:17(3): [pkg] Install: viewforum-sort_topic_time (1) 
09:06:17(3): [ins] Looking for file ./../cache/phpkg/pkg/pkg_dwn_3708f8fcdb2ee3424031294866471382.tar.gz 
09:06:17(3): [xml] Searching for a XML file in ./../cache/phpkg/dir/pkg_dwn_3708f8fcdb2ee3424031294866471382/ 
thats with unpacking via php

please help as i think this is a brill mod !
.mOo . cOw.

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by Dabroz » Sun Oct 07, 2007 4:07 pm

Check if directories /cache/phpkg/* are created (their permissions should allow PHP to write there). If they are created, check for existence of .tar.gz file(s) in /cache/phpkg/pkg.
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

JBosman
Registered User
Posts: 117
Joined: Sun Apr 30, 2006 10:01 pm
Location: The Netherlands
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by JBosman » Sun Oct 07, 2007 8:45 pm

same problem, with both php and tar. Have checked the folder's for existence of these files, and they are there when chosen unpack. But he gives an error nevertheless.
With the love for all things and especialy this, figure it out!

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by ChriZathens » Mon Oct 08, 2007 10:18 am

Hi, there Dabroz...
I uploaded all files and added the module
Besides the fact that I see in ACP
ACP_PHPKG
and not the lang string that was supposed to be there, I click on it and get this error :
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in C:\WM\www\test4\pkg\bb3phpkg.php on line 27
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by Dabroz » Tue Oct 09, 2007 8:11 am

You need PHP5, I think I have to write it in bold in the first post. ;)
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by ChriZathens » Tue Oct 09, 2007 8:41 am

:(

I have php 4.3.9 on my live server and 4.3.11 on my localhost....

Are you planning on making this work with php<5 ?
I think that there are a lot of people with 4.x.x versions... :oops:
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

User avatar
ChALkeR
Registered User
Posts: 58
Joined: Thu Apr 07, 2005 5:55 pm
Location: Russia

Re: [BETA] phPKG - MOD installer with repositories & packages

Post by ChALkeR » Tue Oct 09, 2007 7:22 pm

ChriZathens wrote::(

I have php 4.3.9 on my live server and 4.3.11 on my localhost....

Are you planning on making this work with php<5 ?
I think that there are a lot of people with 4.x.x versions... :oops:
I see no point in porting it to php4, as it will make code less readable and requires rewrite of SimpleXML, which is used here (it works only with php5) ( http://www.phpbb.com/community/viewtopi ... 2#p3172482 ).

It is a waste of time, if this will be done, it would delay the release of phPKG a lot. And i want more new features, not a pointless backwards porting :D .

On localhost, it is very simple to install php5, and on live server too, if it is your server. If it is hoster's server, all hosters i know provide php5 as option and can easily change your php version for free.

But if it will be needed by many people, i think someone of them might do a php4-fork of phPKG.
Sorry for my bad English

Locked

Return to “[3.0.x] MODs in Development”