G2 and Mambo Plus (Mambo/PHPBB) Integration Complete...
aaugustj
Joined: 2005-07-25
Posts: 6 |
Posted: Fri, 2005-08-05 02:15 | |||
After some posting on this board on the issues related the the changes made in the mos_users DB by mos_plus, I've fixed the G2->Mambo integration code to work for Mambo+. Before the code, a few key pieces of info that had me stumbling in the dark... Don't touch any of the $my->id calls in the code. Even though the DB field is called user_id, the creators of Mambo+ must have made provisions. See the attached admin.gallery2.php and replace the file /administrator/components/gallery2/admin.gallery2.php with it and you're all set! Enjoy!
|
||||
Posts: 32509
aaugustj, cool!
can you merge the code with michiel_1981's mambo integration such that 1 integration code works for both mambo flavours? it could autodetect if it's mambo vs. mambo+ and then have if / else statements around incompatible / alternative code.
from the user's perspective, this would be less confusing...
meanwhile, we should add this to the mambo + g2 thread.
Posts: 55
I have posted, ten days ago, in the Mambo/G2 thread a similar solution, which could directly be included in the component. I mean it can work with both Mambo and MosPlus without a change (or even a test!).
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=155461#155461
The thing to remind is that MosPlus has some nice functions in the database class which allows to use standard column names from the mos_users original table definition (insuring the compatibility with any components and modules). So it just requires to use the loadObjectList and to use Mambo's standard user fields.
Here is the file for the 2.06 mod.
Using the file attached keeps the compatibility with Mambo and works also with Mambo Plus.
Posts: 430
Lakys,
This was already fixed in version 2.0.7 just not released yet, everybody how has this problem, you can use this until version 2.0.7 is out.
btw: thxs for your help.
regards,
Michiel
Posts: 55
That's good to know. In the firstpost I made, I ommited to put the changes for the group (case 'sync_group': ). They are present in the file attached just above.
I am looking forward to get the 2.07.
I shall have very soon a second installation of MosPLus with G2, with this time G2 in /Gallery and MamboPlus in /Portal.
Let me know if you are interested to get a new beta-tester. ;)
Posts: 430
Lakys,
your on the list, oh wait send me your e-mail adres(pm) then your on the list. ;)
You were solving this puzzel at the same time as i did, clad to have someone else also fixing it and i can compare the solutions ;)
regards,
Michiel