1
adium
xcGallery Search Results without link
  • 2009/6/7 20:38

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


On my site (http://www.ncoschool.com) I having installed xcGallery to display a thumbnail in the search results. However that is all it does. There is no link to what it displays in the search.

I would also link a text link under the thumbnail just in case the image doesn't load or some other problem occurs. How do I make this change so that I can fix the search results?

2
ghia
Re: xcGallery Search Results without link
  • 2009/6/7 23:13

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The thumbnail itself is the link! Search eg for school.
If you want the text beneath also as a link, you have to change the template (xcgal_thumb.html).

3
adium
Re: xcGallery Search Results without link
  • 2009/6/8 0:32

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


I meant in the XOOPS global results. The Thumbnail is not clickable and without a name on the image there is no way to click the image at all.

4
ghia
Re: xcGallery Search Results without link
  • 2009/6/8 6:56

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I don't see a problem in /search.php?query=school&andor=AND&mids[]=53&submit=Search&action=results
If some images have no name, you should provide one.
Other option is to introduce the search words as caption, if caption is empty at the end of /modules/xcgal/include/search.inc.php eg.
if ($caption == '' $caption $search_string;
$rowset[$key]['caption_text'] = $caption;

Nicer would be that the relevant variable where the search text was found is used.

5
wcrwcr
Re: xcGallery Search Results without link
  • 2009/6/8 17:22

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi Ghia is right as always

Quote:
The Thumbnail is not clickable and without a name on the image there is no way to click the image at all.


You must have a title and a description to index correctly the images in the XOOPS search.

Login

Who's Online

239 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits