function_install.php

Support for the phpbbmodders_lib.
idiotnesia
New member
New member
Posts: 5
Joined: 17 Feb 2007, 01:43

function_install.php

Postby idiotnesia » 26 Nov 2008, 05:27

hi, can you give me example to use functions_install.php. Can I use it to create new category for module?

Also, does anyone here know tools to convert mysql to other databases (firebird, oracle, postgre, etc)

thanks

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: function_install.php

Postby igorw » 26 Nov 2008, 11:08

idiotnesia wrote:hi, can you give me example to use functions_install.php. Can I use it to create new category for module?

This will create the module, and auto-create the category, if it doesn't exist:

Code: Select all

install_module('acp', 'acp_goto', $error, 'ACP_CAT_WEBSITE');

acp_goto is the name of the module.

idiotnesia wrote:Also, does anyone here know tools to convert mysql to other databases (firebird, oracle, postgre, etc)

This should not be needed. phpBB provides enough API to use directly, so you don't have to run queries directly.

idiotnesia
New member
New member
Posts: 5
Joined: 17 Feb 2007, 01:43

Re: function_install.php

Postby idiotnesia » 27 Nov 2008, 04:51

Thanks for your reply
i will test it...

eviL<3 wrote:This should not be needed. phpBB provides enough API to use directly, so you don't have to run queries directly.


What I mean is for schema.

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: function_install.php

Postby igorw » 27 Nov 2008, 15:37


idiotnesia
New member
New member
Posts: 5
Joined: 17 Feb 2007, 01:43

Re: function_install.php

Postby idiotnesia » 28 Nov 2008, 03:58

eviL<3 wrote:http://phpbbmodders.net/articles/3.0/create_table/

wow nice script, thanks evil.....

BTW in your troll mod install file I've seen function to delete directory. Just wonder why you don't put it on your functions_install.php...

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: function_install.php

Postby igorw » 29 Nov 2008, 13:40

functions_install was made for this website. The one from the troll MOD was made specifically for that MOD. It would be nice to have something that can be used for all MODs though.


Return to “Library”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests