I've been doing some work on integrating Coppermine into Joomla when configured with the Orstio bridge. I've got a working solution. It uses iframe, but it handles all direct URL redirects (using javascript), and integrates Coppermine Search into Joomla via a searchbot (or search mambot). I am providing this as is, but will try to elp out, if I can. I am also encouraging feedback and improvements. This solution works great for me, though it may not work for anyone else, I have tried to make it as universal as possible.
EDIT: Oh, and the mambot searches the title, caption, and keywords fields in the gallery. It checks permissions as well, both the primary group, and additional groups. It also allows full access for admins. If the logged-in user doesn't have access to the image, it doesn't show up in the search results.
Contents of Read Me file:
The Coppermine Searchbot tool requires some modifications to the Joomla! Wrapper component, and your Coppermine theme. These changes are to allow links to the direct (unwrapped) coppermine site to redirect correctly to a wrapped page. This is based on other code I have seen, but goes one step further in allowing alternate pages to also correctly redirect.
PREREQUISITES
Installed SMF 1.1.2
Installed Joomla 1.0.12
Installed Coppermine 1.4.10
Configured all Pieces Above
Created and functioning SMF-Joomla Bridge from Orstio on
http://www.simplemachines.orgCreated and functioning SMF-Coppermine Bridge (included in Coppermine package)
INSTRUCTIONS
Update the Joomla Wrapper component: /components/com_wrapper/wrapper.php
The file included clearly shows where the code I added is from
This update will allow additional parameters to pass through to the iframe
Ensure the Menu Item for the Wrapper is configured correctly
Wrapper Link should be to the directory of the Coppermine installation (eg.
http://www....com/coppermine/)
Published should be set to Yes
Scroll Bars set to Auto (or the configuration screens won't work right)
Auto Height set to Yes
I also have Width and Height set to 100%, though these are not critical
Update your Coppermine Theme: /themes/(your theme)/template.html
The file included clearly shows where the code I added is from
This update uses Javascript to determine if the coppermine gallery is loading in the Joomla wrapper (using an iframe) or not.
Update the coppermine location and the itemid in the template file, per the comments in the file.
Install the cpg_searchbot.zip file into Joomla. This is done through the admin tool as adding a mambot.
Configure the Site Mambots. Select the Search Coppermine mambot.
Publish the mambot, and enter your module name (which shows up in the search results), and the prefix for your coppermine tables (must be in same database).
Save it.
You are done!!
Please ask questions in the forum. I am providing this out of the goodness of my heart. I am releasing this under the GPL, and cannot guarantee support. It's free! I am providing this to all those with Joomla! SMF, and Coppermine looking to have an improved integration expereince.
Yeah, it's not perfect, but it works. And yeah, it's GPL... you want to modify it? Go ahead. It'd be really nice if you could share your improvements with the community. After all, that's really what this is about.
Thanks,
Brian Devendorf
EDIT: Found a small glitch in the url creation... updated attachment.