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
function_install.php
-
- New member
- Posts: 5
- Joined: 17 Feb 2007, 01:43
Re: function_install.php
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.
Donate to phpBBModders.net - we're poor!
-
- New member
- Posts: 5
- Joined: 17 Feb 2007, 01:43
Re: function_install.php
Thanks for your reply
i will test it...
What I mean is for schema.
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.
-
- New member
- Posts: 5
- Joined: 17 Feb 2007, 01:43
Re: function_install.php
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...
Re: function_install.php
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.
Donate to phpBBModders.net - we're poor!