[Module] JoomG2 (Gallery2 <-> Joomla Bridge)

Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2011-05-28 14:40

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.
As a result, a single set of normal Gallery2 URLs is maintained which removes the usual setup of having a separate gallery address from the embedded address.
Users can now maintain search engine rankings and can provide direct links to gallery pages.

Please read the Gallery2 Codex for relevant documentation.

You can view a demo version HERE.

******* UPDATE: Version 1.1.7 ********
12/07/2013

Change Log:
- Fix: Fatal error due to incorrect path to G2SimpleHTMLDom.class file
- Fix: Misc PHP Notice fixes in GalleryJoomG2.class

******* UPDATE: Version 1.1.6 ********
01/10/2012

Change Log:
- Enhancement: Streamlined handling overriding gallery CSS
- Enhancement: Improved gallery CSS containment
- Enhancement: Improved Gallery breadcrumb removal code
- Enhancement: Improved Gallery logo removal code
- Enhancement: Improvements to Gallery HTML Refine code
- Amendment: Move "Gallery tail" to separate file to improve indentation
- Fix: Misc PHP Notice fixes in AdminJoomla.inc
- Fix: Fatal error if Gallery template did not return title tag

******* UPDATE: Version 1.1.5 ********
29/09/2012

Change Log:
- Enhancement: Updated distributed CSS override files to minimise inheritance conflicts
- Amendment: Removed the distributed info.png file as the gif version is what is in use
- Amendment: Removed the distributed carbon.css file as the carbon theme is generally incompatible
- Fix: Fatal error if administrator selected options to hide Gallery2 elements for which tags could not be found in the html

******* UPDATE: Version 1.1.4 ********
22/09/2012

Change Log:
- Fix: Fatal error if the Joomla! template in use did not add the base href tag to the HTML output
- Fix: The Gallery2 login link was redirected to the Joomla! login page even when user integration was disabled
- Fix: The added "BeforeOutput" event was incorrectly labelled as "BeforeProcess"
- Fix: The SimpleHTMLDom class was incorrectly referenced leading to a fatal error
- Amendment: Extend the checks on the requirement for configuration during installation
- Amendment: Joomg2RefineHTML.class removed from module files and repackaged as G2RefineHTML.class under lib/G2RefineHTML to remove redundancies with the G2Drupal Module
- Amendment: SimpleHTMLDom.class removed from module files and repackaged as G2SimpleHTMLDom.class under lib/G2SimpleHTMLDom to remove redundancies with the G2Drupal Module
- Amendment: The various "simple_html_dom" classes renamed as "g2_simple_html_dom" to avoid potential conflicts with pristine versions of SimpleHTMLDom
- Amendment: Replace the PHP "empty" function with bespoke "Is_Empty" function to increase reliability of tests in module.inc

******* UPDATE: Version 1.1.3 ********
20/09/2012

Change Log:
Amendment: Enforces PHP 5.0.4 requirement

******* UPDATE: Version 1.1.2 ********
15/09/2012

Change Log:
Fix: Module could still not be used if the current Gallery2 theme was not "Matrix" or "Siriux"

******* UPDATE: Version 1.1.1 ********
12/09/2012

Change Log:
Fix: Removes restriction that disabled the plugin if the current Gallery2 theme is not "Matrix" or "Siriux"

******* UPDATE: Version 1.1.0 ********
11/09/2012

Change Log:
- Enhancement: Improved CSS conflict resolution through the use of administrator defined override CSS files
- Enhancement: Uses the Simple HTML Dom Parser in place of php regex patterns for increased parsing reliability
- Enhancement: Allows administrator to select whether to show or hide Gallery2 breadcrumb
- Enhancement: Allows administrator to select whether to show or hide Gallery2 system links
- Enhancement: Allows administrator to select whether to show or hide Gallery2 sidebar
- Enhancement: Allows administrator to select whether to show or hide Gallery2 logo
- Enhancement: Allows administrator to select whether to fix de-centered images
- Enhancement: Adds help tips to configuration screen
- Amendment: Adds version tag to output html
- Amendment: Removes redundant code
- Amendment: Requires PHP 5.0.4 and above

