Articles

Print

Gallery2 Joomla Bridge - Search

Written by Joshua Lyon on .

In case you haven't read my other posts about search engine optimization, I've been on an SEO kick lately.  I've renamed all my images in the photo gallery so they all have some context now.  Google indexes galleries, but the next step was to be able to search the images from within my own site.  I installed the gallery2 search mambot plugin for joomla, but it wasn't doing anything.  Here's what I did to get it working.

  1. Install the mambot
    -Administrator Backend: Installers > Mambots
  2. Enable the mambot
    -This is the part I was somehow forgetting, but it's critical
    1. Admin Backend: Mambots > Site Mambots
    2. Click the X icon next to the Gallery2 Search mambot to publish it
  3. Change some code that comes default with the Jan 6 release:
    -Go to the searchbot PHP file
    mambots/search/gallery2.searchbot.php

    Look for the code around line 63 like this:
       $info->created = utility::g2DateToMambo($time);

    Change it to this:
      $info->created = utility::formatdate($time);

Comments   

 
johnlocke
0 #5 johnlocke 2010-12-17 19:32
I just realized that once I enabled the URL Rewrite module in Gallery2 my SEF urls in the searchbot are incorrect. I think this actually has something to do with my OpenSEF component not firing off on the com_search component though.
Quote | Report to administrator
 
 
SEO Company
0 #4 SEO Company 2010-07-02 04:02
So, your link would then be "index2.php?... " - try it now! This has been useful to me when I worked with customers who had a Joomla site and a few non-Joomla sites - this hack was used to pull in lead generation forms and articles for viewing thus avoiding the 'duplicate content' worry in your SEO.
Quote | Report to administrator
 
 
SokJuice
0 #3 SokJuice 2008-10-18 12:32
Just wanted to let you guys know that as of the end of 2008, IT STILL WORKS!
Quote | Report to administrator
 
 
bob
0 #2 bob 2008-01-18 06:30
tKn0BL hi great site thx peace.com
Quote | Report to administrator
 
 
josh
0 #1 josh 2008-01-11 13:24
I just realized that once I enabled the URL Rewrite module in Gallery2 my SEF urls in the searchbot are incorrect. I think this actually has something to do with my OpenSEF component not firing off on the com_search component though.

On the other hand, my gallery URLs look awesome now. instead of index.php?com_g allery2&itemId= 17&g2_view=view &g2_itemid=1049
my urls now look like
/gallery/europe /
Quote | Report to administrator