UMIL/UMIF - New MOD Installation Library - Feedback needed

Discussion forum for MOD Writers regarding MOD Development.
User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Seattle, WA
Name: David Lewis
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by Highway of Life » Sun Jan 11, 2009 10:22 am

Function reference for UMIL is located at: http://wiki.phpbb.com/Category:Umil
Main wiki page is: Umil. If you have looked at UMIL to any degree, I encourage you to contribute additional documentation to the wiki so that it may assist users and MOD Authors.

Thanks!!

As a side note: I’ve also finished the main UMIL info page in the MODs section, you can find that here: http://www.phpbb.com/mods/umil
You may want to give the UMIF Creation tool a try at: http://www.phpbb.com/mods/umil/create.php
The phpBB Weekly Podcast - Discussing the developments of phpBB4 and beyond.

New to phpBB3? Want to learn about programing?
Visit phpBB Academy at StarTrekGuide to learn how.

idiotnesia
Registered User
Posts: 509
Joined: Sun Jun 18, 2006 10:58 am
Location: www.phpbbindonesia.com
Name: Pungky Putra
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by idiotnesia » Sun Jan 11, 2009 12:31 pm

I've tested the standalone version and it worked well. I will use it for my mod soon.

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by EXreaction » Sun Jan 11, 2009 4:42 pm

http://www.phpbb.com/mods/umil/

UMIL does not require 3.0.3 to function, I just tested it on 3.0.0 with no problems. :)

User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Seattle, WA
Name: David Lewis
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by Highway of Life » Sun Jan 11, 2009 11:34 pm

EXreaction wrote:http://www.phpbb.com/mods/umil/

UMIL does not require 3.0.3 to function, I just tested it on 3.0.0 with no problems. :)
But we use the custom lang path function, don’t we? ... that was not included until 3.0.3

EDIT: I forgot we hackified our own version of it because of limitations with the phpBB3 custom_lang_path function.
*goes to change the requirements*
The phpBB Weekly Podcast - Discussing the developments of phpBB4 and beyond.

New to phpBB3? Want to learn about programing?
Visit phpBB Academy at StarTrekGuide to learn how.

idiotnesia
Registered User
Posts: 509
Joined: Sun Jun 18, 2006 10:58 am
Location: www.phpbbindonesia.com
Name: Pungky Putra
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by idiotnesia » Mon Jan 12, 2009 2:20 am

Highway of Life wrote:
EDIT: I forgot we hackified our own version of it because of limitations with the phpBB3 custom_lang_path function.
*goes to change the requirements*
Searching the code and I found

Code: Select all

                if (isset($user->data['user_lang']) && file_exists("{$phpbb_root_path}umil/language/{$user->data['user_lang']}/umil.$phpEx"))
                {
                    $path = $user->data['user_lang'];
                }
                else if (file_exists("{$phpbb_root_path}umil/language/" . basename($config['default_lang']) . "/umil.$phpEx"))
                {
                    $path = basename($config['default_lang']);
                }
                else if (file_exists("{$phpbb_root_path}umil/language/en/umil.$phpEx"))
                {
                    $path = 'en';
                }
                else
                {
                    trigger_error('Language Files Missing.<br /><br />Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/">phpBB.com/mods/umil</a>', E_USER_ERROR);
                }

                $user->add_lang('./../../umil/language/' . $path . '/umil');
 
It's really nice code. Can I use it in my mods? Even I suggest you to propose the phpbb devs to use it. So, there will be no language files missing.

User avatar
mtotheikle
Registered User
Posts: 188
Joined: Thu Sep 25, 2008 5:32 am
Location: Spokane, WA
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by mtotheikle » Mon Jan 12, 2009 3:06 am

idiotnesia wrote: It's really nice code. Can I use it in my mods? Even I suggest you to propose the phpbb devs to use it. So, there will be no language files missing.

Why dont you just use this:

Code: Select all

$user->set_custom_lang_path( SITE_ROOT . 'your_custom_lang'); 
That will use root/language/{language, ex. en}/(files). Once you use that code all calls to $user->add_lang(); will use that path.
New to phpBB3? Want to learn about programing? Then phpBB Academy is the place for you!

No support via PM, I will not respond!

Image

idiotnesia
Registered User
Posts: 509
Joined: Sun Jun 18, 2006 10:58 am
Location: www.phpbbindonesia.com
Name: Pungky Putra
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by idiotnesia » Mon Jan 12, 2009 3:14 am

There will be a problem for multi language board. Of course, I do not want ask the users to copy the en folder to their specific languages. So, when there is a missing language files it will be looking up the files from the default language folder (en).

User avatar
mtotheikle
Registered User
Posts: 188
Joined: Thu Sep 25, 2008 5:32 am
Location: Spokane, WA
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by mtotheikle » Mon Jan 12, 2009 3:30 am

I didn't realize that phpBB didn't fall back to the default language. It should...
New to phpBB3? Want to learn about programing? Then phpBB Academy is the place for you!

No support via PM, I will not respond!

Image

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by EXreaction » Mon Jan 12, 2009 5:50 am

Yes, you are welcome to use that code. :)

I submitted a patch for phpBB itself to support fall-back modes in a bug report:
http://www.phpbb.com/bugs/phpbb3/38575

But I've heard nothing for over a month now about it.

User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Seattle, WA
Name: David Lewis
Contact:

Re: UMIL/UMIF - New MOD Installation Library - Feedback needed

Post by Highway of Life » Tue Jan 13, 2009 9:11 pm

UMIL has now been released: http://www.phpbb.com/community/viewtopi ... &t=1405445
Unstickifying this topic. Please continue discussion regarding UMIL in the above topic.

Thanks.
The phpBB Weekly Podcast - Discussing the developments of phpBB4 and beyond.

New to phpBB3? Want to learn about programing?
Visit phpBB Academy at StarTrekGuide to learn how.

Locked

Return to “[3.0.x] MOD Writers Discussion”