4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: ch€ri{Bi}² on March 06, 2007, 11:22:02 PM

Title: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: ch€ri{Bi}² on March 06, 2007, 11:22:02 PM
hi all,

this is a version of the tag clouds  8) for 4images...
this little mod display a cloud of keyword (see here (http://www.4homepages.de/forum/index.php?topic=16812.msg94128#msg94128) for categories), sort by quantity (the more the keyword is used in the gallery, bigger will be the font).
 :!: only real keywords : i mean no keywords from name or description
you can see a demo on my site.

first : backup your files and

STEP1 : open includes/page_header.php
and add at the very end before ?>:
Code: [Select]
$site_template->register_vars(array(
  "lang_keyword" => $lang['keywords'], //---[/[MOD] Tag Clouds]
  "show_tag_clouds" => get_tag_clouds() //---[/[MOD] Tag Clouds]
));

STEP2 : open includes/functions.php
and add at the very end before ?>:
Code: [Select]
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
global $site_db, $lang, $site_sess, $mode;
$output = "";
   
  $sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
  FROM ".WORDLIST_TABLE." i
LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
WHERE keys_match > 0
  GROUP BY i.word_text
  ORDER BY  RAND()
LIMIT 20";

  $result = $site_db->query($sql);
  while ($row = $site_db->fetch_array($result)) {
    $tags[$row['word_text']] = $row['quantity'];
  }
 
  //uncommentnext line to sort the tag array in reverse order (+ => -)
   //arsort($tags);   
        $max_size = 250; // max font size in %
        $min_size = 50; // min font size in %
       
        // largest and smallest array values
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));
       
        // find the range of values
        $spread = $max_qty - $min_qty;
        if ($spread == 0) { // we don't want to divide by zero
                $spread = 1;
        }
       
        // set the font-size increment
        $step = ($max_size - $min_size) / ($spread);
       
        // loop through the tag array
        foreach ($tags as $key => $value) {
                // calculate font-size
                // find the $value in excess of $min_qty
                // multiply by the font-size increment ($size)
                // and add the $min_size set above
                $size = round($min_size + (($value - $min_qty) * $step));
       
                $output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');font-family:Verdana, Arial, Helvetica, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</a> ';
        }

 
  return $output;
}
//---[/[MOD] Tag Cloud]
read the comments and change some setting and styles to fit your needs  :wink:

last step , open main.php in your language dir and add at the end:
Code: [Select]
$lang['tagged_with'] = "image(s) with tag: ";

now add the 2 tags {lang_keyword} and {show_tag_clouds}  anywhere in you template.

PS: for all the users who love statistics, the cloud tag can take other parameters than mine... just found the query and change it in function.php
 :idea:  :arrow: see here (http://www.4homepages.de/forum/index.php?topic=16812.msg94128#msg94128) to find how to do this tag cloud with categories
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: mawenzi on March 07, 2007, 12:58:14 AM
... Excellent MOD ...  :D
... it works perfect ... thanks ch€ri{Bi}² ...
... moved to Mods & Plugins (Releases & Support)
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: Loda on March 07, 2007, 09:55:15 AM
nice mod!
thank you very much!
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: manurom on March 07, 2007, 10:41:00 AM
Joli coup, messire ch€ri{Bi}² !
Adopté d'office. Mille mercis.
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: BartAfterDark on March 07, 2007, 11:35:47 AM
It works ;-) Looks really nice.
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: drastx on March 07, 2007, 02:32:19 PM
Yeah, this mod is looking good, and working really good :)
Thx for this mod!
I see that, the colors are random, how can i change them to light colors?
I have a dark site, and dark (for ex. brown) colors are barely visible...

Thx for teh mod! :)
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: mawenzi on March 07, 2007, 03:07:00 PM
@ drastx

... for light colors change the rgb color code ...
... change all "0" to e.g. "100" ... or try another value ...
Code: [Select]
color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: kai on March 07, 2007, 06:25:01 PM
Great work!
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: baseline on March 07, 2007, 11:55:00 PM
Super Job!

hier ein beispiel wie man es einsetzten kann (auf unserem testsystem)

http://newshuttle.pictureshuttle.com/ (http://newshuttle.pictureshuttle.com/)

gruss sascha
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: killrobot on March 08, 2007, 01:00:25 AM
I always get these errors when trying to install this mod?

[07-Mar-2007 17:02:40] PHP Parse error:  syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/includes/functions.php on line 1725
[07-Mar-2007 17:24:45] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /Applications/MAMP/htdocs/includes/page_header.php on line 373

Any suggestions?  It looks really cool and I'd really like to get it working  :D
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: killrobot on March 08, 2007, 01:52:56 AM
nevermind, i got it working!
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: FunnyUser on March 09, 2007, 01:20:50 AM
I thank you so much! I've been looking ages for this [MOD] !
It works perfectly with my 4images Version: 1.7.4 .


Thanks a lot!

FunnyUser
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: om6acw on March 09, 2007, 03:02:21 AM
Great mod ch€ri{Bi}², thanks !!!
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: Murat on March 12, 2007, 02:43:20 PM
hello all. thanks for nice mod :)

But turkish
Code: [Select]
ü, Ü, ö, Ö, i, İ letter,
wrong display: ue
example: ueniversitesi  to üniversitesi
example: koy to köy
example: irmak to ırmak
how to fix.?
my gallery charset: iso-8859-9 turkish
db collation : latin1-swedish

demo gallery
 (http://www.lavinya.net/galeri/)

more info turkish letters
http://en.wikipedia.org/wiki/Turkish_alphabet
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: rinaldos on March 13, 2007, 10:56:44 AM
Hello ch€ri{Bi}²

This is a wonderfull MOD. And with Mawenzi's Tip not so colorfull :-) Great work.

Thanks a lot...

Ingo
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: ccsakuweb on March 13, 2007, 08:31:23 PM
great mod ^^thanks a lot
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: CeJay on March 13, 2007, 08:35:40 PM
excellent and simple to add!
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: ch€ri{Bi}² on March 14, 2007, 02:11:27 AM
But turkish
Code: [Select]
ü, Ü, ö, Ö, i, İ letter,
wrong display: ue
example: ueniversitesi  to üniversitesi
example: koy to köy
hi
your problem is not related to this mod...
but try his code to replace accentuated or special characters in some text :
Code: [Select]
function clean_text($text)
    {
     $clean_text= strtr($text,
   "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ",
   "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn");

     return $clean_text;
    }
you can add some new character...
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: Murat on March 14, 2007, 04:11:37 PM
hmmm thanks ch€ri{Bi}²
Title: Big problem in implementing this mod !!
Post by: as12qw on April 05, 2007, 07:49:16 AM
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757
Title: Re: Big problem in implementing this mod !!
Post by: waleed on April 05, 2007, 12:53:56 PM
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757


same here
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: ch€ri{Bi}² on April 16, 2007, 04:52:51 PM
for all the errors, check this part of the code in functions.php after the first sql query:
Code: [Select]
while ($row = $site_db->fetch_array($result)) {
    $tags[$row['word_text']] = $row['quantity'];
  }

 :?:  can you say it returns an array? 

afer the last code, insert this (for debug):
Quote
print_r($tags);
it will show you if $tags is an array or not...

 :arrow: because all the code is based on the query result... so if there is no result or if the query fails... it will show noting...
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: jrey on April 24, 2007, 12:17:58 AM
Is possible to change the mod for show any basic info of the image instead of the keywords ?. I wanna show in the cloud the image name, author, description....
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: SN1P3R on April 26, 2007, 10:35:37 AM
But turkish
Code: [Select]
ü, Ü, ö, Ö, i, İ letter,
wrong display: ue
example: ueniversitesi  to üniversitesi
example: koy to köy
hi
your problem is not related to this mod...
but try his code to replace accentuated or special characters in some text :
Code: [Select]
function clean_text($text)
    {
     $clean_text= strtr($text,
   "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ",
   "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn");

     return $clean_text;
    }
you can add some new character...

where i must add this code ?
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: ch€ri{Bi}² on April 26, 2007, 12:13:29 PM
place the code in functions.php
and after this, you can apply it on any text (let's say $some_text is your text with special characters)  by using :
Code: [Select]
$some_text = clean_text($some_text);
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: lemccoy on May 01, 2007, 03:12:54 AM
this is a great mod and fairly simple too!
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: SoftDux on May 05, 2007, 03:56:36 PM
Can this mod be used to automatically categorise images?

Let's say I have a category called "cars", and the user is uploading the photo, and he chooses "cars" from say a dropdown, or something, can it automatically be put in the correct category?
Title: Re: [MOD] Tag cloud (or category cloud in web2.0)
Post by: ch€ri{Bi}² on May 31, 2007, 11:59:52 AM
hi,

this is a little modification : it shows a cloud of your categories (random categories by hits).

in the original mod (http://www.4homepages.de/forum/index.php?topic=16812.msg89877#msg89877) , in STEP2, replace the code in functions.php by this one :

Code: [Select]
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {

  global $site_db, $site_sess, $lang;
 
  $output = "";
 
  $max_to_show = 10 // max items to display
 
  $max_size = 300; // max font size in %
  $min_size = 70; // min font size in %
 
  $max_qty = 0;
  $min_qty = 0;
 
  $sql = "SELECT cat_id, cat_name, cat_hits
          FROM ".CATEGORIES_TABLE."
          ORDER BY RAND()";
  $result = $site_db->query($sql);
 
  while ($row = $site_db->fetch_array($result)) {
    $tags_hits[$row['cat_id']] = $row['cat_hits'];
$tags[$row['cat_id']] = $row['cat_name'];
  }
 
  $max_qty = max(array_values($tags_hits));
  $min_qty = min(array_values($tags_hits));
 
  // find the range of values
  $spread = $max_qty - $min_qty;
  if ($spread == 0) { // we don't want to divide by zero
  $spread = 1;
  }
       
  // set the font-size increment
  $step = ($max_size - $min_size) / ($spread);
  $i = 0;
  foreach ($tags as $key => $value) {
  if ((check_permission("auth_viewcat", $key)) && $i < $max_to_show)  {
                // calculate font-size
                // find the $value in excess of $min_qty
                // multiply by the font-size increment ($size)
                // and add the $min_size set above
                $size = round($min_size + (($tags_hits[$key] - $min_qty) * $step));
        $css_color =  'rgb('.mt_rand(64,128).', '.mt_rand(64,128).', '.mt_rand(0,255).')';
                $output .= '&nbsp;<a href="'.$site_sess->url(ROOT_PATH."categories.php?cat_id=".$key).'" style="font-size:'.$size.'%;color:'.$css_color.';font-family:Arial, sans-serif;" title="'.$lang['category'].' '.$value.' / Hits: '.$tags_hits[$key].' ">'.$value.'</a>&nbsp;';

$i++;
}
  }

  return $output;
}
//---[/[MOD] Tag Cloud]

that's all folks !  :wink:

 :idea: and now... for all those who asked (or will ask) how to show this  and how to show that :

take the sql part of the code:
Quote

$sql = "SELECT cat_id, cat_name, cat_hits
          FROM ".CATEGORIES_TABLE."
          ORDER BY RAND()";
  $result = $site_db->query($sql);
 
  while ($row = $site_db->fetch_array($result)) {
    $tags_hits[$row['cat_id']] = $row['cat_hits'];
   $tags[$row['cat_id']] = $row['cat_name'];
  }


and change the part in red to display the id/name/hits you want  and don't forget to change the link   :wink:
Title: Re: [MOD] Tag cloud (or keyword cloud in web2.0)
Post by: k1lljoy on June 12, 2007, 12:18:51 AM
place the code in functions.php
and after this, you can apply it on any text (let's say $some_text is your text with special characters)  by using :
Code: [Select]
$some_text = clean_text($some_text);
what does that mean - apply? How can I parse all those previously entered keywords?
In Russian it also spoils several characters, changing it to "ue"  :?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 12, 2007, 01:10:00 PM
I think that the problem is inside this mod, because in details page all those keyword are displayed properly, without those "ue"  :(

And the links in detais page look like:
/search.htm?search_keywords=%D5%E0%F0%FC%EA%EE%E2
and not:
/search.htm?search_keywords=Харueков
like in output of your MOD.
 :|

Is it possible to parse it likewise the details page do? With corerect symbols etc  :?:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: ch€ri{Bi}² on June 12, 2007, 02:53:19 PM
Is it possible to parse it likewise the details page do? With corerect symbols etc  :?:

try this (i can not test it because i don't have problems with the characters or symbols)
in the original mod (http://www.4homepages.de/forum/index.php?topic=16812.msg89877#msg89877), find this code in functions.php:
Code: [Select]
$output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(64,128).', '.mt_rand(64,128).', '.mt_rand(0,255).');font-family:Arial, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</a> ';
and replace it by this one :
Code: [Select]
$output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($key).((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(64,128).', '.mt_rand(64,128).', '.mt_rand(0,255).');font-family:Arial, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.format_text($key, 2).'">'.format_text($key, 2).'</a> ';
 :arrow: Tell me if it works !
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 12, 2007, 03:20:31 PM
:arrow: Tell me if it works !
Thanx for trying to help, but after thanging this line the problem didn`t disappear...  :cry:
I still see "пueяниoeы" instead of "пЬяниЦы"  :(
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: ch€ri{Bi}² on June 12, 2007, 03:37:56 PM
/search.htm?search_keywords=Харueков
like in output of your MOD.

do you use a mod to show the link? because i did not use search.htm in this mod  :?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 12, 2007, 04:35:51 PM
/search.htm?search_keywords=Харueков
like in output of your MOD.

do you use a mod to show the link? because i did not use search.htm in this mod  :?
I have this mod installed: http://www.4homepages.de/forum/index.php?topic=6613.0
It just changes search.php into search.htm in this particular case and obviously doesn`t have any effect on this problem  :)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 12, 2007, 04:42:17 PM
After the last Your change in the code the URLs look like: /search.htm?search_keywords=%D3%EB%E8oe%E0
but none the less those wrong symbols remain there: oe, ae, ue...  :(
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: ch€ri{Bi}² on June 13, 2007, 10:37:08 AM
we can sort (alphabetical sequence) the tags to a-z or z-a?

you can do this in functions.php.

 :arrow: find & modify the second line in the code below  to sort the tags in reverse alphabetical order (z-a):
Quote
//uncommentnext line to sort the tag array in reverse order (+ => -)
   //arsort($tags);

 :!: or to sort the tags in alphabetical order (a-z)  modify the second line with this code : asort($tags);

 :wink:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 13, 2007, 04:22:27 PM
I`ve noticed only these cyrillic symbols are replaced by those annoying "ae", "oe", "ue":

In my case these are Russian: ц, д, ч, ь, Ъ, ы, я.

Maybe someone have any ideas?  :cry:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: ch€ri{Bi}² on June 13, 2007, 10:41:41 PM
but this asort (tag) does not run  :!:
the tags is not sortet

oh sorry! my last response shows how to sort the keywords from the less to the more...

 :arrow:  if you want to get the real alphabetical order, change this in the sql query : find ORDER BY  RAND() and replace it by ORDER BY  i.word_text ASC ( => a-z).
Same thing with ORDER BY  i.word_text DESC ( => z-a)



2) when the wordmatch and wordlist table ist empty/clear
comes follow error messages
these warning messages are normal : see the end of this reply (http://www.4homepages.de/forum/index.php?topic=16812.msg91809#msg91809)...
 why do you want to make a cloud tag with keywords if there is no keyword on your gallery?  :?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 16, 2007, 04:26:39 AM
Any solutions for non-latin symbols bug?  :(
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 20, 2007, 12:02:47 PM
It seems to me there`s no any  :|
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Lucifix on June 28, 2007, 09:26:59 AM
Hi,

great mode but I have one small problem... in my tags you can find so many insult words :)

Do you know how can I censored them?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: desperate_housewif on June 28, 2007, 07:20:27 PM
Schöner Mod. Mir ist aber aufgefallen, das mir falsche Werte angezeigt werden, wenn ich mit der Mause über die Schlüsselworte gehe. Es wird mit z.B. angezeigt 1 Bild, sind dann aber, wenn ich auf das Schlüsselwort klicke 3 Bilder. Kommt zu 80 % zahlenmäßig nicht hin. Woran liegt das?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Martin2006-B-2 on July 01, 2007, 05:30:17 PM
Great Mod! Thanks!
Title: Re: Big problem in implementing this mod !!
Post by: Jacob on July 31, 2007, 09:30:39 AM
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757


same here
Same errors for me... :(:(
i really need this mod.. any sol for this??
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 01:14:38 PM
Does not seem to be general prob. What is your PHP, mySQL, 4images version ? May be not compatible for PHP 5 ...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 03:51:10 PM
Does not seem to be general prob. What is your PHP, mySQL, 4images version ? May be not compatible for PHP 5 ...
I am using PHP Version 4.4.7  :roll:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 04:05:19 PM
What is your 4images version ?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 04:06:27 PM
Its v1.7.4 :)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 04:08:39 PM
Ok so from includes/functions.php file, post from line: 1740 to 1760.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 04:36:52 PM
thunderstrike, for me error is from line 1856 - 1869 and the error is:
Code: [Select]
Warning: array_values() [function.array-values]: The argument should be an array in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1856

Warning: Wrong parameter count for max() in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1856

Warning: array_values() [function.array-values]: The argument should be an array in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1857

Warning: Wrong parameter count for min() in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1857

Warning: Invalid argument supplied for foreach() in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1869



So below is the code from my functions.php from line 1850-1870
Code: [Select]
  //uncommentnext line to sort the tag array in reverse order (+ => -)
   //arsort($tags);   
        $max_size = 250; // max font size in %
        $min_size = 50; // min font size in %
       
        // largest and smallest array values
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));
       
        // find the range of values
        $spread = $max_qty - $min_qty;
        if ($spread == 0) { // we don't want to divide by zero
                $spread = 1;
        }
       
        // set the font-size increment
        $step = ($max_size - $min_size) / ($spread);
       
        // loop through the tag array
        foreach ($tags as $key => $value) {
                // calculate font-size

Thanks a lot for your kind help thunderstrike  :D
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 04:56:20 PM
There almost no validations on there ... no wonder lots of errors.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 07:11:24 PM
There almost no validations on there ... no wonder lots of errors.
So, i think .. this mod is not for me  :x
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 07:27:04 PM
Did tried the modification here:

http://www.4homepages.de/forum/index.php?topic=16812.msg94128#msg94128

?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 07:49:17 PM
Just tried and now its just show this error. nothing else:
Code: [Select]
Parse error: syntax error, unexpected T_VARIABLE in /home/xxxxx/public_html/xxxxxx/includes/functions.php on line 1841
and in functions.php on line 1841 is:
Code: [Select]
$max_size = 300; // max font size in %
Here's the code from 1840-1845
Code: [Select]


  $max_size = 300; // max font size in %
  $min_size = 70; // min font size in %
 
  $max_qty = 0;
  $min_qty = 0;

Thanks thunderstrike for your help and suggestions  :)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 07:50:59 PM
Error line seem to report wrong. Please post attachment file of functions.php file. Will look.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 08:09:49 PM
check your PM thunderstrike
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 08:16:43 PM
Done.

Quote
$max_to_show = 10 // max items to display

replace into:

Quote
$max_to_show = 10; // max items to display

;)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 08:27:21 PM
Working now :D:D

Can you please modify the main code (on page 1) also ??

Thanks for your great help :D
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on July 31, 2007, 08:34:55 PM
I cannot. I am user. Not moderator (or created this MOD). Happy knowing it works for you. 8)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Jacob on July 31, 2007, 08:41:49 PM
I cannot. I am user. Not moderator (or created this MOD). Happy knowing it works for you. 8)
na na.. i was just saying if you can please check the code on first page also, as i mentioned back its also not working for me. I am not asking to modify the post!
 
(frankly i also wana try the keywords based tag cloud once.)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: malpa on August 03, 2007, 09:51:32 PM
Please, help with Russian alphabet.

Nice MOD (!), but Russians cant work with it because of bad encording of 7 letters of Russian alphabet. The same problems have many webmasters from other countries with non-Latin alphabet.

Thanx in advance.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: thunderstrike on August 03, 2007, 10:01:13 PM
I no Russian but ... which Russian chars it show and which one you wish to see in place (for correction) ?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: malpa on August 12, 2007, 02:48:54 PM
I`ve noticed only these cyrillic (Russian) symbols are replaced by those annoying "ae", "oe", "ue" English double letters:

ц, д, ч, ь, Ъ, ы, я.

So, this 4homepages MOD can't work with these Russian letters :-(
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: fast on August 12, 2007, 04:21:36 PM
hi guys...

great mod!

i installed it and i noticed that my site slowed down. really down. when it loaded a new site, it took me 2 sec. i uninstalled the mod again and everything was fast like before.

anyone else noticed this? or is the problem just on my site?


Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: SonnyB on August 19, 2007, 05:49:56 PM
This is a great mod! Thx!

I installed it, but I experience a strange problem.

Everytime I reload the page, the tags get completely changed. So it seems he randomly pulls keywords from the database.

Can anyone help me.

Here you can see the problem: http://photoforum.istria.info (just press F5 and see what happens). Thx!
Title: Re: Big problem in implementing this mod !!
Post by: thehammer on October 12, 2007, 03:19:30 PM
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757


same here
Same errors for me... :(:(
i really need this mod.. any sol for this??


if you remove the instruction : "WHERE keys_match > 0" it run ;)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sun Zaza on October 23, 2007, 04:54:42 PM
Hello,

It would be very nice if we can put the tag cloud on an custum page (cloud.html/php) with all the keywords.
I mean on the main page you have for example 10 keywords and next you have a link (More tag cloud?) to to CLOUD.PHP).

Can someone realize this MOD?

Many thanks in advance,
Cruxy
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: mawenzi on October 23, 2007, 06:56:56 PM
Can someone realize this MOD?

... yes ...
... here (http://klick.kl.funpic.de/keyword_cloud.php) my test version ...
... I will post the code of this version ...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sun Zaza on October 23, 2007, 08:07:48 PM
Waaw! great work mawenzi. I can not wait!

Please do not let us wait long. :wink:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: mawenzi on October 24, 2007, 12:30:07 AM
... the [MOD] Keyword Tag Cloud (on custom page) is now available ... !
... here ... http://www.4homepages.de/forum/index.php?topic=19157.0 ...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sun Zaza on October 24, 2007, 10:47:12 AM
professional work mawenzi! Respect :wink:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: glitzer on October 26, 2007, 10:18:43 AM
hi,
where can i change the table with of the tags?

When i make a table and put in the variables {lang_keyword} and {show_tag_clouds} , i can not fixed a width.

the box for the tag cloud shoudn´t be wider than 130px.

thanks for helping
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: osnapicture on December 11, 2007, 01:02:21 PM
kann mir jemand sagen was ich im code ändern muss um alle tags in der gleichen definierbaren farbe zu haben?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: mawenzi on December 11, 2007, 01:42:29 PM
@osnapicture
... bereits beschrieben ... hier ...
... http://www.4homepages.de/forum/index.php?topic=16812.msg89898#msg89898
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: osnapicture on December 11, 2007, 01:58:27 PM
@mawenzi: ja, das hatte ich schon probiert. das hilft mir aber nicht. damit verändert sich nur die allgemeine tonlage. ich möchte aber alle tags in einem hellen grau haben. kann man nicht irgendwo den genauen farbwert hinschreiben, der für alle tags gelten soll?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: mawenzi on December 11, 2007, 02:08:52 PM
@osnapicture
... dann hast du offensichtlich nicht richtig probiert ... denn es hilft doch ... ;)
... du wünscht für alle Tags ein helles Grau ... z.B. ... HTML : C2C2C2 ... entspricht RGB : 0,0,194 ...
... dann müsste deine Codezeile so aussehen ...
Code: [Select]
color:rgb('.mt_rand(0, 0).', '.mt_rand(0, 0).', '.mt_rand(194, 194).');
... oder gleich einfacher, da du keine Zufallsfarben mehr wünscht ...
Code: [Select]
color:rgb(0, 0, 194);
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: osnapicture on December 11, 2007, 02:34:32 PM
oh danke, das hilft  :)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: jojomart on December 12, 2007, 04:32:48 PM
I love this mod - it's so pretty  :mrgreen:

Joanne
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Lucifix on December 13, 2007, 07:50:48 AM
Hi,

great mode but I have one small problem... in my tags you can find so many insult words :)

Do you know how can I censored them?

Am I the only one with this problem?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: mawenzi on December 13, 2007, 10:42:26 PM
Hi Lucifix,

... not tested, but try this ...

1. in ACP -> General -> Comment settings ... edit your badword list with the "insult words" ...

2. in ACP -> General -> Comment settings -> Characters to replace badwords ... delete " * " ... so there is nothing in this field ...

3. in includes/functions.php find ...
Code: [Select]
      $keywords .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val, 2)."</a>";
... and replace by ...
Code: [Select]
      $keywords .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val, 1, 0, 1)."</a>";
... so the "insult words" as keywords and in the description will not shown on your details pages ...

3. in [MOD] Tag cloud code find ...
Code: [Select]
foreach ($tags as $key => $value) {
... and replace by ...
Code: [Select]
$tags = format_text($tags, 1, 0, 1);
foreach ($tags as $key => $value) {

... I hope this will work ... ;)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Lucifix on December 14, 2007, 07:48:57 AM
Sadly it doesn't, looks like there is a problem with code (below) because of it doesn't show anything:

Code: [Select]
$tags = format_text($tags, 1, 0, 1);
foreach ($tags as $key => $value) {
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Lucifix on December 14, 2007, 08:09:55 AM
I don't know but doesn't this solve the problem:

after:
Code: [Select]
foreach ($tags as $key => $value) {
add:
Code: [Select]
$key2 = replace_badwords($key);
and within $output replace
Code: [Select]
'.$key.'
with
Code: [Select]
'.$key2.'
 :roll:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: skiemor on January 11, 2008, 07:29:46 AM
very nice MOD, thank you!! ;-)

In action: http://www.birdgallery.eu/statistics.php (http://www.birdgallery.eu/statistics.php)

But how to get it in english, if user choose english language on home.html.
I can put an extra {lang_select} in statistics.html, but must be work without this too?

Or: How to translate German: "Statistik" to English: "Statistics" in user_logininfo and in user loginform?

Chris.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: www.katzen.ag on January 27, 2008, 10:59:48 PM
Suuuper!!! Einfach und gut!
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: ProDez on March 12, 2008, 12:00:20 PM
Very GREAT MOD !!!
Thank you very much !!!

ProDez
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: maylord on March 16, 2008, 08:41:38 AM
Hallo,

der Einbau klappte perfekt, aber immer wenn ich irgendwas über die search.php öffne, zeigt er mir eine komische Fehlermeldung. Kann mir da einer helfen?!

Notice: Undefined index: tagged_with in /var/www/xxxxxxxx/bilder/includes/functions.php on line 1776

EDIT: Hab es hinbekommen. hatte das Sprachpaket nicht komplett!!! *schäm*

Habe aber ne andere Frage: Wie schaffe ich es, auf einer neuen Seite ALLE Tags anzeigen zu lassen? Also auch in versch. Grössen und Farben; aber eben ALLE Tags der Galerie...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Yux on April 18, 2008, 06:49:14 PM
I did everything of the first post but don't show the tags
Don't show anything
Can you help me
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: k1lljoy on June 09, 2008, 01:49:14 PM
I`ve noticed only these cyrillic symbols are replaced by those annoying "ae", "oe", "ue":

In my case these are Russian: ц, д, ч, ь, Ъ, ы, я.

Maybe someone have any ideas?  :cry:

A year passed - maybe any solution appeared?
I cant believe nobody using russian language uses this MOD so far...  :(
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Daniel on July 11, 2008, 08:26:13 AM
Läuft Prpblemlos unter 1.7.6.
Nice and Thanks! Great MOD
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Ahm@d on July 23, 2008, 06:57:15 AM
i have a problem with this mod on some Arabic letters

can anyone help me ?  :(
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Ahm@d on July 30, 2008, 12:03:25 AM
 :cry: any help !!
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: V@no on July 30, 2008, 01:45:38 AM
a little tip: describe the problem and if possible provide a screenshot ;)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Ahm@d on August 01, 2008, 07:49:11 AM
 8) the problem is that some Arabic letters are shown in the tags as a latin letters which is not right  :cry: ..

could u tell me how can i fix it ..

or just tell me from which file ?

here is a screenshot  :mrgreen:

thank's alot
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: V@no on August 01, 2008, 03:00:25 PM
in includes/search_utils.php find:
Code: [Select]
function convert_special($text) {Insert below:
Code: [Select]
return $text;It wont fix the problem right the way, because the latin letter in your keywords are already saved into the database, so you'll need manually edit database and fix these keywords (if you manually add keywords to each image, you can edit image and fix keywords there).


P.S.
I can't guaranty that it will work properly, but you also can try this before you manually edit database:
in includes/functions.php find:
Code: [Select]
function get_tag_clouds() {Insert above:
Code: [Select]
function _convert_special($text) {
  return strtr(
    $text,
    array(
      "AE" => "Ä",
      "OE" => "Ö",
      "UE" => "Ü",
      "ae" => "ä",
      "oe" => "ö",
      "ue" => "ü",
      "ss" => "ß"
    )
  );
}


find:
Code: [Select]
    $tags[$row['word_text']] = $row['quantity'];Insert above:
Code: [Select]
$row['word_text'] = _convert_special($row['word_text']);
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Ahm@d on August 01, 2008, 09:39:03 PM
 :D thank's alot V@no i have try it and it work,

thank u very much ..
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Omsky on August 06, 2008, 12:23:13 PM
nice mod, thnk
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: wallp.ape.rs on October 10, 2008, 10:28:50 AM
hello all,

1st at all: THANK YOU for this wonderfull gallery software!

2nd: my question to this MOD:
i'm using name_match instead of keys_match in the cloud query
is it possible only to show words with chars from a-z and A-Z, without the numbers?
means tag clouds like wallpaper should be show, clouds like 0012 or wallpaper58 should be excluded.

thank you in advance!

wallp.ape.rs freak :)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: V@no on October 10, 2008, 03:08:02 PM
Hello and welcome to 4images forum.

in includes/functions.php find:
    $tags[$row['word_text']] = $row['quantity'];


Insert ABOVE:
    if (preg_match("#[^a-zA-Z]#", $row['word_text'])) continue;
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: wallp.ape.rs on October 11, 2008, 12:33:30 AM
Hello V@no thank you for your answer!
nope that will not work like i wanted.
with preg_match "number" tags will be hidden. means from mysql query with example limit 20, 16 tags will be visible on the site

i found something else for mysql query to exclude "number" tags:.
Code: [Select]
WHERE name_match > 0 AND i.word_text REGEXP '[a-zA-Z]'
and it works up to 99,99% like i wanted.
i see still 330i or M3 but no matter, due this are BMW "words" ;)

Thank you again!
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: V@no on October 11, 2008, 04:14:20 AM
Yes, you are right.
This should add 0.01% to your 99.99% ;)

Code: [Select]
WHERE keys_match > 0 AND i.word_text NOT REGEXP '[^a-zA-Z]'
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: wallp.ape.rs on October 17, 2008, 09:01:56 PM
hi V@no,

Nope it does not worked.
You dont have to search for solution. I like the way how it is work rightnow.
Thank you again for your time!
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: robertx on November 04, 2008, 09:37:40 AM
still have problems . I have installed select Language Mode (with different templates). The default works ok for this Mod . The problem is when switching to another . I have receive the follow

Notice: Undefined index: vote_between in /public_html/includes/functions.php on line 1006
Notice: Undefined index: vote_between in /public_html/includes/functions.php on line 1009
Notice: Undefined index: vote_between in /public_html/includes/functions.php on line 1048


on the top of page .

What could be the problem ? Thanks
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: V@no on November 04, 2008, 02:27:50 PM
The problem is absolutely not related to this mod, but to [Mod] Ajax Starrating for details + thumbs (http://www.4homepages.de/forum/index.php?topic=17829.0) instead.
Your language pack missing some language string(s) from step 8.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: robertx on November 05, 2008, 12:13:18 PM
The problem is absolutely not related to this mod, but to [Mod] Ajax Starrating for details + thumbs (http://www.4homepages.de/forum/index.php?topic=17829.0) instead.
Your language pack missing some language string(s) from step 8.

Thanks V@no . It's working .
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: FunnyUser on November 28, 2008, 08:15:53 AM
Nice MOD but i've got a little prob:

the mod is working great so far but i want to include it in my "user_box" (user_loginform.html) and it doesn't work.
So its just shown no tags.


Any idea?
Thanks a lot!
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: relu on December 22, 2008, 07:31:08 AM
I had this mood for a long time and i change the server because high server load...Finaly i disable it and all is normal. I had a few installed mods and my think was not on this mood...Maybee i had a lots of customization and was something there but until now everything is ok. The problem was lots of ulclosed query maybee i'm rong i'm not an expert but after remove it all was back to normal.  Is great mood anyways but i;m affraid to set it again. Thanks for all work from 4 images team. Great script.

Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: alemam on January 12, 2009, 05:33:01 PM
i m testink and i wiil back
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: relu on January 12, 2009, 11:05:10 PM
Please don't allow to much time for this because lately i have server load problems again and maybee the mood has just help to this load. Anyways after i remove it was ok fosr a time. I think the functions that count the images help this load but i don't want to say some stupid things. I will wait for a time and i think i will need the help to fix it on this forums. I think to reinstall it again and to get all moods step by step  to get that one with the problem.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Mimiru on January 12, 2009, 11:29:38 PM
Please don't allow to much time for this because lately i have server load problems again and maybee the mood has just help to this load.
I don't see a reason why this mod may make a high load... Other pages get more queries and more resources.
But I have only few thousands in keywords table... But very intensive to resources is a color search mod ;)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Shun on February 19, 2009, 06:04:42 PM
Hi

i hav a problem for this mod first i add dis mod it work good.  but after  for  turkish character problem  for example "ç ğ ş ü " i want to do it but  i couldn't and now i can't add  picture name turkish character and i can't search turkish character sentences how can ı do .?  sory for my bad english
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: V@no on February 20, 2009, 01:03:11 AM
Is this after you "tried" fix problem with turkish characters or after installing this mod? Can you confirm that without this mod you can search turkish characters?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Shun on February 20, 2009, 09:46:17 PM
First i set up this mod  i haven't got any problem for search turkisk  keywords. but in tag cloud keywords turkish character  like üniversite  doing  euniversite " ü --> eu "  after that saw this topic some people have same problem with me about character problem in tag cloud and some professional user's answer and i do it. after that all turkish keywords aren't search. and replay what i do. it couldn't.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: V@no on February 21, 2009, 12:26:01 AM
did you try this (http://www.4homepages.de/forum/index.php?topic=16812.msg121848#msg121848) code?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Shun on February 21, 2009, 08:19:20 AM
Yes Vano  after i try this mode site is broken. and i  change search_until php a new  search_until.php but not.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: kandr on February 21, 2009, 02:50:39 PM
Цифры убрал, от мода по поиска по цветам, только кирилицу выводить совсем не хочет флеш облако. Пустые ссылки крутятся... Что подправить, подскажите...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: AntiNSA on February 28, 2009, 01:02:17 PM
Is there any way to increase the number of keywords included in cloud? IT seems that its leaving out a lot of keywords,
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: AntiNSA2 on February 28, 2009, 03:54:55 PM
I understand you can adjust it in the code from the commented section, however Im not sure the exact syntax...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: nfdieter on March 02, 2009, 07:52:22 PM
Sehr Gutes Plugin,

eine Frage dazu:

Wie kann ich Tags mit Bindestrich (z.B. Lars-Ole) einfügen?
Oder z.B. kurze Sätze wie "gutes Foto" oder "Pony Momo", weil da wird der Tag ja wieder durch ein Leerzeichen getrennt....

Dieter
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: kandr on March 05, 2009, 06:28:17 PM
Как поставить фильтр на категории? Если доступ к категории закрыт, то кликнув по тэгу из облака, все равно туда попадешь?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: kandr on March 06, 2009, 11:50:06 AM
Why can not I make the tags to the names? Help please!

Code: [Select]
function get_tag_clouds() {

  global $site_db, $site_sess, $lang;
 
  $output = "";
 
  $max_to_show = 100; // max items to display
  $max_size = 300; // max font size in %
  $min_size = 70; // min font size in %
  $max_qty = 0;
  $min_qty = 0;
 
  $sql = "SELECT image_id, image_name
          FROM ".IMAGES_TABLE."
          ORDER BY RAND()";
 
  $result = $site_db->query($sql);
 
  while ($row = $site_db->fetch_array($result)) {
  $tags_hits[$row['image_id']] = $row['image_name'];
$tags[$row['image_id']] = $row['image_name'];
  }
 
  $max_qty = max(array_values($tags_hits));
  $min_qty = min(array_values($tags_hits));
 
  // find the range of values
  $spread = $max_qty - $min_qty;
  if ($spread == 0) { // we don't want to divide by zero
  $spread = 1;
  }
       
  // set the font-size increment
  $step = ($max_size - $min_size) / ($spread);
  $i = 0;
  foreach ($tags as $key => $value) {
  if ((check_permission("auth_viewcat", $key)) && $i < $max_to_show)  {
  // calculate font-size
  // find the $value in excess of $min_qty
  // multiply by the font-size increment ($size)
  // and add the $min_size set above
  $size = round($min_size + (($tags_hits[$key] - $min_qty) * $step));
$css_color =  'rgb('.mt_rand(64,128).', '.mt_rand(64,128).', '.mt_rand(0,255).')';
  $output .= '&nbsp;<a href="'.$site_sess->url(ROOT_PATH."details.php?image_id=".$key).'" >'.$value.'</a>&nbsp;';

$i++;
}
}

  return $output;
}
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: AntiNSA2 on March 06, 2009, 01:11:12 PM
Can someone please tell me clearly how to make sure this keyword cloud pulls keywords from all images in all categories, and where exactly I can set the limit ..... in plain exact terms with an example?


Right now it seems the keyword return is very limited and I would like to increase the number. Thanks....
Title: Re: Big problem in implementing this mod !!
Post by: whosthis.ee on April 23, 2009, 08:59:25 PM
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744

Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745

Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757


same here

Warning: array_values() [function.array-values]: The argument should be an array in E:\wamp\www\4images\includes\functions.php on line 1753

Warning: Wrong parameter count for max() in E:\wamp\www\4images\includes\functions.php on line 1753

Warning: array_values() [function.array-values]: The argument should be an array in E:\wamp\www\4images\includes\functions.php on line 1754

Warning: Wrong parameter count for min() in E:\wamp\www\4images\includes\functions.php on line 1754

Warning: Invalid argument supplied for foreach() in E:\wamp\www\4images\includes\functions.php on line 1766
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Lucifix on April 29, 2009, 10:42:03 AM
Just a short modification if you want to show popular tags from last week / months or year:

Modify STEP2 from:
Code: [Select]
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
global $site_db, $lang, $site_sess, $mode;
$output = "";
   
  $sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
  FROM ".WORDLIST_TABLE." i
LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
WHERE keys_match > 0
  GROUP BY i.word_text
  ORDER BY  RAND()
LIMIT 20";

  $result = $site_db->query($sql);
  while ($row = $site_db->fetch_array($result)) {
    $tags[$row['word_text']] = $row['quantity'];
  }
 
  //uncommentnext line to sort the tag array in reverse order (+ => -)
   //arsort($tags);   
        $max_size = 250; // max font size in %
        $min_size = 50; // min font size in %
       
        // largest and smallest array values
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));
       
        // find the range of values
        $spread = $max_qty - $min_qty;
        if ($spread == 0) { // we don't want to divide by zero
                $spread = 1;
        }
       
        // set the font-size increment
        $step = ($max_size - $min_size) / ($spread);
       
        // loop through the tag array
        foreach ($tags as $key => $value) {
                // calculate font-size
                // find the $value in excess of $min_qty
                // multiply by the font-size increment ($size)
                // and add the $min_size set above
                $size = round($min_size + (($value - $min_qty) * $step));
       
                $output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');font-family:Verdana, Arial, Helvetica, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</a> ';
        }

 
  return $output;
}
//---[/[MOD] Tag Cloud]

To:
Code: [Select]
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
global $site_db, $lang, $site_sess, $mode;
$output = "";
   
$sql = "SELECT w.word_id, w.word_text, c.image_id, i.image_date, COUNT( c.word_id ) AS quantity
FROM ".WORDLIST_TABLE." w
LEFT JOIN ".WORDMATCH_TABLE." c ON w.word_id = c.word_id
LEFT JOIN ".IMAGES_TABLE." i ON c.image_id = i.image_id
WHERE keys_match >0
AND i.image_date >= ".(time() - 60 * 60 * 24 * 7)." // 7 means 7 days, if you want to show popular tags from last months replace 7 with 30, for last year 365
GROUP BY w.word_text
ORDER BY quantity DESC
LIMIT 20";
  $result = $site_db->query($sql);
  while ($row = $site_db->fetch_array($result)) {
    $tags[$row['word_text']] = $row['quantity'];
  }
 
  //uncommentnext line to sort the tag array in reverse order (+ => -)
   //arsort($tags);   
        $max_size = 250; // max font size in %
        $min_size = 80; // min font size in %
       
        // largest and smallest array values
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));
       
        // find the range of values
        $spread = $max_qty - $min_qty;
        if ($spread == 0) { // we don't want to divide by zero
                $spread = 1;
        }
       
        // set the font-size increment
        $step = ($max_size - $min_size) / ($spread);
       
        // loop through the tag array
        foreach ($tags as $key => $value) {
                // calculate font-size
                // find the $value in excess of $min_qty
                // multiply by the font-size increment ($size)
                // and add the $min_size set above
                $size = round($min_size + (($value - $min_qty) * $step));
       
                $output .= '<a href="'.$site_sess->url(NUKE_PATH."search&search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');font-family:Verdana, Arial, Helvetica, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</a> ';
        }

 
  return $output;
}
//---[/[MOD] Tag Cloud]

Note:      AND i.image_date >= ".(time() - 60 * 60 * 24 * 7)." // 7 means 7 days, if you want to show popular tags from last months replace 7 with 30, for last year 365
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Nicky on April 29, 2009, 01:56:02 PM
hi Lucifix,

thank you for that.. but a little correction.. those are not popular tags.... ;)

this are the tags from pictures, as in your example, which are added last 7 days.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Lucifix on April 29, 2009, 02:13:00 PM
Hey Nicky!

Why not popular tags? :) Let say that in summer many users will tag their pictures with tags like: summer, beach, sea, sunny etc. This modification will show you tags within last week - and for me those are popular tags :)  :roll:

And of course you can interpreted this modification otherwise ;)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: jeanpier on April 30, 2009, 01:38:24 PM
Hi

Thank you for this great mod
but
as some other post (arabic, cyrillic) he don't work with utf8 data... for me is with french and chinese
after long time to try to understand :
this mod use the words of word_text from wordlist
this words are created by the function add_searchwords() and all this belonging functions as prepare_searchwords()

for example :
the word entrée (in utf8 in image_keywords from images ) :  displayed with iso encoding must be entrée
after transformation by add_searchwords()
the word entrée is corrupt (bad utf8 in word_text from wordlist) : displayed with iso encoding is entrã©e with utf8 entr�e

