This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

keyword cloud of embedded gallery2 keywords as drupal page

I'm trying to make a keyword cloud (like tagadelic) of embedded gallery2 keywords as a drupal page. The cloud works great but this code seems to break everything else besides the cloud on that page. Any advice would be greatly appreciated. As far as I could tell, gallery2 doesn't have an API for accessing keywords.

Drupal 4.7.5
Gallery 2.1.2
Apache 2
MySQL 4.1

<?php
function getCloud($minFont=10, $maxFont=35) {
$keyword = array();
$cloud = array();
$my_link = mysql_connect('localhost', 'user', 'pass')
or die('Could not connect: ' . mysql_error());
mysql_select_db('gallery2') or die('Could not select database');

// Grab the tags from the database
$keyword_query = mysql_query("SELECT g_keywords FROM g2_Item where g_keywords!=\"\" or g_keywords!=NULL ORDER BY RAND()");

while($t = mysql_fetch_array($keyword_query)) {
$key_db = explode('; ', $t[0]);
while(list($key, $value) = each($key_db)){
$keyword[$value] += 1;
}
}

// Get totals to use for font size
$min = min(array_values($keyword));
$max = max(array_values($keyword));
$fix = ($max - $min == 0) ? 1 : $max - $min;

// Display the tags
foreach ($keyword as $tag => $count) {
$size = $minFont + ($count - $min) * ($maxFont - $minFont) / $fix;

auto-thumbnail video ffmpeg helper

i'm tring to use the auto-thumbnail but when i chek the auto-thumnail on the admin section i retrieve the segeuent error:

Set correct path for thumbnailer

thanks!

HELP with Views Arguments

i am developing a VIEW to display some groups teasers.
i want this view to deal/filter by the arguments passed in the GET.

Directory modeule - unordered list customization

Hi to all!
I am using the directory module in my new website test version, i've fine-tuned the look a little bit in the directory.css file, however i can't find a way to increase the indent of second-level list items. i have tried to set padding-left or margin-left for second-level

  • 's, but it doesn't seem to work :( and i really need the second-level items (subcategories) to be clearly separated from the main list items (categories). would be very thankful for any help!
    thanks in advance!
  • Do pre 5.x modules work on 5.0 server?

    Hi,

    I'm not able to see once i load the Announcement module which also require following modules:

    bounced_email.module
    html2txt.module
    identity_hash.module
    publication.module
    templates.module
    schedule.module
    subscribed.module

    But none of them are not visible in modules list.

    Can point me any fix for this if pre 5.0 modules are not suuported on 5.x servers.

    Thanks

    looking for Help writing module that can replace tools like RoboHelp etc'

    Hello,

    I am in the initial stage of designing my company community site. We will offer an on-demand project management application that the community site will be its knowledge center and help. I am looking for a module in Drupal 5.x that can help my technical writer to write the needed help pages (like RoboHelp) and create the needed tags and links (also Taxonomy).

    Your help and ideas are appreciated.
    Nir

    Pages

    Subscribe with RSS Subscribe to RSS - Module development and code questions