How? Someone please help

kahenya - April 11, 2007 - 14:27
Project:Tagadelic
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:closed
Description

Ok, probably i'm just daft, but its been 2 days. I cant get tagadelic to work. I have tagged everything, all content and earlier yesterday, I saw 2 terms appear. I though problem close to solved, but now, I have no tags, tagadelic is installed, apparently ok, but i cant get it to work. All new content does not get tagged, all new containers, categories, nothing gets tagged.

Might be useful, but when i got the tags yesterday, I was using the snippet indicated below. It worked but for like two seconds and stopped working. Any help, highly appreciated.

<?php
class tag
{
    var
$name = "";
    var
$count = 0;
    var
$tid = 0;

    function
getCount()
    {
        return
$this->count;
    }
    function
getName()
    {
        return
$this->name;
    }
    function
setCount($var)
    {
       
$this->count = $var;
    }
    function
setName($var)
    {
       
$this->name = $var;
    }
    function
setTID($var)
    {
       
$this->tid = $var;
    }
    function
getTID()
    {
        return
$this->tid;
    }

}
$count = 0; // Overall count of used tags
$threshold = 1; // How many tags are needed to get displayed
$font_size = 0.8;
$query = "SELECT d.name,d.tid FROM {term_data} d, {term_node} dn WHERE dn.tid=d.tid;";
$result = db_query($query);
$tags['Test'] = 0;
while(
$node = db_fetch_array($result))
{
    if (
$tags[$node['name']] == NULL)
    {
       
$tags[$node['name']] = new tag();
       
$tags[$node['name']]->setName($node['name']);
       
$tags[$node['name']]->setCount(1);
       
$tags[$node['name']]->setTID($node['tid']);
       
$count = $count + 1;
    }
    else
    {
       
$tags[$node['name']]->setCount(
           
$tags[$node['name']]->getCount() + 1
       
);
       
$count = $count + 1;
    }
}
foreach(
$tags as $tag)
{
   
$mycount = $tag->count;
    if(
$mycount > $threshold)
    {
        
$fraction = ((int)(($mycount / $count) * 1000)) / 100;
        if(
$fraction < $font_size)
        {
           
$fraction = $font_size;
        }
        echo
'<span style="font-size: ' . $fraction . 'em;">' . l($tag->name,'taxonomy/term/' . $tag->tid,array('title' => $tag->count . ' Nodes')) . '</span> ';
    }
}
?>

#1

Bèr Kessels - April 11, 2007 - 14:49

your snippet has nothing to do with tagadelic

#2

kahenya - April 11, 2007 - 14:55

Ok. Thats fine.

But, tagadelic installed does not work. I cannot see any clouds. I have tried everything, and nope, no tags. I am beginning to wonder if my meta tag system is damaged. The only time tags work is when i get tags on a specific node. Across the site, nada.

Appreciated.

#3

kahenya - April 11, 2007 - 14:59

When you hit the link for more www.domain.tld/tagadelic/chunk/, you get a page not found. Modules are empty.

#4

kahenya - April 11, 2007 - 19:47
Title:How?» How? Someone please help
Priority:normal» critical

Hi,

Its my third day and I cant get tagadelic to work. Ive tried everything short of exorcising my site, and still nothing. And unfortunately, there does not seem to be any documentation.

The bad way to approach this would be to ask if there is an alternative, but I dont want to use anything else, especially after 48 hours of solid tinkering with tagadelic.

Just a couple of questions.

First i discovered that the installation was in the wrong place. No-one indicated that i had to out it somewhere else like sites/defaults/modules or sites/all/modules

Switched that and got it installed it and its running. Great. But no tags. I have configured, reset to defaults, built up a whole new line if vocab and free tagging and all that, and the thing wont work. I'm obviously missing something. The blocks come up empty but when you click on the more link, it shows 1 tag. I have about 20 more tags that wont show.

Someone tell me, what am I missing here?

#5

kahenya - April 13, 2007 - 23:05
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.