Results 1 to 2 of 2

Thread: Fix For Large Tags

  1. #1
    Join Date
    Jan 2008
    Location
    Columbus, OH but from Pittsburgh, PA
    Posts
    27

    Default Fix For Large Tags

    Problem: When a popular tag is shown that is long, it extends over the template
    or
    Tag size is just too big

    Solution:

    If you know what you're doing, you can change the font sizes in /include/PEAR/HTML/tagcloud.php

    For instance... if you want all tags to appear the same size, you can do what I did. There are two variables that you need to change and 3 places in the file to change them.

    This is how the code is now:

    Code: Select all
    var $baseFontSize = 24;
    /**
    * @var int
    * @access var
    */
    var $fontSizeRange = 12;


    To have them all be 12px change the first variable to 12 and the second to 0. This makes the base font size 12 pixels and tells the script not to change any size.

    Code: Select all
    var $baseFontSize = 12;
    /**
    * @var int
    * @access var
    */
    var $fontSizeRange = 0;



    To have the popular tags still emphasized, but in a smaller text than 24. Set your base font to something smaller but also be sure to change the range to accomodate.

    This example sets the popular tags to 18px while the others stay at 12px (18-6=12):

    Code: Select all
    var $baseFontSize = 18;
    /**
    * @var int
    * @access var
    */
    var $fontSizeRange = 6;



    The other places to change it looks like this:

    Code: Select all
    // {{{ function __construct($baseFontSize = 24, $fontSizeRange = 12)
    /**
    *
    * Class constructor
    *
    * @param int $baseFontSize base font size of output tag (option)
    * @param int $fontSizeRange font size range
    * @access public
    */
    function HTML_TagCloud($baseFontSize = 24, $fontSizeRange = 12)



    Hope this helps someone. :D

  2. #2

    Default Re: Fix For Large Tags

    IT helped me, many thnaks.

Similar Threads

  1. Large videos can't get converted
    By derangedtaco in forum Installation Support
    Replies: 6
    Last Post: 04-08-2008, 04:12 AM
  2. Speed with large nr videos
    By afunnysite in forum Bug Reports
    Replies: 2
    Last Post: 01-21-2008, 07:44 PM
  3. Popular Tags Too Large
    By Heavenly in forum Fixed Bugs
    Replies: 0
    Last Post: 01-09-2008, 10:58 PM
  4. Won't allow large file uploads
    By mersh in forum Installation Support
    Replies: 1
    Last Post: 06-08-2007, 04:42 PM
  5. Cannot upload large videos
    By local_master in forum Installation Support
    Replies: 1
    Last Post: 04-30-2007, 06:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •