i always wanted to display keywords as folder structure, more or less it is enough to display the keywords for a search result, this makes browsing a large gallery quite interesting
its not really perfekt for inclusion, but an option for the gallery: "include tag cloud on search results" would be just perfect
its just working with the keywords already obtained by search query
here you can see the adjustment in action:
http://www.fractalforums.com/index.php?action=gallery;sa=search2;key=hybridi inserted the following code to the gallery.template.php - right in the "template_search_results()" method, before the for-loop that outputs the results
// mod ck: build search result keywords
$keywords=array();
while($row = mysql_fetch_assoc($dbresult))
{
$keys = explode(" ", $row["keywords"]);
for($i=0;$i<sizeof($keys);$i++){
$keywords[$keys[$i]]++;
}
}
// calculate means
$max=0;
foreach ($keywords as $key => $value) {
if($value>$max)
{
$max=$value;
}
}
echo '
<tr class="catbg">
<td align="center" colspan="' . $maxrowlevel . '">Keywords</td>
</tr>
<tr >
<td align="center" colspan="' . $maxrowlevel . '">
';
foreach ($keywords as $key => $value) {
echo '<a href="/index.php?action=gallery;sa=search2;key='.$key.'" style="font-size: '.(100+(($value/$max)*100-25)).'%" >'.$key.'</a> ';
}
echo '</td></tr>';
mysql_data_seek($dbresult,0);
// mod ck: build search results keyword list end