I use a block for the records in Search Cloud and cache this for improvement of the DB:
<?php
begin_block(T_("Search_Cloud"), CENTER);
if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "<br /><br /><b><center>".T_("BROWSE_MEMBERS_ONLY")."</center><br /><br />";
} else {
require_once("backend/searchcloud_functions.php");
$expire = 120; // time in seconds
if (($cloudrecords = $TTCache->Get("searchcloudblock", $expire)) === false){
$cloudrecords = (cloud()!= '' ? cloud() : 'No Search records');
$TTCache->Set("searchcloudblock", $cloudrecords, $expire);
}
?>
<style type="text/css">
.tag_cloud
{
padding:
3px;
text-decoration: none;
font-family: "Trebuchet MS",Arial,Helvetica,sans-serif;
}
.tag_cloud:link
{
color: #0099FF; text-decoration:none;
}
.tag_cloud:visited
{
color: #00CCFF;
}
.tag_cloud:hover
{
background: #tranparent; color: #999;text-decoration:underline;
}
.tag_cloud:active
{
color: #0000FF; background: #FFFFFF;
}
</style>
<div id="wrapper_search" style="width:90%;border:none;">
<?php
//print out the tag cloud
print $cloudrecords;
}
?>
</div><br /><br />
<?php
end_block();
?>
In language:
//Search Cloud
$LANG["Search_Cloud"] = "Search Cloud";