Customizing Mantis 1.2.15 to play with Phpbb 3.0.11
Posted: 23 Jun 2013, 09:13
Greetings,
I am trying to integrate mantisbt-1.2.15 into phpbb 3.0.11. (Authentication at first, then possibly within the header/footer of the forum later ..)
There was a previous incarnation that others did with phpbb 2 and possibly with phpbb 3.0.0 but Mantis has apparently changed since then, the project is stagnant, does not work as packaged. I am not a ninja codewarrior, so I need some help.
My goal is to have phpbb provide all authentication for mantis. We have approx 22,000 members with about 60% of them active, and want to use the phpbb_users table rather than the mantis_user_table for authentication. Database importing is not on the table, as it would become a logical nightmare.
We want all of our non banned users to have the ability to report bugs to us.
After looking at the schema for both tables, I'm fairly confident mantis can use the data in the table, with some tweaking.
My issue is, I'm not sure where mantis keeps it's schema, so that I can tell to use the field names in phpbb rather than in mantis.
For instance.
in phpbb_users the field we want to use is 'user_id' the field in mantis is "id"
in phpbb it is defined as a mediumint(8) UNSIGNED No null no default AUTO_INCREMENT
in mantis it is a int 10..
username is a direct match but phpbb uses varchar(255) utf8_bin No null
In mantis it is varchar(32) NOT NULL DEFAULT '',
realname we want to direct to phpbb's username_clean , and uses varchar(255) utf8_bin No null
We want to add the enabled, protected, and access levels to the table in phpbb_users.
This will be in a different order, and mantis was being weird to read the data in my previous attempt.
The current phpbb install is in /home/swe/public_html/phpBB3/
The current mantis install in in /home/swe/public_html/phpBB3/bugs/
Single mysql database (swe)
The phpbb tables are prefixed with phpbb_
the mantis tables are prefixed with mantis_
I am assuming some of these changes must be made in user_api.php, but is that it? I didn't where I could alter the id vs user_id, as one example.
We also want to use the same cookie domain and name, to make things easier.
Can someone direct me to the appropriate sections that one needs to edit to change this schema?
Gabriel
I am trying to integrate mantisbt-1.2.15 into phpbb 3.0.11. (Authentication at first, then possibly within the header/footer of the forum later ..)
There was a previous incarnation that others did with phpbb 2 and possibly with phpbb 3.0.0 but Mantis has apparently changed since then, the project is stagnant, does not work as packaged. I am not a ninja codewarrior, so I need some help.
My goal is to have phpbb provide all authentication for mantis. We have approx 22,000 members with about 60% of them active, and want to use the phpbb_users table rather than the mantis_user_table for authentication. Database importing is not on the table, as it would become a logical nightmare.
We want all of our non banned users to have the ability to report bugs to us.
After looking at the schema for both tables, I'm fairly confident mantis can use the data in the table, with some tweaking.
My issue is, I'm not sure where mantis keeps it's schema, so that I can tell to use the field names in phpbb rather than in mantis.
For instance.
in phpbb_users the field we want to use is 'user_id' the field in mantis is "id"
in phpbb it is defined as a mediumint(8) UNSIGNED No null no default AUTO_INCREMENT
in mantis it is a int 10..
username is a direct match but phpbb uses varchar(255) utf8_bin No null
In mantis it is varchar(32) NOT NULL DEFAULT '',
realname we want to direct to phpbb's username_clean , and uses varchar(255) utf8_bin No null
We want to add the enabled, protected, and access levels to the table in phpbb_users.
This will be in a different order, and mantis was being weird to read the data in my previous attempt.
The current phpbb install is in /home/swe/public_html/phpBB3/
The current mantis install in in /home/swe/public_html/phpBB3/bugs/
Single mysql database (swe)
The phpbb tables are prefixed with phpbb_
the mantis tables are prefixed with mantis_
I am assuming some of these changes must be made in user_api.php, but is that it? I didn't where I could alter the id vs user_id, as one example.
We also want to use the same cookie domain and name, to make things easier.
Can someone direct me to the appropriate sections that one needs to edit to change this schema?
Gabriel