function_install.php

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

function_install.php

Post by idiotnesia »

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
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: function_install.php

Post by igorw »

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

Post by idiotnesia »

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.
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: function_install.php

Post by igorw »

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

Re: function_install.php

Post by idiotnesia »

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...
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: function_install.php

Post by igorw »

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.
Post Reply