Forum topic: thumbnails in the search results

Hi again!

I've managed to make a youtube-style site, but have a problem. When searching the site I get the title then this below it:

Get Flash to see this video. var FO = { movie:"/schoolwaxtv.com/modules/op_video/mediaplayer.swf", width:"450",height:"357",majorversion:"7",build:"0",bgcolor:"#FFFFFF", allowfullscreen:"true",flashvars:"id=43&callback=/schoolwaxtv.co ...etc

I'm very surprised I can't seem to find a fix to this outside of just displaying the title in the search results.. really I want to display the thumbnail image below the title.. but I don't really get php so I doubt I can do this on my own.

found a somewhat better method:

$item['snippet'] = theme('node', $item['node']);
$output = '

'. ($item['snippet'] ? ''. $item['snippet'] .'' : '');
return $output;

this displays the entire node as the search result.. way better than just showing code, but im still looking for a method to just show the teaser...

you might want to have a look at my discussion with jbrown in "thumbnail in custom template" thread for how i've got just the thumbnail image into my template

-joseph

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <b>
  • Lines and paragraphs break automatically.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options