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

  • 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 :

    rel="nofollow"

    but such rel tag already exists and should be removed :

    rel="tag"

    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.

    http://wordpress.org/extend/plugins/nktagcloud/

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