Support » Plugin: Better Tag Cloud » [Plugin: Better Tag Cloud] Improvements Can Be Made

  • CatherineBr


    The following improvements can be made :

    1. The Settings tab is ignored in the latest versions of the plug-in, and should be removed altogether to avoid confusion.

    2. The font sizes inserted in the HTML code contain way too many decimals (ex : 4,33333333333333px). The round() function should be used :

    $tagsize = sprintf ( round( $smallest + ( ( $count - $min_count ) * $font_step ), 1 ) );

    3. When nofollow is enabled, the plug-in generates invalid HTML code, according to the W3C Validation Service. Why ? Because nofollow inserts a rel tag :


    but such rel tag already exists and should be removed :


    4. When nofollow is enabled, unnecessary spaces are added. Line :

    $echo_nofollow = ' rel="nofollow" ';

    should be :

    $echo_nofollow = 'rel="nofollow"';

    5. When replace is enabled, the plug-in replaces spaces with nobreak spaces, but it should also replace hyphens with nobreak hyphens :

    if ( $replace == 'Yes' ) {
    			$tag_name = preg_replace( '# #', ' ', $tag_name );
    			$tag_name = preg_replace( '#-#', '&'.'#8209;', $tag_name );

    6. Tags with accents (ex : é, î, ç, ü) are not sorted correctly. A user named “Emilio” already provided a solution on the plug-in homepage.

Viewing 2 replies - 1 through 2 (of 2 total)
  • CatherineBr


    Concerning 6., which affects also WordPress core, I submitted today a bug report at :

    So, an official solution will be provided in a future release of WordPress, and from there, it can be incorporated in the plug-in.

    Plugin Author nkuttler


    Thanks for the feedback, I’ll look into this asap! Btw, CatherineBr, if you are familiar with diff I’ll be happy to review your patches.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Better Tag Cloud] Improvements Can Be Made’ is closed to new replies.