Search function integration (xoops) Search function integration (xoops)
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Search function integration (xoops)

Started by coopersita, May 23, 2006, 06:13:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

coopersita

Hi all,

I've been searching the forum but can't seem to find a post about it...

I've bridged xoops and coppermine successfully, but I'd also like to integrate the search, so one search script searches both xoops and coppermine at the same time.

Has this been done before? Where would be a good place to start?

I could use a module gallery in xoops, but none have the awsome functionality of coppermine, but the search is such an important feature, that I probably will use a module if I can't integrate  the search as well..

Thanks

coopersita

I found a way to integrate the search quite seamlessly in a quite easy way (took only about half an hour to do).

It's not very elegant, and I haven't tested that thoroughly, but so far is working great:

I tricked xcgallery (a coppermine based xoops module) to search the coppermine gallery instead of itself.

I installed coppermine in the same database as xoops, and I installed xcgal as well. Then I changed the search files in xcgall to search the coppermine gallery by hardcoding the table names in all the sql queries.

I also had to change /search.php in xoops so that the results are displayed pointing to coppermine instead of xcgal.

That's it! I even get the thumbnail to show up in search results!