Tag cloud module

davidarnoult

Joined: 2008-03-18
Posts: 39
Posted: Tue, 2008-12-30 09:01

Hi

I need a tag cloud module for embedded G2.3 on Joomla 1.5. I couldn't find any, so I try to create one from Joomulus http://extensions.joomla.org/extensions/6493/details but I am not a very good php programmer :-)

I have developped a new function to populate the tags from g2_Item

Quote:
function getG2Text() {
$result=null;
$db = new database('localhost','login','xxxx','gallery2','g2_');
$query = "SELECT g_keywords FROM g2_Item where g_keywords!=\"\" or g_keywords!=NULL ORDER BY RAND() limit 0,5";
$db->setQuery($query);
$result = $db->loadObjectList();
return $result;
}

but I have this error:

Quote:

Warning: array_values() [function.array-values]: The argument should be an array in /var/www/modules/mod_joomulus/mod_joomulus.php on line 37

Warning: Wrong parameter count for min() in /var/www/modules/mod_joomulus/mod_joomulus.php on line 37

Warning: array_values() [function.array-values]: The argument should be an array in /var/www/modules/mod_joomulus/mod_joomulus.php on line 38

Any help will be appreciated.

Thanks

David