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
extensions.joomla.org/extensions/6493/details but I am not a very good php programmer :-)
I have developped a new function inside helper.php to populate the tags from g2_Item database
Quote:
function getG2Text() {
$result=null;
$db = new database('localhost','xxx','xxx','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 when publishing module :
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