******* UPDATE: Version 1.0.11 ********
19/08/2012

Change Log:
- Fix: Fatal Error due to misconfigured template file in v1.0.10.

******** UPDATE: Version 1.0.10 ********
18/08/2012

Change Log:
- Fix: Force highlight the Gallery2 external url menu item in Joomla! 2.5.x.
- Fix: Force highlight the Gallery2 external url breadcrumb item in Joomla! 2.5.x.
- Fix: The module could not be installed if the Joomla! external url Id was "0".
- Fix: The remapped Gallery2 logout link resulted in a "Page Not Found" Error in Joomla! 2.5.x.
- Fix: The Joomla! 2.5.x login and logout form did not return the user to Gallery2 after completion.
- Enhancement: The Joomla! 2.5.x breadcrumb now shows the Gallery2 item details if the rewrite module is active.
- Enhancement: The module installation interface now uses clearer syntax.
- Amendment: Drops active Joomla 1.5.x support.

******** UPDATE: Version 1.0.9 ********
07/08/2012

Change Log:
- Fix: Force highlight the Gallery2 external url menu item (controller.php)
- Amendment: Remove need for hack around router in Joomla 1.6.x+. Now fully processed through Joomla! Framework.
- Amendment: Notify user if PHP Curl Extension is missing.
- Amendment: Drops all Joomla 1.6.x support.
- Amendment: Drops all Joomla 1.7.x support.

******** UPDATE: Version 1.0.8 ********
05/08/2012

Change Log:
- Fix: Correct error in path to Joomla 2.5 Version file
- Fix: Replace non-functioning file_get_contents function with curl for retrieving Joomla! HTML
- Amendment: Now requires the curl extension
- Amendment: Updated misc ancillary links

******** UPDATE: Version 1.0.7 ********
02/08/2012

Change Log:
- Fix: Updated path to Joomla 2.5 Version file for installation checks

******** UPDATE: Version 1.0.6 ********
03/05/2012

Change Log:
- Fix: Added Windows OS aware installation checks to enable use on Windows servers - Thanks to Broer van Smeden (http://web-oplosser.nl) for supplying a patch
- Fix: Updated path to Joomla 2.5 Version file for installation checks - Thanks to Broer van Smeden (http://web-oplosser.nl) for supplying a patch

******** UPDATE: Version 1.0.5 ********
26/01/2012

Change Log:
- Enhancement: Adds Joomla! 2.5 support
- Amendment: The specified path to Gallery 2 entered in the Joomla! g2Auth module may now include the base filename (index.php or main.php)
- Amendment: The specified path to Gallery 2 entered as the Joomla! External URL item may now include the base filename (index.php or main.php)

******** UPDATE: Version 1.0.4 ********
12/11/2011

Change Log:
- Fix: Some relative paths to Joomla! were not rebased to the Gallery2 folder location resulting in broken links

******** UPDATE: Version 1.0.3 ********
23/10/2011

Change Log:
- Fix: Error in Id mapping to HTML refine class

******** UPDATE: Version 1.0.2 ********
07/10/2011

Change Log:
- Enhancement: Auto completes user logout when triggered from G2. Previously only redirected to Joomla! logout page
- Amendment: Displays version ID in configuration screen
- Amendment: External ID map prefix added at a single location
- Amendment: User object collision processing
- Fix: Fatal error when the com_joomg2 admin link is clicked in Joomal!
- Fix: Did not recognise G2 login password. Only Joomla! password worked
- Fix: HTML syntax error in plug link for Joomla 1.6+
- Fix: External Map ID table was not cleared on uninstallation

******** UPDATE: Version 1.0.1 ********
04/10/2011

Change Log:
- Amendment: Displays version ID in configuration screen
- Fix: Unable to detect Joomla! 1.6+ during module installation

******** UPDATE: Version 1.0.0 ********
31/08/2011

Change Log:
- Enhancement: Adds Joomla! 1.6 support
- Enhancement: Adds Joomla! 1.7 support
- Amendment: Adds unique ID to external mapping
- Amendment: Manually pushes component content into Joomla! document buffer for v1.6+
- Fix: HTML syntax error in plug link
- Fix: Uses inbuilt G2 function to retrieve "$_GET" inputs for improved security

******** UPDATE: Version 0.9.2 ********
11/08/2011

Change Log:
- Amendment: Modular internal structure for files and corresponding code.
- Amendment: Drops auto JQuery conflict resolution.

Notes:
1) Structural changes to files and code to enable maintaining compatibility with new release cycle adopted by Joomla! Team.

******** UPDATE: Version 0.9.1 ********
24/06/2011

Change Log:
- Enhancement: Adds user integration
- Enhancement: Adds Joomla! Community Builder plugin support
- Enhancement: Adds Gallery2 URL Rewrite Module support
- Amendment: Checks for presence of Gallery2 Authentication Plugin in Joomla! before activating user integration.
- Amendment: Removes "Gallery::BeforeProcess" event
- Amendment: Adjusts "Gallery::BeforeOutput" event implementation
- Fix: HTML postprocessing was stuck on "Rationalised"
- Fix: PHP fatal error if Joomla! 1.6 was selected
- Fix: Flawed Error handling in module.inc

Notes:
1) Updated to "Stable" Status
2) Joomla! 1.6 support is inactive
3) Important installation information added to codex