That means the add_searchwords() and all this belonging function as prepare_searchwords() don'work properly with utf8.

So i have find some solution to fixe it. (for example strtoupper($key) but this correct only few characters...)
But until now not enought to work in any situation especially with th search engine...have to find a global methode...
I continue to work by disable some function and make some analysis.

If somebody have more idees ??
Many thanks

Jean Pierre
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: AntiNSA2 on May 02, 2009, 04:39:58 AM
I have a problem when using this mod together with the search by color mod...  On the 200 word keyword page I am seing the color codes show up as key words in the cloud....

Since I can no longer find the search by color mod thread I am unsure what to do... Any help would be appreciated...

I just remembered if you ad this
Code: [Select]
AND c.colorsearch_colors_match = 0
to this
Code: [Select]
WHERE keys_match > 0
it fixes the problem in the flash keyword mod....

And it fixes the error with this page too... !
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: lceman on May 10, 2009, 10:50:49 PM
Ich dachte bisher ich sei für mein Alter ziemlich versiert was Webseiten angeht... Aber bei 4images hört es anscheinend auf  :(


Ich bekomme nicht mal so einen einfachen Mod wie diesen hier zum Laufen!


Oder liegt es an der neuen Version 1.7.6?? Wenn ja - woher bekomme ich die alten Versionen?



Grüße, Stefan


edit: kann mir vielleicht jemand die veränderten dateien hochladen? Am Besten das komplette "4images" mit allen Mods installiert - kaputt machen geht leichter als zu installieren  :oops:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Farina on May 30, 2009, 08:43:03 AM
This is my first try on 4images MOD ..view it http://jdmmod.com (http://jdmmod.com)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: praveen on June 07, 2009, 10:02:06 AM
Thank you for this nice mod.

is there a way, i could leave out some categories and not show them in the tag cloud?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: AntiNSA2 on June 14, 2009, 06:57:17 PM
For seo do this find

Code: [Select]
  $output .= '<a href="'.
replace  with

Code: [Select]
  $output .= '<a rel="nofollow" href="'.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: eddyman1us on July 03, 2009, 03:39:12 AM
can anybody confirm if its working with v1.7.7 I applied the code and also debug it
Code: [Select]
$max_to_show = 10 ;// max items to display but after adding the 2 tags {lang_keyword} and {show_tag_clouds} .

The field is blank and nothing is displayed , any suggestions ...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: hitrax on July 25, 2009, 12:02:17 PM
Hallo zusammen

Ich setzte diesen klasse Mod auf meiner Webseite ein und bin eigentlich auch sehr zufrieden damit.
Ich habe allerdings ein kleines Problem. Ein teil meiner Keywords sind in folgender Syntax geschrieben
[Orchis_militaris]. In der Detailpage werden die Keywords auch korrekt angezeigt.
In der Tag Cloud steht dann nur noch orchismilitaris.
Kann man das ändern das die Keywords in der Tag Cloud identisch angezeigt werden ?
Falls das hier schon irgendwo beantwortet worden sein sollte, bitte ich um Entschuldigung, mein English ist miserabel.

Helge
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: whosthis.ee on August 02, 2009, 10:36:46 PM
im using 1.7.6

the same is working fine

tks
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: dp on September 23, 2009, 05:40:08 PM
I'm using this MOD with v 1. 7. 7 on mobile server.  It works perfect!

Many thanks for the great work!

Dirk
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sun on September 28, 2009, 03:20:52 PM
in includes/search_utils.php find:
Code: [Select]
function convert_special($text) {Insert below:
Code: [Select]
return $text;It wont fix the problem right the way, because the latin letter in your keywords are already saved into the database, so you'll need manually edit database and fix these keywords (if you manually add keywords to each image, you can edit image and fix keywords there).

How i understand with this decision we said: didn't use function convert_special anywhere(not only in tag cloud). I am afraid that this functions used in some another places and if i didn't use it then i will have errors.
V@no, could you tell me what kind of operation to check? or you think that all will be work?


P.S.
I can't guaranty that it will work properly, but you also can try this before you manually edit database:
in includes/functions.php .....

This decision have one error: if i use English words for search, they will be changed too. For example, word "endless" will be "endleя"   
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: imberador on October 11, 2009, 07:36:18 PM
Hallo miteinander,

ich habe den Mod erfolgreich installiert und er funktioniert auch zu meiner Zufriedenheit. Nun habe ich leider festgestellt, dass in der Detailansicht {image_keywords} unter Schlüsselwörter die originären keywords nicht mehr angezeigt werden.

Das wäre aber wichtig, da nur diese keywords einen Zusammenhang zum Bild herstellen.

Gibt es da ein Lösung?

Viele Grüße

Habs gefunden:
Im Array für die Templates hat der Eintrag "image_keywords" => $keywords, gefehlt. Jetzt gehts.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: AKIN on November 11, 2009, 09:50:13 PM
User who enters your page "red books" tag page. Random tags within the page to remove it immediately instead of "red" like to see die tag table header labels with %red% red labels get out. Meaningless tags, different content labels will go boots.in this way, if you would be more useful. Root words associated with the labels, visit bots better.



$tag = $ _GET [q];
Let us assign labels for $ get'ine tag on the page.  If you create 2 or 3 word labels, so let's parts.

$bol = explode(' ', $tag); //I chose to separate the space.
$first_word=$bol[0];
$first_word            I received word sql line;

WHERE baslik LIKE '%$first_word%' order by rand() desc limit 0,1


   
How can be done?   
I hope you able to provide you describe. My English is bad.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: igor3000 on March 02, 2010, 02:58:44 PM
Good afternoon, prompt, what is necessary, that letters were one colour?  :oops:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: mawenzi on March 02, 2010, 03:52:40 PM
@igor3000 ...

... here the answer : http://www.4homepages.de/forum/index.php?topic=16812.msg89898#msg89898 ...
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: x23piracy on October 23, 2010, 11:25:50 PM
Hi,

danke für diesen MOD  :thumbup:

EDIT:

Wenn man die Cloud auf Basis von Image Namen möchte muss die SQL Abfrage:

Code: [Select]
WHERE keys_match > 0
geändert werden:

Code: [Select]
WHERE name_match > 0
wenn es die Beschreibung sein soll:

Code: [Select]
WHERE desc_match > 0

Greetz X23
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: relu on October 28, 2010, 12:51:45 PM
Verry nice mod... but on my server makes verry much load... After my server upgrade i was tried again the mod and was the same for my page. Also i have more other mods installed.

this is querry with 250 query /sec

SELECT i.word_id, i.word_text, COUNT( c.word_id ) AS quantity
FROM 4images_wordlist i
LEFT JOIN 4images_wordmatch c ON i.word_id = c.word_id
WHERE keys_match >0
GROUP BY i.word_text
ORDER BY RAND( )
LIMIT 30
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: bernd on January 31, 2011, 12:14:00 PM
yeah, it slows down the site. On my (weak) test system all queries are quicker than 0.044 sec, this one takes 3.3 sec :(
I am no SQL wizard so I don't really know how to make it quicker (if at all possible) but this one "only" takes 2.8 sec (and I hope it does the same):
Code: [Select]
SELECT COUNT(c.word_id) AS quantity, i.word_
FROM 4images_wordmatch c, 4images_wordlist i
WHERE keys_match > 0 and i.word_id = c.word_id
GROUP BY c.word_id
ORDER BY  RAND()
LIMIT 20

To use it I'm thinking about putting it into a separate file and loading it via ajax after the rest of the page has loaded.
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Rembrandt on January 31, 2011, 03:56:35 PM
test it:

SELECT COUNT(c.word_id) AS quantity, i.word_id, i.word_text   
FROM 4images_wordmatch c, 4images_wordlist i
WHERE keys_match > 0 and i.word_id = c.word_id AND length(word_text) > 5
GROUP BY c.word_id
ORDER BY  RAND()
LIMIT 20


Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: nameless on April 13, 2011, 10:59:12 PM
heloo evry one

i'm useing 1.7.8
and when i use this mod
I have no Tag cloud

all i have is the word array
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: eportugues on May 27, 2011, 01:15:23 AM
...this is a version of the tag clouds  8) for 4images...

Works perfect in 1.7.10 version  :thumbup:
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: ProrokBDG on September 04, 2011, 10:29:24 PM
Hi, I want to display only the most commonly used words. How do I?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: gerbert on September 27, 2012, 06:12:57 AM
I upgraded to version 1.7.11 and ran the Migrate Keywords tool and now my tag cloud is broken.
The tag cloud used to separate the keywords in a post. Now, it is grouping them all together.
For instance, the tags: "car, park, parking" used to all be single keywords, now it is showing up as one big keyword, "car park parking"
You can see an example here: http://www.threadbombing.com/index.php
Can anybody help me fix this? Thanks!
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Rembrandt on September 27, 2012, 08:41:11 AM
Hi!
I upgraded to version 1.7.11 and ran the Migrate Keywords tool and now my tag cloud is broken.
...
I do not think that it's the Mod.
in ACP/plugins, start the "rebuild_searchindex" but first empty the search index.

mfg Andi
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: gerbert on September 27, 2012, 07:10:15 PM
I do not think that it's the Mod.
in ACP/plugins, start the "rebuild_searchindex" but first empty the search index.
mfg Andi
Thanks, that fixed it!  8)
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sunny C. on February 11, 2013, 02:02:46 PM
whats wrong
Quote
Warning: array_values() expects parameter 1 to be array, null given in C:\xampp\htdocs\seite\keyword_cloud.php on line 65

Warning: max(): When only one parameter is given, it must be an array in C:\xampp\htdocs\seite\keyword_cloud.php on line 65

Warning: array_values() expects parameter 1 to be array, null given in C:\xampp\htdocs\seite\keyword_cloud.php on line 66

Warning: min(): When only one parameter is given, it must be an array in C:\xampp\htdocs\seite\keyword_cloud.php on line 66

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\seite\keyword_cloud.php on line 75
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Rembrandt on February 11, 2013, 04:00:33 PM
whats wrong..
Ist vielleicht die wordlist, wordmatch tabelle leer?

ich nehme mal an du meinst diese Modifikation: http://www.4homepages.de/forum/index.php?topic=19157.0

Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sunny C. on February 11, 2013, 04:47:27 PM
Nein, in beiden steht was drin.
Die Fehlermeldung habe ich in beiden Modifikationen
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Rembrandt on February 11, 2013, 05:13:26 PM
so.. gerade diesen Mod hier getestet, funktioniert.

mfg Andi
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sunny C. on February 12, 2013, 06:51:47 PM
Kann es sein, weil ich es local in xampp am laufen habe?
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: CodeMan on April 16, 2013, 09:04:43 PM
Hello,

nice MOD and working great!
currently I'm using the modified MOD for categories as provided by ch€ri{Bi}² (see: http://www.4homepages.de/forum/index.php?topic=16812.15 (http://www.4homepages.de/forum/index.php?topic=16812.15)).
Tag cloud is showing (separate) Categories but all in one line.
This way the tag cloud is stretched and my template gets too wide.

How can I show the categories on multiple lines so my template keeps its width?

Thanks!
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: .Infecto on June 19, 2015, 11:29:25 PM
Ich habe den Fehler wie viele andere auch.
Wordlist ist voll
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: Sunny C. on June 19, 2015, 11:43:14 PM
Suche:
  $sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
   FROM ".WORDLIST_TABLE." i
LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
WHERE keys_match > 0
   GROUP BY i.word_text
   ORDER BY  RAND()
LIMIT 20";
Ersetze mit

  $sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
   FROM ".WORDLIST_TABLE." i
LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
   GROUP BY i.word_text
   ORDER BY  RAND()
LIMIT 20";

Dann sollte der Fehler weg sein.
Es wurde lediglich folgendes entfernt

WHERE keys_match > 0

oder ändern in "WHERE keys_match >= 0"
Title: Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
Post by: .Infecto on June 20, 2015, 12:19:21 AM
Danke, hat funktioniert!