Quote by: suprsidr
the Doc's say to format your results:
PHP Formatted Code
LF_SOURCE_NAME => 'myplugin',
LF_SOURCE_TITLE => 'My Plugin',
'title' => 'Custom Result 2',
'description' => 'This is a custom result',
'date' => '1256058000',
'url' => '/internal/page/custom2',
'hits' => 20000,
'uid' => 2
But you actually want to format the uid as an full html profile url.
should be updated.
Thats odd I thought I had it working the with just the uid. I will have to get Geeklog installed again and do some testing, at the moment I'm just browsing through the source on project.geeklog.net. The only place I noticed where it might be falling over is line 674
of search.class.php where it checks that uid is a numeric value. Can you verify that there aren't any spaces lurking in there? Also it would be interesting to know if you also get the issue when using a callback function as described in the documentation.
Quote by: suprsidr
is it possible to pass html in the description and/or title fields?
I actually tacked it onto the html I passed in the uid field.
So I'm able to provide a preview image
I was not able to get any images displaying in my results
in fact im not getting any gallery results at all, just results from the usual story/static/forum plugins.
If you wanted to include HTML in the title/description that can be done. It will probably need to be an extra switch eg. $search->stripHtml(false);
But the issue would be when the text goes through the shortening algorithm, that centers the text around the keyword and puts it in bold. How would this be done if there is HTML involved as we need to make sure all tags are closed correctly. Or maybe if you disable the html stripping it also disables the truncation of the text? Then leave it to the plugin to deal with that? I dont know what would be the best here...ideas?