******** UPDATE: Version 0.9.0 ********
23/06/2011

Change Log:
- Enhancement: Self contained HTML postprocessing
- Enhancement: Installation steps indication
- Amendment: Refactored to address dependency issues with Refine Module
- Amendment: Site Administration pages displayed in normal G2 environment to permit emergency access by site administrator
- Amendment: Event triggers now included as separate files for ease of use
- Fix: Event trigger changed to address user session conflict issues
- Fix: Lazy regex did not cover required HTML page permutations

Notes:
1) Updated to "Release Candidate" Status
2) Joomla! 1.6 support is inactive
3) User integration is Inactive

******** UPDATE: Version 0.8.2 (Beta) ********
15/06/2011

Change Log:
- Fix: Potential conflict with upcoming G2Drupal Module. Both now cannot be activated at the same time.
- Fix: Improperly defined variable scope prevented data transfer to Refine module.

Notes:
1) Joomla! 1.6 support is inactive
2) User integration is Inactive

******** INITIAL RELEASE: Version 0.8.1 (Beta) ********
28/05/2011

Change Log:
- Initial Release

Notes:
1) Joomla! 1.6 support is inactive.
2) User integration is Inactive.

--
dakanji.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2011-05-28 15:30

Finally, a true embed for joomla.
Good job.

I was getting weary of the jFusion-iframe support questions ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
AllanB

Joined: 2007-03-01
Posts: 40
Posted: Tue, 2011-06-21 02:37

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
Posted: Tue, 2011-06-21 04:05

Thanks for the feedback.

Required actions to fix v0.8.3:
1. Find all instances of $ret' and replace with $ret in module.inc (2 Instances)
2. Find all instances of '0.8.3' and replace with '0.8.3a' in module.inc (1 Instance)

This will update the module to v0.8.3a which I'll upload later.

--
dakanji.com

 
AllanB

Joined: 2007-03-01
Posts: 40
Posted: Tue, 2011-06-21 04:41

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
Posted: Tue, 2011-06-21 07:42

I see.

Check back after 1800 GMT today for resolutions.

--
dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-06-21 17:37

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.
It might take a few days.

--
dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-06-21 23:33

I found what looks like a bug in G2 ... The "orderweight" parameter in the registerFactoryImplementation command does not seem to have any effect.
Both the Refine and JoomG2 modules listen for the "Before:Display" event and no matter what the "orderweight" parameter setting is, the Refine module always fires before the JoomG2 module which effectively disables the JoomG2 modlule.

The upshot is to:

1. Investigate, confirm and fix this issue which would need input from the core dev team (highly unlikely)
2. Refactor both modules to remove interdependencies (doable)

I'll work on Option 2 and should have the revised versions up by 1200 GMT tomorrow.

***EDIT***
Thinking about it, there is no way such a bug can be in G2 so I just have to get some sleep and look at things afresh later.

