• [MOD] Tag cloud ( keyword & cat cloud in web2.0 style) 5 0 5 1
Currently:  

Poll

What do you think of this mod?

Excellent
Good
Fair
Poor
Bad

Author Topic: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)  (Read 228508 times)

0 Members and 1 Guest are viewing this topic.

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #45 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:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #46 on: July 31, 2007, 04:05:19 PM »
What is your 4images version ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #47 on: July 31, 2007, 04:06:27 PM »
Its v1.7.4 :)

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #48 on: July 31, 2007, 04:08:39 PM »
Ok so from includes/functions.php file, post from line: 1740 to 1760.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #49 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

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #50 on: July 31, 2007, 04:56:20 PM »
There almost no validations on there ... no wonder lots of errors.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #51 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

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #53 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  :)

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #54 on: July 31, 2007, 07:50:59 PM »
Error line seem to report wrong. Please post attachment file of functions.php file. Will look.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #55 on: July 31, 2007, 08:09:49 PM »
check your PM thunderstrike

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #56 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

;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #57 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

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #58 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)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #59 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.)