I start my own thread with issues and problems about the integration of G2 into phpBB. Feel free to give comments, improvements suggestion and code changes/corrections.
For information check out this page:
http://devarea.mtb-o.net/viewtopic.php?t=2
Please, give your feedback in this thread or at my discussion forum.
-----
1. Syncing userbases
How is this meant to be? Lets say we have both users in Gallery and phpBB and we want to integrate them. How do we get a list of users with mail address passwords from G2? How do I get in sync, mapping old usernames in Gallery?
The syncing is plan to work with the following rules:
- If user exist in both and has same mail address or password then phpBB user will override Gallery user.
- If user exist in Gallery but not in phpBB then user is added to phpBB
- If user exist in phpBB but not in Gallery then user is added to Gallery
- If user name is same but either mail address or password does match then Gallery username will be renamed with a suffix or prefix. And a list of usernames will be provided.
2. Disable footer
Could it be possible to disable the footer (with GalleryCapabilities) and implement the footer code in phpBBs own footer. I don't like two footers. Changing the template will also do the trick ... but GalleryCapabilites is a beter solution.
Posts: 32509
@1. sync'ing userbases:
I'm doing the initial user import/export the same way, but I don't check the email address, for me, the email address is just another user data field which has to be updated in the sync' process. Plus, I synchronize groups, but the benefit of that isn't very big.
So, point "- If user name is same but either mail address or password does match then Gallery username will be renamed with a suffix or prefix. And a list of usernames will be provided. " doesn't apply for my user import/export, but it's a good idea.
To your question:
See how I do it in xaraya, in my download in xargallery2helper.php in function g2xarUserGroupImportExport().
1. Synchronize special users (and groups), i.e. the anonymous user with nearly hardcoded mappings (i.e. the anonymous user has a constant ID in G2 and in most other applications, synchronize it based on this ids).
2. Import G2 users to other application
note that i compare user names in a case insensitive manner.
note: @password. you can only import the hased passwords, if they use the same hash mechanism, that is MD5.
3. Import users from other application to G2:
A better documentation / guide is on my todo list, sorry.
note @ mindless:
perhaps we should add my function
function g2getallexternalIdmappings()
to G2 somewhere, as we don't want people to query the G2 db directly, they should use an API call for this.
Posts: 105
Here's version 0.3.1: http://devarea.mtb-o.net/code/Gallery%202%20Integration%20MOD%200.3.1.zip
Thank you valiant for your explanations ... I will soon give you some more feedback about the External/Entity mapping.
Posts: 105
Grr ... I didn't like when the phpBB moderators shut my mounth, thread closed at area51.phpbb.com. Somehow it's not allowed to discuss modifications for a development version at phpBB. I'm happy ;) that Gallery is different, here's development more open.
Anyway, if someone want to discuss the current status of my integration, you have to do it here.
Posts: 105
I did put out Version 0.4 in the first post ... it's much more stable then the earlier ones.
This version tests that Gallery is really installed on the place configured. And also basic test is be done to check that the "bridge" to Gallery is OK. Nice thing ;)
User syncronization is not yet in phpBB admin panel.
Posts: 32509
Einstein, could you give me some more background information about modding in phpbb 2.2 aka 3.0?
I thought or hoped phpbb would have real modules instead of hacking style modifications.
How do you install/uninstall modifications/modules in phpbb 3? I know the hacking style of phpbb 2, has anything changed?
I hoped you could most of the things with an ordinary phpbb 3.0 module. For the user create/update/delete synchronization, you'd have to hack the existing files.
That's what I thought. I don't know the codebase of phpbb 3, but i know phpbb 2.
I'm also looking forward to adding your integration to the cvs of G2 integrations.
Posts: 105
It's the phpBB way-of-working .. to "hack the code". I don't like it .. but it's the only choose. Nothing has really changed. And 2.2 is the old version number of 3.0. The only change is that the "hacks" can be installed automaticly with EasyMOD. Note that phpBB hasn't yet reached beta ... so things can still change.
It came to my mind if it's possible to a make phpBB modifications that are able use hooks and such.
Posts: 32509
phpbb 3.0 is very near if you follow the announcements on phpbb.com. how does this easyMod work? heard of it. does it use shell commands like "patch" and do all files need to be writeable by the webserver user? or does it just take care of the sql part of the mods?
Posts: 105
I don't really know ... I've never used it. I prefer to see what changes I do to the code. That way I can also do some extra changes for my own needs.
Posts: 8
Your version 4 mod doesn't download...
Take a look here:
http://devarea.mtb-o.net/code/
How's progress of the integration by the way? Anything new? ;)
Posts: 105
Still 0.4 is the latest diff file.
Integration currently work for newly created users. Syncronization of user bases is still not implemented.
Posts: 32509
Einstein, i plan to make a class for the synchronization. a integration like phpbb could extend this class and implement its functions like "function getAllUsers", etc.
the class would have a method which does the synchronization (import/export).
you'd only have to implement a number of phpbb specific methods. the whole logic and G2 specific things would already be implemented in the G2 class. of course, you could override the default synchronization method.
what do you think about that?
Posts: 105
I was thinking about the same when we discussed about how to syncronze users. Yes, I think it's a good idea ...
But, I think the documentation how-to do integration is more important.
Posts: 105
I will finalize the functionality when phpBB 3.0 beta comes out.
Posts: 4
How do I use a .diff? How do I use it? I'm a little confused.
Posts: 1
I try to intagrate gallery with phpBB 2.0.13 but
i dont know if it make a difference but there is no includes/ucp/ucp_profile.php
it has includes/usercp_viewprofile.php that the files that maybe it or maybe it is not intended to work with this phpbb version.
Posts: 105
Go into your phpBB (2.1.x) root and write:
patch -p1 -o g2int.diff
For windows tools .. download the files from here: http://unxutils.sourceforge.net/
You can place the patch.exe and the diff file in the root directory and run the command. Please let me know if you get any warnings. There may be changes that have broken my diff.
Patch is standard on most *nix platforms.
Patching is much easier then modding by hand.
This diff (MOD) will only work for the version phpBB 2.1.x. That will be named phpBB 3.0 Olympus when ready. I think there exist some Gallery 1.x integration for phpBB 2.0.x (try search).
Posts: 37
It seems that Olympus won't be out in for a while - I can't count the postponements anymore -
How much do the altered files differ from 2.0.x to 3.0? In other words, can one make a 2.0.x integration rather easily?
Posts: 11
Also, some phpBB admins won't be upgrading to Olympus as phpBB may separate 2.0.x and 3.0 into different products. If this is the case, then shouldn't an integration be prepared for 2.0 as well?
Needless to say, I would also like to see an integration with 2.0.
Posts: 32509
Heraclio, could you post a link where this rumour is discussed?
phpbb 3.x is so similar to 2.x, why shouldn't they want to upgrade? the 1.x tree is also dead (in the sense that 99% use the 2.x versions now).
Posts: 105
Heraclio, The modifacation I'm doing is for phpBB3 or/and some it's forks (for example ocBB). A guy named Joe7 have been in contact with me about porting my modification to phpBB2.
The reason why some users will stay with phpBB2 is because they don't want all the features that comes with phpBB3.
I give out my latest information on this page from now on:
http://devarea.mtb-o.net/viewtopic.php?t=2
Posts: 32509
aha
i've updated the phpbb section in the Embedding & Integration with that link, thanks.
Posts: 13
Is this still being worked on? If so i cant wait to get my hands on it I really like g2 and would love to have it integrated into my forum.
Posts: 37
As it seems the server is down:
mtb.o.com as a likely typo seems to be a finish site.
Since it may still take months (years) until Olympus will be released a port to 2.x is defenitly welcomed. So any current information on that port is probably welcome.
Posts: 55
any idea where can those project files could be downloaded right now?
Thanks!
Posts: 560
well.. i guess nowhere.
the code was not a stable, working, neither in complete state when i saw it last time.
Einstein (The Developer), was (and i guess, is still) waiting for next main phpbb release..
Note to Einstein: hey Man, if Ya read Us, pls msg or mail me..we (i mean definitely You, and anybody else who is willing to help) should complete the code for the available phpbb version.
Posts: 573
seeing as how all the releases of phpBB 2.0.x are just maintainance and security releases (no serious DB changes, etc), I don't know why he's waiting for phpBB3 (Olympus) to be released, esp since there is no firm date for even beta releases of it yet.
it would be nice if he could check this code into CVS. Einstein, PM/email me and I can check in the code for you, that way there is some sort of version control.
Posts: 55
I finally went to Mambo Plus (which includes the last phpBB) and G2. It seems that the integration with Mambo interests lots of people. ;)
Posts: 34
Given that I did sort of get the whole phpbb2 integration thing started I'm pretty sure that people over on Snailsource would appreciate any news on the status of the integration for gallery beta and for the phpBB3.0... So, if you could head over and let people know what you've done then it would be much appreciated..
I'd be more than happy for you to use the existing space to support people as well.. makes life easier for me that's for sure
Cheers and good work..
Posts: 34
Just to note that none of the links for this project are actually working...
mtb-o.net is not resolving for me and things appear to have gone a little quiet...
Posts: 573
WebSnail, it seems like Einstein has gone AWOL and development has ceased.
Posts: 1378
Ok depending on any big WPG2 Beta 2 issues (none so far fingers crossed) I may have some time to port some elments over the WPG2 plug in to phpbb 2.0.xx since 3.x development seems bogged down and delayed until god knows when..
What we looking for in terms of functionality here?? Just generic login / create / update the phpbb users to Gallery2..
The actual embedded page will be straight forward, linking images back into phpbb posts will be problematic..
Posts: 32509
that would be cool. i'd also look at the existing code from einstein. just to know where phpbb2 needs to be modded.
i'd start with a basic integration. things like linking images in phpbb etc. should be a nice to have feature. a good configuration / installation and basic functionality is far more important.
Posts: 105
Sorry for taking the page temporary down. I was in a big hurry of creating my own consulting company e-mail and did run out of domains on my hosting plan. I will soon upgrade my hosting plan to get all my webpages accessable.
About the phpBB development slowing down ... OCBB has taken the development in their own hands. And ... I think I will concentrate on integrating G2 to OCBB first. Read more here: http://ocbb.montecarlohosting.net/
Posts: 32509
Einstein, great to hear from you!
But what the heck, why did they fork phpBB 3? Are these some phpbb devs that disagree with other phpbb devs? I really hope phpbb hasn't lost some core devs due to this fork.
And why do you support the fork and not the original?
from the project website
Posts: 32509
i'm not quite sure if i understand the announcements correctly.
this is the fork announcement:
http://ocbb.montecarlohosting.net/board/viewtopic.php?sid=&f=6&t=15
so, how many of the core phpbb devs are working on ocbb? and are there now 2 phpbb 3 projects or moved all phpbb 3.0 devs to ocbb?
Posts: 105
Why ... the development was to slow. These OCBB guys want the phpBB version out faster.
I think I will support both the orginal and the fork. I will concentrate first on OCBB 1.0 because it will come out sooner then phpBB 3.0.
I don't know the exact effect on phpBB dev team. But at least one team member (not a developer) started the fork. There is a lot of people that wanted to contribute to phpBB but they wasn't accepted. OCBB has bit more open deveoper policy then phpBB had.
Posts: 105
My understanding is that OCBB has 3 active developers and phpBB has 2 active devleopers,
Posts: 32509
Einstein, thanks for the answers. it's sad to see this happening. hope they'll merge again once phpbb 3.0 is out.
meanwhile, there are good alternatives to phpbb. a fork of phpbb will only split up the resources and they'll lose momentum.
Posts: 1
Good day everyone,
I saw this topic in the referrer logs and was curious I don't particularly care to start any sort of debate; this is not the place for that.
No members of our team are or ever have been part of any phpBB team, development or otherwise.
We do indeed have three developers, although I do most of the actual development at this time.
As far as remerging, I'm not entirely sure that there is even a remote chance of that happening. I'm open to the idea, but I don't really see phpBB as such.
I was quite reluctant to fork phpBB, but after nearly two years of delays, I thought phpBB would begin to lose momentum soon anyway, so a fork wouldn't be quite as damaging as if it had been done in mid-2003
I probably won't check back here for a while, if you have questions for me, feel free to visit the site previously linked
A_Jelly_Doughnut,
OCbb Founder and Administrator
Posts: 8
so does this mean I won't be able to integrate G2 into my PHPBB2.0.?? install ?
would be nice.
any ideas????
Posts: 32509
ekendra, noone's working on it.
Posts: 8
oh well.... it looks like I'll have to make a custom skin for g2 to operate within my site. thanks for the info.
Posts: 13
Hey Guys -
I've just started to read up on G2. With the fact that phpBB3 doesn't look to be around the corner - I too was hoping to see work toward a 2.0.XX integration.
I have only just started to look into things - but am considering working on an integration of the two. I was hoping that there might be some lessons that could be learned from from the phpBB2.1 integration that could be leveraged.
Posts: 32509
KnightShade, are the links in this thread not working anymore? there's also a link in the first post of the sticky embedding and integrations topic.
and you can learn things not only from the phpbb integration, but from the other integrations too.
Posts: 13
Valiant -
All of the links to http://devarea.mtb-o.net appear to be broken.
(And there are comments in this thread about that dating back into mid July.)
The links in the embedding and integrations topic also link to this same down host.
You are right that I can learn from other integrations - and will plan on doing such.
Thanks!
Posts: 573
i'm planning on migrating nukedgallery.net away from phpnuke and towards being powered by phpbb (as most of the site is dedicated to support in the forums). however, a launch blocker for me is the lack of G2/phpBB2 integration. i will attempt to cobble something together once the rest of my site is prepared. if it works well enough, i can commit to CVS.
Posts: 7
Just finished reading this thread. I have PHPBB 2.0.11 highly customized, not just mods, but some personal hacks. I'd really rather not go through all that again.
I have Gallery 1.5 integrated with PHPBB and it works great. I guess I'll have to stick with 1.5 if no one integrates Gallery 2 with the most widely used PHPBB bulletin board in history. (I don't actually know that. I just thought it would give someone some incentive to help me out.)
Of course, I'm not in so bad shape with Gallery 1.5, it's wonderful. I have a few things on my wish-list.
Thanks, Edro
Posts: 573
i've got a basic G2 integration w/ phpBB2 right now in the works. user sync is done, as is export of all existing phpbb2 users. i'm working on getting the groups synched now.
Posts: 7
Woo hoo! I had thought that integration to PHPBB2 was dead due to the PHPBB3 coming out. Thanks!
I did figure out this little trick to safeguard direct URL access to the photos (taking my que from Gallery 2 install)
cd www/gallery
mv albums $HOME
ln -s $HOME/albums albums
The above worked for Gallery 1.5. Since I'm hosted by somewhere and can't chown, the move did the trick preserving the NOBODY owner and perms.
So, I'll start getting better acquainted with Gallery 2 now and see what all it can do!
Don't we live in an amazing and enjoyable age?
Edro