--
dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2011-06-22 15:52

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.
1. It is fired too early in the process flow. Specifically, it is fired before the G2 session is created which wrecks havoc with attempts at user integration (which = managing sessions). The result was a host of authentication errors.
2. It does not provide a feedback into the process flow. In effect, trying to manipulate html using this event meant short-circuiting the process flow, hence JoomG2 bypassing the caching system and relying on RefineHTML to reinstate it.

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.

--
dakanji.com

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Sun, 2011-08-14 21:59

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
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-08-15 01:09

W/ the User Album module you can have users jump to their own album when they visit gallery.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2011-08-15 01:32

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
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-08-15 01:40

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.
Gallery displays a link to "Your Album" all the time. When the user first clicks the link gallery creates the album - much better.
I've also expanded the user albums module to auto create sub albums and some default content based on a template album.

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
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2011-08-15 01:52

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.
Gallery displays a link to "Your Album" all the time. When the user first clicks the link gallery creates the album - much better.
I've also expanded the user albums module to auto create sub albums and some default content based on a template album.

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
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2011-08-15 02:00

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.
Gallery displays a link to "Your Album" all the time. When the user first clicks the link gallery creates the album - much better.
I've also expanded the user albums module to auto create sub albums and some default content based on a template album.

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
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-08-15 02:02

You may have mucked things up a bit.
I'd uninstall the user albums module and start over.

Admin should have free roam.
Make sure Gallery is functioning correctly in the first place.

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
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2011-08-15 02:22

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.
I'd uninstall the user albums module and start over.

Admin should have free roam.
Make sure Gallery is functioning correctly in the first place.

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
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
mcmax1

Joined: 2011-09-27
Posts: 4
Posted: Wed, 2011-09-28 12:51

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
Posted: Wed, 2011-09-28 15:10

Fixed

--
dakanji.com

 
mcmax1

Joined: 2011-09-27
Posts: 4
Posted: Wed, 2011-09-28 16:33

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
Posted: Wed, 2011-09-28 17:43

I see. I just changed the link using my phone. I'll have a look later.
--
dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2011-09-29 17:32

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.

--
dakanji.com

 
mcmax1

Joined: 2011-09-27
Posts: 4
Posted: Thu, 2011-09-29 19:33

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
Posted: Fri, 2011-09-30 04:33

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
2. I fixed the download link to point to v1.0.0

Have you actually downloaded v1.0.0?

--
dakanji.com

 
mcmax1

Joined: 2011-09-27
Posts: 4
Posted: Fri, 2011-09-30 11:41

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">
<tbody><tr>
<td>
<big><b>Step 1 of 5</b></big>
</td>
<td>
</td>
</tr>
<tr>
<td>
Joomla! Version:
</td>
<td>
<select id="g2_form[joomVersion]" name="g2_form[joomVersion]">
<!--<option value="1.8" >Version 1.8</option>-->
<!--<option value="1.7" >Version 1.7</option>-->
<!--<option value="1.6" >Version 1.6</option>-->
<option value="1.5">Version 1.5</option>
</select>
</td>
</tr>
</tbody></table>

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2011-09-30 12:42

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.

--
dakanji.com

 
elfabio

Joined: 2011-10-03
Posts: 3
Posted: Mon, 2011-10-03 17:06

Hi Dayo, I am stuck at step 2.
the error message states that "Valid Joomla! 1.7 installation not found in entered path." yet the path should be correct. The path I tried is the same one shown in configuration.php $log (without the /log of course)...

Hope you can help.

Cheers,
Fabian

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-10-04 19:37

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***
Attachments removed

--
dakanji.com

 
elfabio

Joined: 2011-10-03
Posts: 3
Posted: Tue, 2011-10-04 07:55

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. ;)
First I enter the path to the server (it is autocompleted and links to the same directory the domain points to, thus it should be correct, right?)
When I press next, the browser (I have tried firefox, opera and ie) clears the field with the directory information.

Any idea?

thanks in advance?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-10-04 10:28
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.

--
dakanji.com

 
S-ed

Joined: 2011-11-01
Posts: 2
Posted: Tue, 2011-11-01 18:30

