RSGallery2 Forum Portal

Developers corner => Developer Lobby => Topic started by: smappler on March 05, 2008, 07:43:29 PM

Title: Joomla Search
Post by: smappler on March 05, 2008, 07:43:29 PM
Im trying to get the joomla search to show thumbnails from rsgallery. ive spoken to joymonkey who has it functioning on his website however he is using a previous version 1.12?. here are the changes to the rsgallery search bot.

   $linkurl = $mosConfig_live_site."/index.php?option=com_rsgallery2&page=inline";
   $thumburl = $mosConfig_live_site."/index.php?option=com_rsgallery2&page=getthumb&id=";
   $link = $mosConfig_live_site."/".$imagedir."";
   //. "\n CONCAT('$linkurl','&id=',,'&catid=',a.gallery_id,'&limitstart=',a.ordering-1) AS href"
   $query = "SELECT CONCAT('<div>',a.title,'</div>') AS title,"
   . "\n a.descr AS text,"
   . "\n a.params AS text,"
   . "\n AS created,"
   . "\n '0' AS browsernav,"
   . "\n CONCAT('\"></a><img style=\"float:left;padding-right:10px;\" src=\"','$thumburl',,'\"> <a href=\"$linkurl','&id=',,'&catid=',a.gallery_id,'&limitstart=',a.ordering-1) AS href"
   . "\n FROM jos_rsgallery2_files AS a"
   . "\n INNER JOIN jos_rsgallery2_galleries"
   . "\n ON"
   . "\n WHERE ($where)"
   . "\n AND jos_rsgallery2_galleries.published = 1"
   . "\n ORDER BY $order"
   $database->setQuery( $query, 0, $limit );

this basically outputs the URL of thumbnail and adds the image.

my gallery isnt displaying the thumbnail so im guessing the generation of the thumb URL has changed since version 1.12. im using latest 1.14.

can anyone tell me how to generate the thumbnail URL or how i can mod the rsgallery2.searchbot.php to show the images.

the reason for trying to change the joomla search instead of the rsgallery 2 search is that it cant handle 2 words which are not a phrase. e.g. in my params i have "bike race 12"

a search for "bike 12" would not return that image.

many thanks
Title: Re: Joomla Search
Post by: smappler on March 16, 2008, 10:51:27 AM
Title: Re: Joomla Search
Post by: smappler on April 20, 2008, 11:08:16 PM
 all im after is how to dynamically get the thumb url.
Title: Re: Joomla Search
Post by: john on April 21, 2008, 03:27:07 PM

i guess the url for the thumb would be :

Code: [Select]
CONCAT ($mosConfig_live_site.,  '/images/rsgallery/thumb/' , , '.jpg')

Title: Re: Joomla Search
Post by: JJ Choo on November 06, 2008, 08:47:48 AM
Hi, anyone already got this working, please share the code. Thanks.