collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Can't get RSG "Show My Galleries" to work by Dampfnudel
[February 25, 2019, 11:01:55 AM]


Change the order of uploaded images in the gallery by whazzup
[February 19, 2019, 10:37:29 PM]


Upload timeout for large galleries (500 images each) by whazzup
[February 11, 2019, 10:07:25 PM]


Greetings from Ronald Smit by whazzup
[January 06, 2019, 03:39:22 PM]


Pluign and module by whazzup
[June 08, 2018, 11:57:13 PM]


Version 4.4.1 released by whazzup
[May 31, 2018, 04:31:16 PM]


search.html.php refer to rsgsearch.css with a wrong path by whazzup
[January 13, 2018, 08:12:04 PM]


Slow Gallery with many Photos by whazzup
[September 22, 2017, 09:22:33 AM]

Joomla Search

  • 4 replies
  • 11782 views
Joomla Search
« 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=',a.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 a.date AS created,"
   . "\n '0' AS browsernav,"
   . "\n CONCAT('\"></a><img style=\"float:left;padding-right:10px;\" src=\"','$thumburl',a.id,'\"> <a href=\"$linkurl','&id=',a.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 a.gallery_id=jos_rsgallery2_galleries.id"
   . "\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
« Last Edit: March 05, 2008, 07:45:52 PM by smappler »

Re: Joomla Search
« Reply #1 on: March 16, 2008, 10:51:27 AM »
anyone?

Re: Joomla Search
« Reply #2 on: April 20, 2008, 11:08:16 PM »
 all im after is how to dynamically get the thumb url.

*

Offline john

  • ****
  • 468
Re: Joomla Search
« Reply #3 on: April 21, 2008, 03:27:07 PM »
Hi.

i guess the url for the thumb would be :

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

john

Re: Joomla Search
« Reply #4 on: November 06, 2008, 08:47:48 AM »
Hi, anyone already got this working, please share the code. Thanks.