Greetings, Dayo.
First of all, thanks for connector.

But I have some troubles when installing it.
There is clean install of Gallery2 (2.3.1).
Joomla 1.5.24, JoomG2 Bridge 1.0.3

When I'm trying to configure plugin for Gallery2 on step 2 it says:
Full server path to Joomla! folder:

Quote:
Entered path not found on server.

I've tried different methods, works only "..\" and ".\"
It says:

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
Posted: Tue, 2011-11-01 19:37

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?

--
dakanji.com

 
S-ed

Joined: 2011-11-01
Posts: 2
Posted: Wed, 2011-11-02 08:52

Work fine.
Seems like under Win platform address should be like in unix, W/O drive letter.

Quote:
\server\web\joomla

instead of

Quote:
c:\server\web\joomla

I'm sorry.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2011-11-02 15:09

Glad you managed to figure it out as I wouldn't have been able to offer any suggestions for a Windows server.

--
dakanji.com

 
mrkappa

Joined: 2012-03-21
Posts: 2
Posted: Wed, 2012-03-21 08:46

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..
Can you help me?
I have a Joomla 2.5.3 site and Gallery is version 2.3.1

ps your work seems very promising! Just what I was looking for!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-03-23 07:30

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.

--
dakanji.com

 
mrkappa

Joined: 2012-03-21
Posts: 2
Posted: Sun, 2012-03-25 21:45

Because I need to test its potential. I cannot remove Jfusion only to find out that I cannot run joomg2.
What could be the problem?? Joomla 2.5???

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-03-26 09:03

You should create separate test environments to test things you are unsure of.

--
dakanji.com

 
pksteit

Joined: 2009-12-03
Posts: 1
Posted: Tue, 2012-03-27 10:02

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
Posted: Tue, 2012-03-27 13:30

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?

--
dakanji.com

 
Feuermarie

Joined: 2008-07-29
Posts: 7
Posted: Sun, 2012-07-29 21:00

Hello,

I install only

Gallery 2.3.2
joomla 2.5.6
joomG2 1.0.6

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
Posted: Thu, 2012-08-02 01:11
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.
Funny thing is that there have been quite a few downloads of this version and it is interesting how so many can't even be bothered to do so much as give basic feedback.

Any way, this has been fixed in v1.0.7.

--
dakanji.com

 
Feuermarie

Joined: 2008-07-29
Posts: 7
Posted: Sat, 2012-08-04 19:51

Hello Dayo,

thanks for help, but now I get a white blank screen.

Feuermarie

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-08-04 20:10

What does the server error log say?

--
dakanji.com

 
Feuermarie

Joined: 2008-07-29
Posts: 7
Posted: Sat, 2012-08-04 20:40

There are no error in the error log

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-08-04 20:46

Nevermind, I'll doing a test installation.

I'll post an update once I'm done.
--
dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-08-04 23:17

OK. Should be fixed in v1.0.8

--
dakanji.com

 
Feuermarie

Joined: 2008-07-29
Posts: 7
Posted: Sun, 2012-08-05 20:38

OK, now i can configure joomG2
But I get the message Incompatible Joomla! Version on top of the gallery in a new window, when i enter the gallery, using the joomla menue link.

I have a test installtion.
Only installed:

Joomla 2.5.6
Gallery 2.3.2
joomg2 1.0.8

Sorry for my bad english.
:)

Feuermarie

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2012-08-08 07:57

Should be solved in 1.0.9 ... fingers crossed!
--
dakanji.com

 
fosy

Joined: 2012-08-17
Posts: 1
Posted: Fri, 2012-08-17 09:33

Joomla 2.5.6
Gallery 2.3.2
joomg2 1.0.9

Not sure where I am going wrong.
- Same admin username/password/email/full name in joomla and gallery.
- files copied to events, modules
- joomg2 bridge component installed
- menu item created
- plugin installed
- main.php edited
- path to gallery added to the joomla plugin config
- joomG2 config in Gallery set with path, menu item id, full integration

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
Posted: Fri, 2012-08-17 15:35

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.

--
dakanji.com