[Module] JoomG2 (Gallery2 <-> Joomla Bridge)
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
JoomG2 Module for Gallery2 (v2.3.0 and above) This module allows users to organize their photos and other multimedia files in Gallery2 while managing other content using the Jooma! CMS application. The difference from existing efforts is that the module runs within the Gallery2 Framework instead of an iframe. Please read the Gallery2 Codex for relevant documentation. You can view a demo version HERE. ******* UPDATE: Version 1.1.7 ******** Change Log: ******* UPDATE: Version 1.1.6 ******** Change Log: ******* UPDATE: Version 1.1.5 ******** Change Log: ******* UPDATE: Version 1.1.4 ******** Change Log: ******* UPDATE: Version 1.1.3 ******** Change Log: ******* UPDATE: Version 1.1.2 ******** Change Log: ******* UPDATE: Version 1.1.1 ******** Change Log: ******* UPDATE: Version 1.1.0 ******** Change Log: ******* UPDATE: Version 1.0.11 ******** Change Log: ******** UPDATE: Version 1.0.10 ******** Change Log: ******** UPDATE: Version 1.0.9 ******** Change Log: ******** UPDATE: Version 1.0.8 ******** Change Log: ******** UPDATE: Version 1.0.7 ******** Change Log: ******** UPDATE: Version 1.0.6 ******** Change Log: ******** UPDATE: Version 1.0.5 ******** Change Log: ******** UPDATE: Version 1.0.4 ******** Change Log: ******** UPDATE: Version 1.0.3 ******** Change Log: ******** UPDATE: Version 1.0.2 ******** Change Log: ******** UPDATE: Version 1.0.1 ******** Change Log: ******** UPDATE: Version 1.0.0 ******** Change Log: ******** UPDATE: Version 0.9.2 ******** Change Log: Notes: ******** UPDATE: Version 0.9.1 ******** Change Log: Notes: ******** UPDATE: Version 0.9.0 ******** Change Log: Notes: ******** UPDATE: Version 0.8.2 (Beta) ******** Change Log: Notes: ******** INITIAL RELEASE: Version 0.8.1 (Beta) ******** Change Log: Notes: -- |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Finally, a true embed for joomla. I was getting weary of the jFusion-iframe support questions ;) -s |
|
AllanB
Joined: 2007-03-01
Posts: 40 |
![]() |
This is a great idea ... I have been waiting to have a true G2 integration with Joomla. When I put the "JoomG2" module into /modules, and then tried to click on "plugins" in Site Admin, I received a blank page. I attempted a re-install of G2 (test site) ... with the JoomG2 module intact. Once the installation got to "install plugins", I received an error regarding "expecting encap string ')' ..." in module.inc at line 87. When I remove the module, the plugins page is functioning again. Line 87 appears to be the section on the G2Drupal module? Please advise. Allan |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Thanks for the feedback. Required actions to fix v0.8.3: This will update the module to v0.8.3a which I'll upload later. -- |
|
AllanB
Joined: 2007-03-01
Posts: 40 |
![]() |
The version I downloaded from your site was 0.8.2 ... In this, there were 3 instances of $ret' and one instance of 0.8.2. Also - when configuring the module in G2, it asks for the full server path to the Joomla folder. In the Codex, it says that we will need the Item ID of the Joomla external menu item, though there is no place to use this. Allan |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Some other issues have cropped up and I need to go back to the first version (unreleased 0.8.0) and work my way up the changes. -- |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
I found what looks like a bug in G2 ... The "orderweight" parameter in the registerFactoryImplementation command does not seem to have any effect. The upshot is to: 1. Investigate, confirm and fix this issue which would need input from the core dev team (highly unlikely) I'll work on Option 2 and should have the revised versions up by 1200 GMT tomorrow. ***EDIT*** -- |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Thanks to the feedback, I have been able/motivated to push this forward. The event "issue" was not a G2 bug as I thought on reflection. Nevertheless, I went ahead with removing the interdependencies for other reasons. Also, only one of the JoomG2, RefineHTML and upcoming G2Drupal modules can be activated at a time. In addition, I have been able to overcome the main stumbling block to implementing user integration in the process. Basically, the BeforeDisplay event used by the module was introduced in G2.3.0 but has some shortcomings in its implementation with regards to the use it was being put to for this module. Both issues have now been addressed by the introduction of a new event (BeforeOutput) which has to be manually added to main.php. With this, fired after the G2 session has been created, full user integratiom can be done and since the output is fed back into the normal flow, there is no need for another module to complete the process for caching. I chose not to amend/move the existing event hook so as not to affect other 3rd party tools that may be operating within its current parameters. The hack to introduce the new event is benign and will not change other operations. It simply hooks into the process if the module is active. I am now testing some scenarios before uploading v0.9.0 for which the "beta" tag will be dropped. This will not have user integration implemented as this will follow after. -- |
|
drhiii
Joined: 2003-04-27
Posts: 397 |
![]() |
Woot! I have been fussing with JFusion all weekend. <insert lots of sighing> Then I found this bridge. Am working through it now. One question if I may... will this allow any user logged into their Joomla environment to be able to 'jump' to their home album in G2? That is the one problem I had after working through Jfusion. While the user credentials were passed down to G2, when a user went from Joomla to G2, they had to be dropped into one directory only instead of taking advantage of being able to go to they 'home' directory. Will bang through this as someone said, "Finally, a true Joomla/G2 bridge". Very cool... |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
W/ the User Album module you can have users jump to their own album when they visit gallery. -s |
|
drhiii
Joined: 2003-04-27
Posts: 397 |
![]() |
You must have been reading my mind. I was *just* about to leave a post indicating how far I had progressed (very), and where I am slogging a bit. Yes sir, I did find that a new Joomla user not only can have their album autocreated on accessing it for the first time (cool), but can jump to the album when accessed (very cool). Here are a couple of issues I had run in to so far if I may... When a new user is created, their album is created, and they click to go to their album, all is excellent so far. However, I don't have any menu choices to Add Album, Add Items, simple things like that. I have been tweaking settings to see if I can get past this, but so far no go. Question is, shouldn't an album owner have at least a minimum of permissions to do things like Add Album, Add Items, Edit Album, Edit Photo, etc? Or, how does one get these permissions to show up? Second question is, I logged in as administrator to see if there was anything I could do at the top level album to tweak permissions, etc. Except as admin I cannot see any other albums. I am just dropped into the admin's root level album. I cannot go up to the main root of G2 and see any other albums as admin. This is a bit of a sticky wicket as administrators should be able to administer into other albums, but so far I can't see others that have been created. I have tried a myriad of combinations to see if I can 'see' everything as admin, but all I can do is work on the admin's album (and admin has all of the Add Items, Add Albums, Edit Album, etc... functions, unlike a registered user in Joomla). Hopefully it is something I have set up incorrectly. Oh, I also cannot log out of Joomla, then try to log directly into G2 as admin as it reverts me to the entire login space for Joomla/G2. I can't log in to G2 separately which of course is no big deal if the admin can see everything and do admin stuff. I can see Site Admin. I just cannot see the tree of albums that as admin I should be able to see regardless of permissions. When leads to a third question. Is it possible to be able for other registered users who then have their G2 root level albums created for them... possible for all user albums to be seen via any user (unless the user changes permissions to prevent this). In other words, if the user Everybody has permission to see all permitted albums, publicly viewable albums, is this possible in this bridge? Am trying to figure out how non registered aka Joe Q Public users can see albums that are created and administrated by the individual. This is an looooooooong awaited function I will say that. Something I know I and some others can really get behind and donate to. The initial installation was flawless thanks to the very well written and clear install text. Kudos to Dayo for doing something that is the exception rather than the rule in these kinds of things, creating clear Install notes. Well done. Am very glad I came across this after crawling through the mud with another bridge component that kinda worked, but not really... Thank you for your response suprsidr.... |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Personally I don't have gallery auto-create a user's album on mysite. They don't always join for the album, and I end up w/ a ton of albums to delete. As for permissions, there are some options in gallery admin -> user albums but also I believe they inherit some permissions from the parent album. -s |
|
drhiii
Joined: 2003-04-27
Posts: 397 |
![]() |
Zow, that was fast (understatement).... Brilliant. You have just given me the idea of how to get to an album instead of automatically take the user there. Nice. And yes, agree that allowing albums to be created auto is a mess. I've worked out a mechanism via Community Builder to minimize that, so I'm ok there (he says... now watch as my logic is flawed as I get run over by a truck). But understand what you are saying. Am still stumped tho on how to allow the administrator to 'see' everything from the top level down. That is not happening, and also for the registered user to see the core functions like Add Items, Add Albums, etc. I am unable to get the admin to the parent root album to even see the permissions. Seems to me that a user/owner of an album would be able to see the basic menu choices by default. Am working my through it because this is a most excellent find today. Kid in candy store after a loooong time looking at G2 and Joomla as if they are 50,000,000 miles apart. This is cool stuff... suprsidr wrote:
Personally I don't have gallery auto-create a user's album on mysite. They don't always join for the album, and I end up w/ a ton of albums to delete. |
|
drhiii
Joined: 2003-04-27
Posts: 397 |
![]() |
Suprsidr, you have a cool site. Tooled around a bit. Learned about your products and services. This may come into play. Very good to learn. One very simple that is just plain eluding me is to just get to be able to see the top level galleries, with breadcrumbs, and be able to navigate. I do not have this showing up at all. And then to get the permissions so that album owners can administrate their own albums, and so on. I know I am missing something that is probably in front of me... You have a cool site. suprsidr wrote:
Personally I don't have gallery auto-create a user's album on mysite. They don't always join for the album, and I end up w/ a ton of albums to delete. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
You may have mucked things up a bit. Admin should have free roam. Make sure all albums are visible to everyone, and then re-install user albums module and choose which parent album to have gallery create the user albums in. -s |
|
drhiii
Joined: 2003-04-27
Posts: 397 |
![]() |
Great minds? Or more accurately... yes, I may have mucked things up. Admin should have free roam, yes. I did install G2 for the umpteenth time this weekend, getting really quick about it and as your post popped into email was thinking, maybe too quick. I am doing exactly as you say. Uninstalling and reinstalling. And making sure it all plays nice before bolting it into Dayo's bridge. I appreciate these very fast responses. Note that after having perused your site, I suspect we will be chatting some things up with your Site Services. They are in line with something we are working on here. I have to get a core build first to demonstrate the model blah blah blah... but two things got on my radar this afternoon. Dayo's bridge and your site and services. Anywayz, back to crawling through some mud. But after a few days of fussing with other ways of getting this done, this afternoon and eve, not the least of which has been your participation, has given some light at the end of the tunnel. I will come back and report progress. I appreciate your responses.... And one other thing I have found today. Cookies being very persnickity. A lot of clearing caches and cookies to get things to play nice... suprsidr wrote:
You may have mucked things up a bit. |
|
mcmax1
Joined: 2011-09-27
Posts: 4 |
![]() |
Dear Dayo! I tried to download and install your Bridge for the newest versions of Gallery2 (2.3.1) and Joomla (1.7.1), but when I installed the modules in Gallery2 I found out, that the version of the bridge I got from your site is 0.9.2 and not 1.0.0 and so there is no support for Joomla 1.7. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Fixed -- |
|
mcmax1
Joined: 2011-09-27
Posts: 4 |
![]() |
Thanks for the fast fix! I gave it another try and installing the Joomla stuff should work (looks like it does). But when I configure joomg2 in Gallery2 I cannot choose Joomla 1.7 for the Joomla Version (there is only Joomla 1.5 to choose). |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
I see. I just changed the link using my phone. I'll have a look later. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
I just checked and if you did indeed download the linked v1.0.0 version, you should definitely get the option to select Joomla 1.7. -- |
|
mcmax1
Joined: 2011-09-27
Posts: 4 |
![]() |
I can only choose Version 1.5, because all other option tags are commented (<!-- <option ... -->). I have to admit that I cannot see why that's so. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
The tags are commented in the v0.9.2 release because the relevant code does not work. I am not sure what the issue is exactly. To recap. 1. You pointed out that when you used the download link, you got v0.9.2 Have you actually downloaded v1.0.0? -- |
|
mcmax1
Joined: 2011-09-27
Posts: 4 |
![]() |
I downloaded and re-uploaded to my server version 1.0.0. Before uploading the new version I uninstalled and deleted all v0.9.2 files. What changed with the new version is that now in Joomla the textbox for the path of Gallery2 is present in the configuration page of the authentication plugin (which was missing when installing v0.9.2). But when I try to configure the JoomG2 Module in Gallery2 there is still only Joomla V1.5 to choose (see HTML below). <table class="gbDataTable"> |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
That output is not from v1.0.0. Also, the authentication plugin has always needed the path to Gallery2. In any case, you probably need to clear your browser cache. -- |
|
elfabio
Joined: 2011-10-03
Posts: 3 |
![]() |
Hi Dayo, I am stuck at step 2. Hope you can help. Cheers, |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Update the G2 module with the attached files (after removing the "_.txt") and post the error message you get. I had used the "Valid installation not found" message in too many places to be able to figure out what the issue might be. ***EDIT*** -- |
|
elfabio
Joined: 2011-10-03
Posts: 3 |
![]() |
thanks for the quick response. awesome and great effort! the good news are: the error message is gone. unfortunately, I still cannot proceed to step 3. ;) Any idea? thanks in advance? |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
elfabio wrote:
the good news are: the error message is gone. I am not so sure that is good news since all the replacements were supposed to do was produce more specific error messages. Try uninstalling and starting the G2 module installation from scratch with the replacements in place. -- |
|
S-ed
Joined: 2011-11-01
Posts: 2 |
![]() |
Greetings, Dayo. But I have some troubles when installing it. When I'm trying to configure plugin for Gallery2 on step 2 it says: Quote:
Entered path not found on server. I've tried different methods, works only "..\" and ".\" Quote:
Valid Joomla! 1.5 installation not found in entered path. As soon as I can't put Joomla there... Any suggestions? |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
I'm sorry but I don't understand your query. Did you enter the full server path to Joomla ... or are you trying to use a relative path ... or are you trying to inform me that only a relative path works? -- |
|
S-ed
Joined: 2011-11-01
Posts: 2 |
![]() |
Work fine. Quote:
\server\web\joomla instead of Quote:
c:\server\web\joomla I'm sorry. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Glad you managed to figure it out as I wouldn't have been able to offer any suggestions for a Windows server. -- |
|
mrkappa
Joined: 2012-03-21
Posts: 2 |
![]() |
Hi everybody! I'm having a problem when configuring the plugin for gallery on step 2. I enter the full path to my joomla site but it gives me a 500 internal server error. The logs give me this error Quote:
PHP Fatal error: Cannot redeclare class JVersion in /web/htdocs/www.----.org/home/libraries/joomla/version.php on line 18, referer: http://www.----.org/galleria-foto/?g2_view=core.SiteAdmin&g2_subView=joomg2.AdminJoomG2&g2_mode=preconfig Maybe because I'm using Jfusion? It seems improbable to me.. ps your work seems very promising! Just what I was looking for! |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Why would you be running JFusion and this module at the same time? The module was specifically written to be used in place of JFusion. -- |
|
mrkappa
Joined: 2012-03-21
Posts: 2 |
![]() |
Because I need to test its potential. I cannot remove Jfusion only to find out that I cannot run joomg2. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
You should create separate test environments to test things you are unsure of. -- |
|
pksteit
Joined: 2009-12-03
Posts: 1 |
![]() |
I don't have Jfusion, but i have the same problem to configurate the plugin. I have Joomla 2.5 installed, but i can't found "Full server path to Joomla! folder: " in step 2 of 5 . May, please, help me? Thanks |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Hello, You need to be precise when reporting problems to save people running off in the wrong direction. When you say you "have the same problem", are you saying you actually get the same "PHP Fatal error: Cannot redeclare class JVersion etc etc etc" message that mrkappa has? -- |
|
Feuermarie
Joined: 2008-07-29
Posts: 7 |
![]() |
Hello, I install only Gallery 2.3.2 Configuration joomG2 in site-administration gallery Step2, i get this message: Could not locate Joomla! version file There are no version.php in joomla 2.5.6 Please help. Feuermarie |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Feuermarie wrote:
There are no version.php in joomla 2.5.6 There is ... in "libraries/cms/version/version.php" Thanks for the report though. As there is a typo in the v1.0.6 code that caused your error. Any way, this has been fixed in v1.0.7. -- |
|
Feuermarie
Joined: 2008-07-29
Posts: 7 |
![]() |
Hello Dayo, thanks for help, but now I get a white blank screen. Feuermarie |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
What does the server error log say? -- |
|
Feuermarie
Joined: 2008-07-29
Posts: 7 |
![]() |
There are no error in the error log |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Nevermind, I'll doing a test installation. I'll post an update once I'm done. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
OK. Should be fixed in v1.0.8 -- |
|
Feuermarie
Joined: 2008-07-29
Posts: 7 |
![]() |
OK, now i can configure joomG2 I have a test installtion. Joomla 2.5.6 Sorry for my bad english. Feuermarie |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Should be solved in 1.0.9 ... fingers crossed! |
|
fosy
Joined: 2012-08-17
Posts: 1 |
![]() |
Joomla 2.5.6 Not sure where I am going wrong. Everything looks fine. I am not seeing any errors but absolutely nothing happens. Gallery still doesn't authenticate against joomla. Is there something obvious I'm missing? many thanks |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Hi, No idea ... It is working on my end here following the codex instructions. I am working on a 1.0.10 update which ties up one or two minor loose ends but nothing major and the affected items should have shown up during module installation. Upshot is that you should make sure you have followed the codex exactly. One possibility is to make use php curl is installed. Haven't fully checked yet that users are always informed if it is not available. -- |
|