On the template/sidebox/tpl_blank_sidebox.php, it said
PHP Code:
$content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>';
But when I tried to add this following PHP, something wrong happended. The sidebox hasn't shown in the site. www.best4future.com
PHP Code:
<?php
//
// Make a new empty tag cloud
//
$cloud = new wordCloud();
//
// Add the product keywords
//
$array_ids = my_get_prod_ids();
foreach ($array_ids as $key1 => $id_val)
{
$prod_key_words =readCSV(zen_get_metatags_keywords1($id_val, 1));
foreach ($prod_key_words as $key2 => $tag)
{
$cloud->addTag(rand(5, 15),zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keyword=' . $tag),$tag);
}
}
//
// Add the catagories
//
foreach (zen_get_categories_names(array(array()),0 ,'') as $key => $value)
{
if (is_array($value))
{
$cloud->addTag(rand(5, 15),$value[0],$value[1]);
}
}
//
// Add some sample data
//
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","something");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Else");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Todo");
//
//Display the cloud
//
echo $cloud->showCloud();
?>
Can anybody advise me? Thank you so much!!